Repository navigation
Conversation
Baseline @ 2.5K requests/second for 2 minutes:
Requests [total, rate, throughput] 300000, 2500.01, 2500.00
Duration [total, attack, wait] 2m0s, 2m0s, 633.693µs
Latencies [min, mean, 50, 90, 95, 99, max] 228.976µs, 2.808ms, 360.599µs, 808.569µs, 1.1ms, 99.642ms, 340.486ms
Bytes In [total, mean] 1500000, 5.00
Bytes Out [total, mean] 0, 0.00
Success [ratio] 100.00%
Status Codes [code:count] 200:300000
Error Set:
After this change:
Requests [total, rate, throughput] 300000, 2500.01, 2500.00
Duration [total, attack, wait] 2m0s, 2m0s, 660.098µs
Latencies [min, mean, 50, 90, 95, 99, max] 221.044µs, 666.861µs, 328.204µs, 635.192µs, 794.381µs, 6.891ms, 132.629ms
Bytes In [total, mean] 1500000, 5.00
Bytes Out [total, mean] 0, 0.00
Success [ratio] 100.00%
Status Codes [code:count] 200:300000
Error Set:
Memory use is the same between this and the master branch on my
machine, but I suspect my machine's IO is just too fast. If I were to
try this on a cloud machine, I suspect there would be a significant
improvement with this change.
Member
|
The improvement to the distribution of response times seems quite significant. 6x better at p90! |
Contributor
|
I think it is worth it |
Merged
Contributor
Author
|
This was superseded by #121, closing. |
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Prompted by the discussion in #119. This is only a slight improvement, so feel free to ignore if you don't think the change is worth it. I benchmarked the change by hitting this minimal app running on a basic Digital Ocean droplet at 1k RPS for two minutes against Racket 8.5. The logs were written to an attached block storage volume and the attacking script rotated the log file once every 30 seconds. Aside from the small performance improvement, the change to use an unbuffered channel should make logging a little safer under load since logs can't pile up in the queue if storage is slow (though I don't have sufficiently slow storage to test this with, so this point might be moot).
Master branch without logging:
Master branch with
dispatch-log:This branch with
dispatch-log:Memory use is about the same between the two versions:
(the y axis is milliseconds since program start, the "updated" line is cut short because there were no more GC logs beyond that point)