Go to file
Peter J. Holzer f079cf937b Reduce required perl version 2021-05-07 00:17:48 +02:00
README.md Add README 2021-05-06 22:34:17 +02:00
Results Add first results 2021-05-06 22:36:04 +02:00
dcb_perl_psql Reduce required perl version 2021-05-07 00:17:48 +02:00
dcb_python_mysql Add Python/MySQL version 2021-05-07 00:16:49 +02:00
dcb_python_psql Add Python/PostgreSQL version 2021-05-06 22:35:03 +02:00

README.md

Database Connection Benchmark

What it the minimal time to get any result from a database?

We open a connection, perform a trivial query (current_timestamp is probably fine) and disconnect.

There are (at least) three times we are interested in:

  • The time from initiating the connection to the end.
  • Same plus the time to load any necessary libraries
  • Same plus the overhead of starting the script

The first is the one important for long-running servers which for some reason don't want to keep a persistent connection to the database.

The last is for command line tools, CGI scripts, etc.

The second doesn't have that much practical importance. That's just personal curiosity.