-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbenchmarks.html
More file actions
41 lines (38 loc) · 38.1 KB
/
benchmarks.html
File metadata and controls
41 lines (38 loc) · 38.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!doctype html>
<html lang="en-US" data-theme="light">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width,initial-scale=1" />
<meta name="generator" content="VuePress 2.0.0-rc.24" />
<meta name="theme" content="VuePress Theme Hope 2.0.0-rc.94" />
<style>
:root {
--vp-c-bg: #fff;
}
[data-theme="dark"] {
--vp-c-bg: #1b1b1f;
}
html,
body {
background: var(--vp-c-bg);
}
</style>
<script>
const userMode = localStorage.getItem("vuepress-theme-hope-scheme");
const systemDarkMode =
window.matchMedia &&
window.matchMedia("(prefers-color-scheme: dark)").matches;
if (userMode === "dark" || (userMode !== "light" && systemDarkMode)) {
document.documentElement.setAttribute("data-theme", "dark");
}
</script>
<script type="application/ld+json">{"@context":"https://schema.org","@type":"Article","headline":"Benchmarks","image":[""],"dateModified":"2025-11-15T15:32:15.000Z","author":[]}</script><meta property="og:url" content="https://psqlpy-python.github.io/benchmarks.html"><meta property="og:site_name" content="PSQLPy"><meta property="og:title" content="Benchmarks"><meta property="og:description" content="You can find our benchmark setup here. These benchmarks aren't isolated from real-production situation. We've performed benchmarks with: AioHTTP as a web framework External and ..."><meta property="og:type" content="article"><meta property="og:locale" content="en-US"><meta property="og:updated_time" content="2025-11-15T15:32:15.000Z"><meta property="article:modified_time" content="2025-11-15T15:32:15.000Z"><title>Benchmarks | PSQLPy</title><meta name="description" content="You can find our benchmark setup here. These benchmarks aren't isolated from real-production situation. We've performed benchmarks with: AioHTTP as a web framework External and ...">
<link rel="preload" href="/assets/style-hpmdeGFM.css" as="style"><link rel="stylesheet" href="/assets/style-hpmdeGFM.css">
<link rel="modulepreload" href="/assets/app-BJBVPPAe.js"><link rel="modulepreload" href="/assets/benchmarks.html-XvT7GCrc.js"><link rel="modulepreload" href="/assets/plugin-vue_export-helper-DlAUqK2U.js">
<link rel="prefetch" href="/assets/index.html-B7xfPA6C.js" as="script"><link rel="prefetch" href="/assets/contribute.html-BXJ-9LQ1.js" as="script"><link rel="prefetch" href="/assets/external_connection_pools.html-CqsYHnZG.js" as="script"><link rel="prefetch" href="/assets/faq.html-Cy903nbL.js" as="script"><link rel="prefetch" href="/assets/components_overview.html-Cqfjfrqt.js" as="script"><link rel="prefetch" href="/assets/connection.html-DV68IEcs.js" as="script"><link rel="prefetch" href="/assets/connection_pool.html-B5IU0d9-.js" as="script"><link rel="prefetch" href="/assets/connection_pool_builder.html-DJMTA1VL.js" as="script"><link rel="prefetch" href="/assets/cursor.html-DC8_sf9r.js" as="script"><link rel="prefetch" href="/assets/exceptions.html-BKwNZa3D.js" as="script"><link rel="prefetch" href="/assets/listener.html-i2epqj4y.js" as="script"><link rel="prefetch" href="/assets/prepared_statement.html-jgLcjdNo.js" as="script"><link rel="prefetch" href="/assets/results.html-DXVE80j4.js" as="script"><link rel="prefetch" href="/assets/transaction.html-Dyx4frez.js" as="script"><link rel="prefetch" href="/assets/opentelemetry.html-B5bMl5aB.js" as="script"><link rel="prefetch" href="/assets/sqlalchemy.html-nbcuweLJ.js" as="script"><link rel="prefetch" href="/assets/taskiq.html-BQ5k1d44.js" as="script"><link rel="prefetch" href="/assets/components_overview.html-BqPZvmN7.js" as="script"><link rel="prefetch" href="/assets/introduction.html-g0P9iHVH.js" as="script"><link rel="prefetch" href="/assets/lets_start.html-D7fZCsVZ.js" as="script"><link rel="prefetch" href="/assets/parameters.html-DhO-Vnmi.js" as="script"><link rel="prefetch" href="/assets/usage.html-D4OHk65q.js" as="script"><link rel="prefetch" href="/assets/aiohttp.html-CeBGFP5E.js" as="script"><link rel="prefetch" href="/assets/blacksheep.html-ByIPXX6L.js" as="script"><link rel="prefetch" href="/assets/fastapi.html-WV8w1RLJ.js" as="script"><link rel="prefetch" href="/assets/frameworks.html-DAVJRyYE.js" as="script"><link rel="prefetch" href="/assets/litestar.html-BtHBFUek.js" as="script"><link rel="prefetch" href="/assets/panther.html-D0UwE2BT.js" as="script"><link rel="prefetch" href="/assets/robyn.html-C1vjm3C9.js" as="script"><link rel="prefetch" href="/assets/predefined_row_factories.html-DSXzG7VG.js" as="script"><link rel="prefetch" href="/assets/row_factories.html-cTz2Fq5W.js" as="script"><link rel="prefetch" href="/assets/advanced_type_usage.html-CN7LzzNh.js" as="script"><link rel="prefetch" href="/assets/array_types.html-BJtenIdP.js" as="script"><link rel="prefetch" href="/assets/extra_types.html-DErVZ3s4.js" as="script"><link rel="prefetch" href="/assets/supported_types.html-DE1zseKt.js" as="script"><link rel="prefetch" href="/assets/types.html-CyvN6qBW.js" as="script"><link rel="prefetch" href="/assets/404.html-CPKW9PXY.js" as="script"><link rel="prefetch" href="/assets/index.html-C8J0gDJl.js" as="script"><link rel="prefetch" href="/assets/index.html-CE9Cnagz.js" as="script"><link rel="prefetch" href="/assets/index.html-DovmRe7b.js" as="script"><link rel="prefetch" href="/assets/index.html-B_u-_zRf.js" as="script"><link rel="prefetch" href="/assets/index.html-C01-ACbw.js" as="script"><link rel="prefetch" href="/assets/index.html-BEtZbfRk.js" as="script"><link rel="prefetch" href="/assets/index.html-DzpN7D2a.js" as="script"><link rel="prefetch" href="/assets/auto-BUYG9-ss.js" as="script"><link rel="prefetch" href="/assets/mermaid.esm.min-RDSSbasT.js" as="script"><link rel="prefetch" href="/assets/photoswipe.esm-CKV1Bsxh.js" as="script"><link rel="prefetch" href="/assets/SearchResult-BzZHaDk8.js" as="script">
</head>
<body>
<div id="app"><!--[--><!--[--><!--[--><span tabindex="-1"></span><a href="#main-content" class="vp-skip-link sr-only">Skip to main content</a><!--]--><!--[--><div class="theme-container external-link-icon has-toc" vp-container><!--[--><header id="navbar" class="vp-navbar" vp-navbar><div class="vp-navbar-start"><button type="button" class="vp-toggle-sidebar-button" title="Toggle Sidebar"><span class="icon"></span></button><!--[--><a class="route-link vp-brand" href="/" aria-label="Take me home"><!----><!----><span class="vp-site-name">PSQLPy</span></a><!--]--></div><div class="vp-navbar-center"><!--[--><!----><!--]--></div><div class="vp-navbar-end"><!--[--><!----><div class="vp-nav-item vp-action"><a class="vp-action-link" href="https://github.com/psqlpy-python/psqlpy" target="_blank" rel="noopener noreferrer" aria-label="GitHub"><svg xmlns="http://www.w3.org/2000/svg" class="icon github-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="github icon" name="github" style="width:1.25rem;height:1.25rem;vertical-align:middle;"><path d="M511.957 21.333C241.024 21.333 21.333 240.981 21.333 512c0 216.832 140.544 400.725 335.574 465.664 24.49 4.395 32.256-10.07 32.256-23.083 0-11.69.256-44.245 0-85.205-136.448 29.61-164.736-64.64-164.736-64.64-22.315-56.704-54.4-71.765-54.4-71.765-44.587-30.464 3.285-29.824 3.285-29.824 49.195 3.413 75.179 50.517 75.179 50.517 43.776 75.008 114.816 53.333 142.762 40.79 4.523-31.66 17.152-53.377 31.19-65.537-108.971-12.458-223.488-54.485-223.488-242.602 0-53.547 19.114-97.323 50.517-131.67-5.035-12.33-21.93-62.293 4.779-129.834 0 0 41.258-13.184 134.912 50.346a469.803 469.803 0 0 1 122.88-16.554c41.642.213 83.626 5.632 122.88 16.554 93.653-63.488 134.784-50.346 134.784-50.346 26.752 67.541 9.898 117.504 4.864 129.834 31.402 34.347 50.474 78.123 50.474 131.67 0 188.586-114.73 230.016-224.042 242.09 17.578 15.232 33.578 44.672 33.578 90.454v135.85c0 13.142 7.936 27.606 32.854 22.87C862.25 912.597 1002.667 728.747 1002.667 512c0-271.019-219.648-490.667-490.71-490.667z"></path></svg></a></div><div class="vp-nav-item hide-in-mobile"><button type="button" class="vp-color-mode-switch" id="color-mode-switch"><svg xmlns="http://www.w3.org/2000/svg" class="icon auto-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="auto icon" name="auto" style="display:block;"><path d="M512 992C246.92 992 32 777.08 32 512S246.92 32 512 32s480 214.92 480 480-214.92 480-480 480zm0-840c-198.78 0-360 161.22-360 360 0 198.84 161.22 360 360 360s360-161.16 360-360c0-198.78-161.22-360-360-360zm0 660V212c165.72 0 300 134.34 300 300 0 165.72-134.28 300-300 300z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" class="icon dark-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="dark icon" name="dark" style="display:none;"><path d="M524.8 938.667h-4.267a439.893 439.893 0 0 1-313.173-134.4 446.293 446.293 0 0 1-11.093-597.334A432.213 432.213 0 0 1 366.933 90.027a42.667 42.667 0 0 1 45.227 9.386 42.667 42.667 0 0 1 10.24 42.667 358.4 358.4 0 0 0 82.773 375.893 361.387 361.387 0 0 0 376.747 82.774 42.667 42.667 0 0 1 54.187 55.04 433.493 433.493 0 0 1-99.84 154.88 438.613 438.613 0 0 1-311.467 128z"></path></svg><svg xmlns="http://www.w3.org/2000/svg" class="icon light-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="light icon" name="light" style="display:none;"><path d="M952 552h-80a40 40 0 0 1 0-80h80a40 40 0 0 1 0 80zM801.88 280.08a41 41 0 0 1-57.96-57.96l57.96-58a41.04 41.04 0 0 1 58 58l-58 57.96zM512 752a240 240 0 1 1 0-480 240 240 0 0 1 0 480zm0-560a40 40 0 0 1-40-40V72a40 40 0 0 1 80 0v80a40 40 0 0 1-40 40zm-289.88 88.08-58-57.96a41.04 41.04 0 0 1 58-58l57.96 58a41 41 0 0 1-57.96 57.96zM192 512a40 40 0 0 1-40 40H72a40 40 0 0 1 0-80h80a40 40 0 0 1 40 40zm30.12 231.92a41 41 0 0 1 57.96 57.96l-57.96 58a41.04 41.04 0 0 1-58-58l58-57.96zM512 832a40 40 0 0 1 40 40v80a40 40 0 0 1-80 0v-80a40 40 0 0 1 40-40zm289.88-88.08 58 57.96a41.04 41.04 0 0 1-58 58l-57.96-58a41 41 0 0 1 57.96-57.96z"></path></svg></button></div><!--[--><button type="button" class="slimsearch-button" aria-label="Search"><svg xmlns="http://www.w3.org/2000/svg" class="icon search-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="search icon"><path d="M192 480a256 256 0 1 1 512 0 256 256 0 0 1-512 0m631.776 362.496-143.2-143.168A318.464 318.464 0 0 0 768 480c0-176.736-143.264-320-320-320S128 303.264 128 480s143.264 320 320 320a318.016 318.016 0 0 0 184.16-58.592l146.336 146.368c12.512 12.48 32.768 12.48 45.28 0 12.48-12.512 12.48-32.768 0-45.28"></path></svg><div class="slimsearch-placeholder">Search</div><div class="slimsearch-key-hints"><kbd class="slimsearch-key">Ctrl</kbd><kbd class="slimsearch-key">K</kbd></div></button><!--]--><!--]--><button type="button" class="vp-toggle-navbar-button" aria-label="Toggle Navbar" aria-expanded="false" aria-controls="nav-screen"><span><span class="vp-top"></span><span class="vp-middle"></span><span class="vp-bottom"></span></span></button></div></header><!----><!--]--><!----><div class="toggle-sidebar-wrapper"><span class="arrow start"></span></div><aside id="sidebar" class="vp-sidebar" vp-sidebar><!----><ul class="vp-sidebar-links"><li><a class="route-link auto-link vp-sidebar-link" href="/" aria-label="PSQLPy documentation"><!--[--><iconify-icon class="vp-icon" icon="home" sizing="both" width="1em" height="1em"></iconify-icon><!--]-->PSQLPy documentation<!----></a></li><li><section class="vp-sidebar-group"><button class="vp-sidebar-header clickable" type="button"><!----><span class="vp-sidebar-title">The PSQLPy</span><span class="vp-arrow end"></span></button><!----></section></li><li><section class="vp-sidebar-group"><button class="vp-sidebar-header clickable" type="button"><!----><span class="vp-sidebar-title">Components Overview</span><span class="vp-arrow end"></span></button><!----></section></li><li><section class="vp-sidebar-group"><button class="vp-sidebar-header clickable" type="button"><!----><span class="vp-sidebar-title">Usage</span><span class="vp-arrow end"></span></button><!----></section></li><li><section class="vp-sidebar-group"><button class="vp-sidebar-header clickable" type="button"><!----><span class="vp-sidebar-title">Integrations</span><span class="vp-arrow end"></span></button><!----></section></li><li><a class="route-link auto-link vp-sidebar-link" href="/external_connection_pools.html" aria-label="External connection pools"><!---->External connection pools<!----></a></li><li><a class="route-link auto-link vp-sidebar-link" href="/contribute.html" aria-label="Contribution guide"><!---->Contribution guide<!----></a></li><li><a class="route-link route-link-active auto-link vp-sidebar-link active" href="/benchmarks.html" aria-label="Benchmarks"><!---->Benchmarks<!----></a></li><li><a class="route-link auto-link vp-sidebar-link" href="/faq.html" aria-label="FAQ"><!---->FAQ<!----></a></li></ul><!----></aside><!--[--><main id="main-content" class="vp-page"><!--[--><!----><!----><nav class="vp-breadcrumb disable"></nav><div class="vp-page-title"><h1><!---->Benchmarks</h1><div class="page-info"><!----><!----><span class="page-date-info" aria-label="Writing Date📅" data-balloon-pos="up"><svg xmlns="http://www.w3.org/2000/svg" class="icon calendar-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="calendar icon" name="calendar"><path d="M716.4 110.137c0-18.753-14.72-33.473-33.472-33.473-18.753 0-33.473 14.72-33.473 33.473v33.473h66.993v-33.473zm-334.87 0c0-18.753-14.72-33.473-33.473-33.473s-33.52 14.72-33.52 33.473v33.473h66.993v-33.473zm468.81 33.52H716.4v100.465c0 18.753-14.72 33.473-33.472 33.473a33.145 33.145 0 01-33.473-33.473V143.657H381.53v100.465c0 18.753-14.72 33.473-33.473 33.473a33.145 33.145 0 01-33.473-33.473V143.657H180.6A134.314 134.314 0 0046.66 277.595v535.756A134.314 134.314 0 00180.6 947.289h669.74a134.36 134.36 0 00133.94-133.938V277.595a134.314 134.314 0 00-133.94-133.938zm33.473 267.877H147.126a33.145 33.145 0 01-33.473-33.473c0-18.752 14.72-33.473 33.473-33.473h736.687c18.752 0 33.472 14.72 33.472 33.473a33.145 33.145 0 01-33.472 33.473z"></path></svg><span data-allow-mismatch="text">11/15/25</span><meta property="datePublished" content="2025-11-15T15:32:15.000Z"></span><!----><!----><!----><!----></div><hr></div><!----><div class="" vp-content><!----><div id="markdown-content"><p>You can find our benchmark setup <a href="https://github.com/psqlpy-python/psqlpy/tree/main/psqlpy-stress" target="_blank" rel="noopener noreferrer">here</a>. These benchmarks aren't isolated from real-production situation. We've performed benchmarks with:</p><ul><li>AioHTTP as a web framework</li><li>External and Local Database</li></ul><p>We checked the maximum possible RPS for the same SQL query in the same configuration.</p><p>There are two types of benchmarks:</p><ol><li>With local database</li><li>With external database</li></ol><p>In a real production system database doesn't usually locate on the same server where application runs, so if you application and database are located on the different servers, we recommend you to check <code>External Database</code>.</p><div class="hint-container important"><p class="hint-container-title">Important</p><p>For local benchmarks we use 5 connections in a connection pool and 10 processes make requests to the application, while for external database checks we use 40 connections and 100 processes make requests to the application. The main reason is external database is located on a very powerful server and can serve more requests.</p></div><h2 id="key-findings" tabindex="-1"><a class="header-anchor" href="#key-findings"><span>Key findings</span></a></h2><p>If your application and database are located on the same server, there is no significant difference between <code>AsyncPG</code>, <code>PsycoPG</code> and <code>PSQLPy</code> but still you will have performance improve by approximately 10%. However, if you have application and database located on different machines, you can get significant (up to 3 times) boost in performance.</p><h2 id="local-database" tabindex="-1"><a class="header-anchor" href="#local-database"><span>Local Database</span></a></h2><div class="vp-tabs"><div class="vp-tabs-nav" role="tablist"><button type="button" class="vp-tab-nav active" role="tab" aria-controls="v-0" aria-selected="true">Simple Connection Select</button><button type="button" class="vp-tab-nav" role="tab" aria-controls="v-1" aria-selected="false">Hard Connection Select</button><button type="button" class="vp-tab-nav" role="tab" aria-controls="v-2" aria-selected="false">Combined Connection Query</button><button type="button" class="vp-tab-nav" role="tab" aria-controls="v-3" aria-selected="false">Simple Transaction Select</button><button type="button" class="vp-tab-nav" role="tab" aria-controls="v-4" aria-selected="false">Hard Transaction Select</button><button type="button" class="vp-tab-nav" role="tab" aria-controls="v-5" aria-selected="false">Combined Transaction Query</button></div><!--[--><div class="vp-tab active" id="v-0" role="tabpanel" aria-expanded="true"><div class="vp-tab-title">Simple Connection Select</div><!--[--><!--[--><div class="chartjs-title">Simple Connection Select</div><div style="display:flex;align-items:center;justify-content:center;height:192px;" class="chartjs-loading"><span style="--loading-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid' viewBox='25 25 50 50'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='2s' keyTimes='0;1' repeatCount='indefinite' values='0;360'%3E%3C/animateTransform%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round'%3E%3Canimate attributeName='stroke-dasharray' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='1,200;90,200;1,200'%3E%3C/animate%3E%3Canimate attributeName='stroke-dashoffset' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='0;-35px;-125px'%3E%3C/animate%3E%3C/circle%3E%3C/svg%3E");--icon-size: 48px;display: inline-block;width: var(--icon-size);height: var(--icon-size);background-color: currentcolor;-webkit-mask-image: var(--loading-icon);mask-image: var(--loading-icon)"></span></div><div class="chartjs-wrapper" style="display:none;"><canvas id="v-6" height="400"></canvas></div><!--]--><!--]--></div><div class="vp-tab" id="v-1" role="tabpanel" aria-expanded="false"><div class="vp-tab-title">Hard Connection Select</div><!--[--><!--[--><div class="chartjs-title">Hard Connection Select</div><div style="display:flex;align-items:center;justify-content:center;height:192px;" class="chartjs-loading"><span style="--loading-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid' viewBox='25 25 50 50'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='2s' keyTimes='0;1' repeatCount='indefinite' values='0;360'%3E%3C/animateTransform%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round'%3E%3Canimate attributeName='stroke-dasharray' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='1,200;90,200;1,200'%3E%3C/animate%3E%3Canimate attributeName='stroke-dashoffset' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='0;-35px;-125px'%3E%3C/animate%3E%3C/circle%3E%3C/svg%3E");--icon-size: 48px;display: inline-block;width: var(--icon-size);height: var(--icon-size);background-color: currentcolor;-webkit-mask-image: var(--loading-icon);mask-image: var(--loading-icon)"></span></div><div class="chartjs-wrapper" style="display:none;"><canvas id="v-7" height="400"></canvas></div><!--]--><!--]--></div><div class="vp-tab" id="v-2" role="tabpanel" aria-expanded="false"><div class="vp-tab-title">Combined Connection Query</div><!--[--><!--[--><div class="chartjs-title">Combined Connection Query</div><div style="display:flex;align-items:center;justify-content:center;height:192px;" class="chartjs-loading"><span style="--loading-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid' viewBox='25 25 50 50'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='2s' keyTimes='0;1' repeatCount='indefinite' values='0;360'%3E%3C/animateTransform%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round'%3E%3Canimate attributeName='stroke-dasharray' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='1,200;90,200;1,200'%3E%3C/animate%3E%3Canimate attributeName='stroke-dashoffset' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='0;-35px;-125px'%3E%3C/animate%3E%3C/circle%3E%3C/svg%3E");--icon-size: 48px;display: inline-block;width: var(--icon-size);height: var(--icon-size);background-color: currentcolor;-webkit-mask-image: var(--loading-icon);mask-image: var(--loading-icon)"></span></div><div class="chartjs-wrapper" style="display:none;"><canvas id="v-8" height="400"></canvas></div><!--]--><!--]--></div><div class="vp-tab" id="v-3" role="tabpanel" aria-expanded="false"><div class="vp-tab-title">Simple Transaction Select</div><!--[--><!--[--><div class="chartjs-title">Simple Transaction Select</div><div style="display:flex;align-items:center;justify-content:center;height:192px;" class="chartjs-loading"><span style="--loading-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid' viewBox='25 25 50 50'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='2s' keyTimes='0;1' repeatCount='indefinite' values='0;360'%3E%3C/animateTransform%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round'%3E%3Canimate attributeName='stroke-dasharray' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='1,200;90,200;1,200'%3E%3C/animate%3E%3Canimate attributeName='stroke-dashoffset' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='0;-35px;-125px'%3E%3C/animate%3E%3C/circle%3E%3C/svg%3E");--icon-size: 48px;display: inline-block;width: var(--icon-size);height: var(--icon-size);background-color: currentcolor;-webkit-mask-image: var(--loading-icon);mask-image: var(--loading-icon)"></span></div><div class="chartjs-wrapper" style="display:none;"><canvas id="v-9" height="400"></canvas></div><!--]--><!--]--></div><div class="vp-tab" id="v-4" role="tabpanel" aria-expanded="false"><div class="vp-tab-title">Hard Transaction Select</div><!--[--><!--[--><div class="chartjs-title">Hard Transaction Select</div><div style="display:flex;align-items:center;justify-content:center;height:192px;" class="chartjs-loading"><span style="--loading-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid' viewBox='25 25 50 50'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='2s' keyTimes='0;1' repeatCount='indefinite' values='0;360'%3E%3C/animateTransform%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round'%3E%3Canimate attributeName='stroke-dasharray' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='1,200;90,200;1,200'%3E%3C/animate%3E%3Canimate attributeName='stroke-dashoffset' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='0;-35px;-125px'%3E%3C/animate%3E%3C/circle%3E%3C/svg%3E");--icon-size: 48px;display: inline-block;width: var(--icon-size);height: var(--icon-size);background-color: currentcolor;-webkit-mask-image: var(--loading-icon);mask-image: var(--loading-icon)"></span></div><div class="chartjs-wrapper" style="display:none;"><canvas id="v-10" height="400"></canvas></div><!--]--><!--]--></div><div class="vp-tab" id="v-5" role="tabpanel" aria-expanded="false"><div class="vp-tab-title">Combined Transaction Query</div><!--[--><!--[--><div class="chartjs-title">Combined Transaction Query</div><div style="display:flex;align-items:center;justify-content:center;height:192px;" class="chartjs-loading"><span style="--loading-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid' viewBox='25 25 50 50'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='2s' keyTimes='0;1' repeatCount='indefinite' values='0;360'%3E%3C/animateTransform%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round'%3E%3Canimate attributeName='stroke-dasharray' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='1,200;90,200;1,200'%3E%3C/animate%3E%3Canimate attributeName='stroke-dashoffset' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='0;-35px;-125px'%3E%3C/animate%3E%3C/circle%3E%3C/svg%3E");--icon-size: 48px;display: inline-block;width: var(--icon-size);height: var(--icon-size);background-color: currentcolor;-webkit-mask-image: var(--loading-icon);mask-image: var(--loading-icon)"></span></div><div class="chartjs-wrapper" style="display:none;"><canvas id="v-11" height="400"></canvas></div><!--]--><!--]--></div><!--]--></div><h2 id="external-database" tabindex="-1"><a class="header-anchor" href="#external-database"><span>External Database</span></a></h2><div class="vp-tabs"><div class="vp-tabs-nav" role="tablist"><button type="button" class="vp-tab-nav active" role="tab" aria-controls="v-12" aria-selected="true">Simple Connection Select</button><button type="button" class="vp-tab-nav" role="tab" aria-controls="v-13" aria-selected="false">Hard Connection Select</button><button type="button" class="vp-tab-nav" role="tab" aria-controls="v-14" aria-selected="false">Combined Connection Query</button><button type="button" class="vp-tab-nav" role="tab" aria-controls="v-15" aria-selected="false">Simple Transaction Select</button><button type="button" class="vp-tab-nav" role="tab" aria-controls="v-16" aria-selected="false">Hard Transaction Select</button><button type="button" class="vp-tab-nav" role="tab" aria-controls="v-17" aria-selected="false">Combined Transaction Query</button></div><!--[--><div class="vp-tab active" id="v-12" role="tabpanel" aria-expanded="true"><div class="vp-tab-title">Simple Connection Select</div><!--[--><!--[--><div class="chartjs-title">Simple Connection Select</div><div style="display:flex;align-items:center;justify-content:center;height:192px;" class="chartjs-loading"><span style="--loading-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid' viewBox='25 25 50 50'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='2s' keyTimes='0;1' repeatCount='indefinite' values='0;360'%3E%3C/animateTransform%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round'%3E%3Canimate attributeName='stroke-dasharray' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='1,200;90,200;1,200'%3E%3C/animate%3E%3Canimate attributeName='stroke-dashoffset' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='0;-35px;-125px'%3E%3C/animate%3E%3C/circle%3E%3C/svg%3E");--icon-size: 48px;display: inline-block;width: var(--icon-size);height: var(--icon-size);background-color: currentcolor;-webkit-mask-image: var(--loading-icon);mask-image: var(--loading-icon)"></span></div><div class="chartjs-wrapper" style="display:none;"><canvas id="v-18" height="400"></canvas></div><!--]--><!--]--></div><div class="vp-tab" id="v-13" role="tabpanel" aria-expanded="false"><div class="vp-tab-title">Hard Connection Select</div><!--[--><!--[--><div class="chartjs-title">Hard Connection Select</div><div style="display:flex;align-items:center;justify-content:center;height:192px;" class="chartjs-loading"><span style="--loading-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid' viewBox='25 25 50 50'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='2s' keyTimes='0;1' repeatCount='indefinite' values='0;360'%3E%3C/animateTransform%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round'%3E%3Canimate attributeName='stroke-dasharray' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='1,200;90,200;1,200'%3E%3C/animate%3E%3Canimate attributeName='stroke-dashoffset' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='0;-35px;-125px'%3E%3C/animate%3E%3C/circle%3E%3C/svg%3E");--icon-size: 48px;display: inline-block;width: var(--icon-size);height: var(--icon-size);background-color: currentcolor;-webkit-mask-image: var(--loading-icon);mask-image: var(--loading-icon)"></span></div><div class="chartjs-wrapper" style="display:none;"><canvas id="v-19" height="400"></canvas></div><!--]--><!--]--></div><div class="vp-tab" id="v-14" role="tabpanel" aria-expanded="false"><div class="vp-tab-title">Combined Connection Query</div><!--[--><!--[--><div class="chartjs-title">Combined Connection Query</div><div style="display:flex;align-items:center;justify-content:center;height:192px;" class="chartjs-loading"><span style="--loading-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid' viewBox='25 25 50 50'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='2s' keyTimes='0;1' repeatCount='indefinite' values='0;360'%3E%3C/animateTransform%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round'%3E%3Canimate attributeName='stroke-dasharray' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='1,200;90,200;1,200'%3E%3C/animate%3E%3Canimate attributeName='stroke-dashoffset' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='0;-35px;-125px'%3E%3C/animate%3E%3C/circle%3E%3C/svg%3E");--icon-size: 48px;display: inline-block;width: var(--icon-size);height: var(--icon-size);background-color: currentcolor;-webkit-mask-image: var(--loading-icon);mask-image: var(--loading-icon)"></span></div><div class="chartjs-wrapper" style="display:none;"><canvas id="v-20" height="400"></canvas></div><!--]--><!--]--></div><div class="vp-tab" id="v-15" role="tabpanel" aria-expanded="false"><div class="vp-tab-title">Simple Transaction Select</div><!--[--><!--[--><div class="chartjs-title">Simple Transaction Select</div><div style="display:flex;align-items:center;justify-content:center;height:192px;" class="chartjs-loading"><span style="--loading-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid' viewBox='25 25 50 50'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='2s' keyTimes='0;1' repeatCount='indefinite' values='0;360'%3E%3C/animateTransform%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round'%3E%3Canimate attributeName='stroke-dasharray' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='1,200;90,200;1,200'%3E%3C/animate%3E%3Canimate attributeName='stroke-dashoffset' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='0;-35px;-125px'%3E%3C/animate%3E%3C/circle%3E%3C/svg%3E");--icon-size: 48px;display: inline-block;width: var(--icon-size);height: var(--icon-size);background-color: currentcolor;-webkit-mask-image: var(--loading-icon);mask-image: var(--loading-icon)"></span></div><div class="chartjs-wrapper" style="display:none;"><canvas id="v-21" height="400"></canvas></div><!--]--><!--]--></div><div class="vp-tab" id="v-16" role="tabpanel" aria-expanded="false"><div class="vp-tab-title">Hard Transaction Select</div><!--[--><!--[--><div class="chartjs-title">Hard Transaction Select</div><div style="display:flex;align-items:center;justify-content:center;height:192px;" class="chartjs-loading"><span style="--loading-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid' viewBox='25 25 50 50'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='2s' keyTimes='0;1' repeatCount='indefinite' values='0;360'%3E%3C/animateTransform%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round'%3E%3Canimate attributeName='stroke-dasharray' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='1,200;90,200;1,200'%3E%3C/animate%3E%3Canimate attributeName='stroke-dashoffset' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='0;-35px;-125px'%3E%3C/animate%3E%3C/circle%3E%3C/svg%3E");--icon-size: 48px;display: inline-block;width: var(--icon-size);height: var(--icon-size);background-color: currentcolor;-webkit-mask-image: var(--loading-icon);mask-image: var(--loading-icon)"></span></div><div class="chartjs-wrapper" style="display:none;"><canvas id="v-22" height="400"></canvas></div><!--]--><!--]--></div><div class="vp-tab" id="v-17" role="tabpanel" aria-expanded="false"><div class="vp-tab-title">Combined Transaction Query</div><!--[--><!--[--><div class="chartjs-title">Combined Transaction Query</div><div style="display:flex;align-items:center;justify-content:center;height:192px;" class="chartjs-loading"><span style="--loading-icon: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' preserveAspectRatio='xMidYMid' viewBox='25 25 50 50'%3E%3CanimateTransform attributeName='transform' type='rotate' dur='2s' keyTimes='0;1' repeatCount='indefinite' values='0;360'%3E%3C/animateTransform%3E%3Ccircle cx='50' cy='50' r='20' fill='none' stroke='currentColor' stroke-width='4' stroke-linecap='round'%3E%3Canimate attributeName='stroke-dasharray' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='1,200;90,200;1,200'%3E%3C/animate%3E%3Canimate attributeName='stroke-dashoffset' dur='1.5s' keyTimes='0;0.5;1' repeatCount='indefinite' values='0;-35px;-125px'%3E%3C/animate%3E%3C/circle%3E%3C/svg%3E");--icon-size: 48px;display: inline-block;width: var(--icon-size);height: var(--icon-size);background-color: currentcolor;-webkit-mask-image: var(--loading-icon);mask-image: var(--loading-icon)"></span></div><div class="chartjs-wrapper" style="display:none;"><canvas id="v-23" height="400"></canvas></div><!--]--><!--]--></div><!--]--></div></div><!----><!----><!----></div><footer class="vp-page-meta"><div class="vp-meta-item edit-link"><a class="auto-link external-link vp-meta-label" href="https://github.com/psqlpy-python/psqlpy/edit/main/benchmarks.md" aria-label="Edit this page" rel="noopener noreferrer" target="_blank"><!--[--><svg xmlns="http://www.w3.org/2000/svg" class="icon edit-icon" viewBox="0 0 1024 1024" fill="currentColor" aria-label="edit icon" name="edit"><path d="M430.818 653.65a60.46 60.46 0 0 1-50.96-93.281l71.69-114.012 7.773-10.365L816.038 80.138A60.46 60.46 0 0 1 859.225 62a60.46 60.46 0 0 1 43.186 18.138l43.186 43.186a60.46 60.46 0 0 1 0 86.373L588.879 565.55l-8.637 8.637-117.466 68.234a60.46 60.46 0 0 1-31.958 11.229z"></path><path d="M728.802 962H252.891A190.883 190.883 0 0 1 62.008 771.98V296.934a190.883 190.883 0 0 1 190.883-192.61h267.754a60.46 60.46 0 0 1 0 120.92H252.891a69.962 69.962 0 0 0-69.098 69.099V771.98a69.962 69.962 0 0 0 69.098 69.098h475.911A69.962 69.962 0 0 0 797.9 771.98V503.363a60.46 60.46 0 1 1 120.922 0V771.98A190.883 190.883 0 0 1 728.802 962z"></path></svg><!--]-->Edit this page<!----></a></div><div class="vp-meta-item git-info"><div class="update-time"><span class="vp-meta-label">Last Updated</span><time class="vp-meta-info" datetime="2025-11-15T15:32:15.000Z" data-allow-mismatch>11/15/25, 3:32 PM</time></div><div class="contributors"><span class="vp-meta-label">Contributors: </span><!--[--><!--[--><span class="vp-meta-info" title="email: chandr@chandr.net">chandr-andr (Kiselev Aleksandr)</span><!--]--><!--]--></div></div></footer><nav class="vp-page-nav"><a class="route-link auto-link prev" href="/contribute.html" aria-label="Contribution guide"><div class="hint"><span class="arrow start"></span>Prev</div><div class="link"><!---->Contribution guide</div></a><a class="route-link auto-link next" href="/faq.html" aria-label="FAQ"><div class="hint">Next<span class="arrow end"></span></div><div class="link">FAQ<!----></div></a></nav><!----><!----><!--]--></main><!--]--><!----></div><!--]--><!--]--><!--[--><!----><!----><!--[--><!--]--><!--]--><!--]--></div>
<script type="module" src="/assets/app-BJBVPPAe.js" defer></script>
</body>
</html>