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
{{ message }}
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 24, 2026. It is now read-only.
We are baffled by the results for the 3 crystal projects and hoping you can help shed some light on the 100k RPS results. We were expecting 1.8 to 2.0 million RPS range for these projects.
We have done multiple runs on different sized systems in AWS trying to replicate the slow response times for plaintext and json in preview 2. @sdogruyol has also ran the benchmarks and can confirm similar findings.
I'm attaching the results on a c4.xlarge 8 core system and all three projects are showing 3x the results than the preview 2. We have also ran the tests on a 64 core 1.2ghz system with 10x the requests per second (~1 million RPS) than preview 2.
We followed the instructions provided for setting up the linux environments Ubuntu 14.04 and cannot determine what the difference is that would cause the slowness.
We think that the preview 2 is not correctly reflecting the performance for these 3 projects. It's as if the multiple processes or the reuse port was not properly working. What we find interesting is the crystal-raw did not encounter the same issue and had 2.5m RPS which is in line with our expectations.
We are aware of socket errors when there is heavy load, be we are not seeing this slow down the performance reflected in preview 2.
Any help is solving this mystery is appreciated. If possible, can you rerun the plaintext for the 3 projects and let us know if you are still seeing 100k RPS results?
Hi @drujensen! We are investigating some issues now with r15-p2 and are doing some reruns. I'll let you know as soon as I see some results and we will go from there.
Reacted by Elias Perez, Faustino Aguilar and Isaac Sloan
@drujensen@sdogruyol Looks like we found the issue. We've started a new run and amber has completed but it will be some time before we get a full picture for R15-P3. Here are the results:
Hi Nate,
Thanks for looking into this. Unfortunately, this still looks the same to me. This is showing ~100k per second but i’m expecting 1.8m per second given my own benchmarking. We are getting ~400k per second on an 8 core system.
I’m not sure where to go from here. Any insight would be helpful.
Thanks,
Dru
To reiterate what @drujensen said above: We're getting 400k r/s after installing tech empower benchmarks and setting that up as per the instructions. It seems strange to that our 8 core VPS gets faster benchmarks than your 80 core server. Especially since on our tests we're only about 20% slower than crystal-raw which your benchmarks show at 2.5 million.
Sorry guys, I misunderstood. Could you paste me the benchmark.cfg you are using in the framework root. Are you guys using a 3 machine set up? Our App server, Client, and DB are on separate machines. And have you also tested crystal in your environment?
@elorest@drujensen can you confirm whether you're on a 1 or 3 machine setup and specifically, what is your ULIMIT max? We've set a very high ULIMIT on these machines and that specifically helped the performance of a lot of frameworks. After looking closely at wrk results you zipped up and the ones being generated from our environment, it seems like you may have a single machine setup with reduced latency and a smaller ULIMIT size which stunted crystal-raw.
On Sep 7, 2017 6:32 PM, "Dru Jensen" ***@***.***> wrote:
Nate,
We only used a single machine and used the default u limit.
We will rerun on two boxes since we are not concerned with the 4 db tests
and up the u limit to max.
I doubt that crystal-raw was some way limited by ulimits but we will
confirm.
Question is why running on one box would be faster than 2, and why we are
seeing 4x faster on an 8 core vs 80 core, but we will confirm.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#2960 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAHmpIEHJAZDs0C0zGJ_0Zrjhh_cgUrIks5sgIsSgaJpZM4PN5lo>
.
@drujensen From the client running wrk to a server on a different machine simulates a real request over the internet. Hitting localhost with wrk on the same machine is going to give you much better results?
I don't think there's such a thing as ulimit=unlimited.
Also, as another note, the client running work is 8 HT cores. The server hosting your application has 80 HT cores.
From the client running wrk to a server on a different machine simulates a real request over the internet.
@nbrady-techempower I think 👆 is reasonable but the thing here is that results in plaintext and json with kemal && amber. seems to be too far of crystal-raw results.
So, if crystal-raw is getting 1.5M RPS we are expecting at least 50% of that (say 700K RPS) not a 10% as the preview 2 is showing us (100K RPS). I think we can find the problem 😄
BTW, Thanks you a lot for maintaining this awesome project! ❤️
@faustinoaq I understand what you're saying. I can give you guys other environment information as you need it. There must be something that crystal-raw is taking advantage of in that environment? I'm not sure without digging deep in to each framework, which unfortunately I can't do at the moment. But let me know if there's anything else I can get you.
[Amber 0.3.6] serving application "TFB test app" at http://127.0.0.1:8080 looks like you're only accepting requests from localhost, yeah? Should probably be http://0.0.0.0:8080
Another (somewhat unrelated) request that should probably go on the mailinglist, but please could you try adding >256 connections concurrency for the JSON benchmark.
From the latest crystal-raw JSON latency distributions:
Latency Distribution
50% 399.00us
75% 456.00us
90% 493.00us
99% 722.00us
We're still in the microsecond range. This indicates to me that we're not fully loaded. How about a 512 connections tier? Maybe even 1024? It'd be an interesting standalone test at least to see where the peak is.
Activity
sdogruyol commentedon Sep 6, 2017
Thanks for this @drujensen 👍 I've also done some small runs and can second this issue, unfortunately I don't have any logs 😢
NateBrady23 commentedon Sep 6, 2017
Hi @drujensen! We are investigating some issues now with r15-p2 and are doing some reruns. I'll let you know as soon as I see some results and we will go from there.
NateBrady23 commentedon Sep 7, 2017
@drujensen @sdogruyol Looks like we found the issue. We've started a new run and amber has completed but it will be some time before we get a full picture for R15-P3. Here are the results:
Sorry to put the scare in everyone, but this is exactly why we do preview runs!
drujensen commentedon Sep 7, 2017
elorest commentedon Sep 7, 2017
Nate,
To reiterate what @drujensen said above: We're getting 400k r/s after installing tech empower benchmarks and setting that up as per the instructions. It seems strange to that our 8 core VPS gets faster benchmarks than your 80 core server. Especially since on our tests we're only about 20% slower than crystal-raw which your benchmarks show at 2.5 million.
Thanks for your feedback,
Isaac Sloan
NateBrady23 commentedon Sep 7, 2017
Sorry guys, I misunderstood. Could you paste me the
benchmark.cfgyou are using in the framework root. Are you guys using a 3 machine set up? Our App server, Client, and DB are on separate machines. And have you also tested crystal in your environment?faustinoaq commentedon Sep 7, 2017
Hey guys @drujensen @elorest Can you read this comment again?He is showing us good results for plaintext, at least much better than before, closer tocrystal-rawAlso json is good:Thanks you @nbrady-techempower for you support! ❤️
sdogruyol commentedon Sep 7, 2017
@faustinoaq that's total requests
1.44M / 15 ~= 100K RPS
faustinoaq commentedon Sep 7, 2017
@sdogruyol My bad 😅
NateBrady23 commentedon Sep 7, 2017
@elorest @drujensen can you confirm whether you're on a 1 or 3 machine setup and specifically, what is your ULIMIT max? We've set a very high ULIMIT on these machines and that specifically helped the performance of a lot of frameworks. After looking closely at wrk results you zipped up and the ones being generated from our environment, it seems like you may have a single machine setup with reduced latency and a smaller ULIMIT size which stunted crystal-raw.
drujensen commentedon Sep 8, 2017
Nate,
We only used a single machine and used the default u limit.
We will rerun on two boxes since we are not concerned with the 4 db tests and up the u limit to max.
I doubt that crystal-raw was some way limited by ulimits but we will confirm.
Question is why running on one box would be faster than 2, and why we are seeing 4x faster on an 8 core vs 80 core, but we will confirm.
elorest commentedon Sep 8, 2017
NateBrady23 commentedon Sep 8, 2017
@drujensen From the client running
wrkto a server on a different machine simulates a real request over the internet. Hitting localhost withwrkon the same machine is going to give you much better results?I don't think there's such a thing as ulimit=unlimited.
Also, as another note, the client running work is 8 HT cores. The server hosting your application has 80 HT cores.
faustinoaq commentedon Sep 9, 2017
@nbrady-techempower I think 👆 is reasonable but the thing here is that results in
plaintextandjsonwithkemal&&amber. seems to be too far ofcrystal-rawresults.So, if
crystal-rawis getting 1.5M RPS we are expecting at least 50% of that (say 700K RPS) not a 10% as the preview 2 is showing us (100K RPS). I think we can find the problem 😄BTW, Thanks you a lot for maintaining this awesome project! ❤️
NateBrady23 commentedon Sep 10, 2017
@faustinoaq I understand what you're saying. I can give you guys other environment information as you need it. There must be something that
crystal-rawis taking advantage of in that environment? I'm not sure without digging deep in to each framework, which unfortunately I can't do at the moment. But let me know if there's anything else I can get you.98 remaining items
NateBrady23 commentedon Nov 27, 2017
Hey guys, here's some results after merging in #3094
Haven't reached kemal yet. Also, amber is still failing and that's with the recent fix.
drujensen commentedon Nov 27, 2017
thanks @nbrady-techempower. Looks like Radix is not the issue if we are seeing better performance with it than without.
faustinoaq commentedon Nov 27, 2017
thanks @nbrady-techempower Yeah, radix isn't the issue, like I commented before #3092 (comment)
But amber passed Travis, Can you share us some amber logs to see what is happening? 😅
faustinoaq commentedon Nov 27, 2017
By example on preview 3, amber was failing because dependency mismatch:
See: http://tfb-logs.techempower.com/round-15/preview-3/amber/out.txt
NateBrady23 commentedon Nov 27, 2017
@faustinoaq I haven't looked through it yet but here it is: http://sprunge.us/KHhc
faustinoaq commentedon Nov 28, 2017
Thank you @nbrady-techempower , The logs look good, amber servers were running, Can you share us
fortune/raw.txtoutput for amber?By example on preview 2 (amber failed on preview 3 because dependency mismatch) 👉 http://tfb-logs.techempower.com/round-15/preview-2/amber/fortune/raw.txt
NateBrady23 commentedon Nov 28, 2017
@faustinoaq The raw.txt is empty.
[Amber 0.3.6] serving application "TFB test app" at http://127.0.0.1:8080looks like you're only accepting requests from localhost, yeah? Should probably behttp://0.0.0.0:8080faustinoaq commentedon Nov 28, 2017
Thank you @nbrady-techempower , you're right, we are running on localhost, let us fix that 👍
faustinoaq commentedon Nov 29, 2017
Hi @nbrady-techempower can you confirm us amber is working with latest PR? 😅
RX14 commentedon Nov 29, 2017
Another (somewhat unrelated) request that should probably go on the mailinglist, but please could you try adding >256 connections concurrency for the JSON benchmark.
From the latest
crystal-rawJSON latency distributions:We're still in the microsecond range. This indicates to me that we're not fully loaded. How about a 512 connections tier? Maybe even 1024? It'd be an interesting standalone test at least to see where the peak is.
NateBrady23 commentedon Nov 29, 2017
@faustinoaq yes, amber is passing now.
msmith-techempower commentedon Jan 9, 2018
It seems like a lot of work has been committed on the crystal frameworks mentioned here - can this issue be closed?
NateBrady23 commentedon Jan 9, 2018
Yeah I think this can be closed for now. Let us know if you guys need anything else from us.
faustinoaq commentedon May 16, 2018
Oh, yeah! Now looks like Amber is as fast as crystal on TFB 🎉 😄
Ref: Results
Ref: Citrine Build