Skip to content
This repository was archived by the owner on Mar 24, 2026. It is now read-only.

Set DB pool size for all Crystal impelementations - #4189

Merged
NateBrady23 merged 1 commit into
TechEmpower:masterfrom
vlazar:tune-crystal-db-pool-size-2
Nov 12, 2018
Merged

NateBrady23 merged 1 commit into
TechEmpower:masterfrom
vlazar:tune-crystal-db-pool-size-2

Conversation

@vlazar

@vlazar vlazar commented Nov 11, 2018

Copy link
Copy Markdown
Contributor

Lower DB pool size from #4160 results in better RPS on Citrine.

Before https://www.techempower.com/benchmarks/#section=test&runid=56076e97-0658-46a1-81bb-6f8890f2e85e
After https://www.techempower.com/benchmarks/#section=test&runid=5191fd86-6a2a-405b-b326-f160fc6781b7

                  Before    After    Better
JSON              345k   -> 1016k  ~ 3x
Single query      178k   -> 261k   ~ 1.5x
Multiple queries  9.2k   -> 11.9k  ~ 1.3x
Fortunes          87.5k  -> 258.4k ~ 3x
Data updates      1.2k   -> 3.1k   ~ 2.7x
Plain Text        740k   -> 2025k  ~ 2.7x

Note:

Keep an eye on Latency, since it's dropped a lot in some cases.

Might be a good idea to try average latency from multiple runs, as latency numbers seem to be in flux sometimes for no obvious reason.

                  Before    After    Worse
JSON              0.2ms  -> 0.7ms  ~ 3x
Single query      0.6ms  -> 0.4 ms
Multiple queries  55ms   -> 309ms  > 5x
Fortunes          1.3ms  -> 173ms  > 100x (!!!)
Data updates      426sm  -> 535ms  ~ 1.2x
Plain Text        4.3ms  -> 13.9ms ~ 3x

Lower DB pool size from TechEmpower#4160 results in better RPS on Citrine.

Before https://www.techempower.com/benchmarks/#section=test&runid=56076e97-0658-46a1-81bb-6f8890f2e85e
After https://www.techempower.com/benchmarks/#section=test&runid=5191fd86-6a2a-405b-b326-f160fc6781b7

                  Before    After    Better
JSON              345k   -> 1016k  ~ 3x
Single query      178k   -> 261k   ~ 1.5x
Multiple queries  9.2k   -> 11.9k  ~ 1.3x
Fortunes          87.5k  -> 258.4k ~ 3x
Data updates      1.2k   -> 3.1k   ~ 2.7x
Plain Text        740k   -> 2025k  ~ 2.7x

Note:

Keep an eye on Latency, since it's dropped a lot in some cases.

Might be a good idea to try average latency from multiple runs,
as latency numbers seem to be in flux sometimes for no obvious reason.

                  Before    After    Worse
JSON              0.2ms  -> 0.7ms  ~ 3x
Single query      0.6ms  -> 0.4 ms
Multiple queries  55ms   -> 309ms  > 5x
Fortunes          1.3ms  -> 173ms  > 100x (!!!)
Data updates      426sm  -> 535ms  ~ 1.2x
Plain Text        4.3ms  -> 13.9ms ~ 3x
@NateBrady23
NateBrady23 merged commit fdaf6be into TechEmpower:master Nov 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants