Skip to content

Commit e83c511

Browse files
authored
docs: add benchmarking results to documentation (#400)
1 parent 92857bf commit e83c511

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

Diff for: benchmarks/README.md

+45
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,48 @@ The benchmarks do not measure the performance of target Python drivers nor the p
88
1. Install `pytest-benchmark` with the following command `pip install pytest-benchmark`.
99
2. Run the benchmarks with the following command `pytest <path to benchmark file>`.
1010
1. You have to run the command separately for each benchmark file.
11+
12+
## Benchmark Results
13+
14+
Tests ran on commit [3d473f6c12f495762d3b7436a97a0e6bd76361d7](https://github.com/awslabs/aws-advanced-python-wrapper/commit/3d473f6c12f495762d3b7436a97a0e6bd76361d7)
15+
16+
## Summary
17+
| Benchmark | Overhead |
18+
|-----------------------------------------------------------------------------------------------------------------------------|----------|
19+
| Execute query with execution time plugin vs without execution time plugin | 128% |
20+
| Init and release read write splitting plugin with vs without internal connection pools | 103% |
21+
| Init and release read write splitting plugin and aurora connection tracker plugin with vs without internal connection pools | 102% |
22+
| Init plugin manager with vs without plugins | 271% |
23+
| Init host provider with vs without plugins | 100% |
24+
| Notify connection changed with vs without plugins | 106% |
25+
| Execute with vs without plugins | 105% |
26+
| Connect with vs without plugins | 100% |
27+
28+
## Raw Data
29+
| Name (microseconds) | Min | Max | Mean |
30+
|----------------------------------------------------------------------------------------------------------------|--------|----------|--------|
31+
| test_create_cursor_baseline | 103.46 | 21863.92 | 176.86 |
32+
| test_init_and_release_with_read_write_splitting_plugin | 117.63 | 23399.29 | 155.63 |
33+
| test_init_and_release_with_execution_time_plugin | 118.13 | 11647.50 | 153.55 |
34+
| test_init_and_release_with_aurora_connection_tracker_plugin | 118.17 | 16153.21 | 173.76 |
35+
| test_init_and_release_with_read_write_splitting_plugin_internal_connection_pools | 121.38 | 23713.75 | 175.25 |
36+
| test_init_and_release_with_execute_time_and_aurora_connection_tracker_plugin | 126.17 | 20433.96 | 175.94 |
37+
| test_init_and_release_with_aurora_connection_tracker_and_read_write_splitting_plugin | 127.79 | 22220.75 | 181.27 |
38+
| test_init_and_release_with_aurora_connection_tracker_and_read_write_splitting_plugin_internal_connection_pools | 130.75 | 27415.50 | 178.62 |
39+
| test_execute_query_with_execute_time_plugin | 132.79 | 37440.38 | 248.63 |
40+
41+
42+
| Name (nanoseconds) | Min | Max | Mean |
43+
|------------------------------------------------|--------|-----------|------------|
44+
| test_init_plugin_manager_with_no_plugins | 875 | 34708 | 1040.50 |
45+
| test_init_plugin_manager_with_plugins | 2375 | 73917 | 2550.91 |
46+
| test_release_resources_with_no_plugins | 4625 | 67500 | 4889.21 |
47+
| test_init_host_provider_with_no_plugins | 49959 | 44311417 | 61497.79 |
48+
| test_init_host_provider_with_plugins | 50208 | 280917 | 58635.75 |
49+
| test_release_resources_with_plugins | 50250 | 634750 | 52090.03 |
50+
| test_notify_connection_changed_with_no_plugins | 50542 | 9588125 | 60554.89 |
51+
| test_notify_connection_changed_with_plugins | 53625 | 9803958 | 63355.84 |
52+
| test_execute_with_no_plugins | 78375 | 110642542 | 163380.40 |
53+
| test_execute_with_plugins | 82458 | 47187834 | 142509.64 |
54+
| test_connect_with_no_plugins | 802750 | 62966167 | 1316711.28 |
55+
| test_connect_with_plugins | 805458 | 157731334 | 1619050.00 |

0 commit comments

Comments
 (0)