This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Repository navigation
Set DB pool size for all Crystal impelementations - #4189
Merged
NateBrady23 merged 1 commit intoNov 12, 2018
Merged
Conversation
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
This was referenced Dec 21, 2018
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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
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.