You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If running this benchmark over dockerized postgres images, versions 13 and 14, we get:
Running unittests (target/release/deps/pg-3f2d8fd3a932abaa)
pg14 full connect time: [2.4528 ms 2.4639 ms 2.4765 ms]
change: [+0.2159% +0.8617% +1.5043%] (p = 0.01 < 0.05)
Change within noise threshold.
Found 7 outliers among 100 measurements (7.00%)
4 (4.00%) high mild
3 (3.00%) high severe
Benchmarking pg13 full connect: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase target time to 6.6s, enable flat sampling, or reduce sample count to 60.
pg13 full connect time: [1.3142 ms 1.3217 ms 1.3289 ms]
change: [+1.4325% +2.2729% +3.0495%] (p = 0.00 < 0.05)
Performance has regressed.
Found 3 outliers among 100 measurements (3.00%)
2 (2.00%) low mild
1 (1.00%) high mild
This is +1ms more per connection, which adds up a lot in CI scenarios with thousands of tests opening new connections... Even more interesting here is that without docker, both versions connect in about 0.8 ms. I've tried to take pieces out from tokio-postgres to see where the slow comes from, but in general TCP with or without nagle gets me to the same result.
If this is not the right repo for the issue, would be nice to know if others have witnessed something similar.
The text was updated successfully, but these errors were encountered:
Hi,
So, I've been investigating a weird issue with tokio-postgres today, using the official docker images
postgres:13
andpostgres:14
. The benchmark:If running this benchmark over dockerized postgres images, versions 13 and 14, we get:
This is +1ms more per connection, which adds up a lot in CI scenarios with thousands of tests opening new connections... Even more interesting here is that without docker, both versions connect in about 0.8 ms. I've tried to take pieces out from tokio-postgres to see where the slow comes from, but in general TCP with or without nagle gets me to the same result.
If this is not the right repo for the issue, would be nice to know if others have witnessed something similar.
The text was updated successfully, but these errors were encountered: