I'm benchmarking Hobbit with "hat" and I'm seeing some weird behavior.
I'm using Puma:
puma -t 16 -w 2 -e production
The results are not that great on the latest iMac:
$ wrk -t 2 http://localhost:9292/
Running 10s test @ http://localhost:9292/
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 8.27ms 4.75ms 31.29ms 72.14%
Req/Sec 492.83 232.84 0.91k 51.49%
8698 requests in 10.00s, 8.04MB read
Socket errors: connect 0, read 0, write 0, timeout 15
Requests/sec: 869.77
Transfer/sec: 823.12KB
However, if I comment out everything inside the /assets block, plus remove the assets from the layout file, I get a pretty decent result:
$ wrk -t 2 http://localhost:9292/
Running 10s test @ http://localhost:9292/
2 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 2.16ms 2.42ms 24.30ms 87.62%
Req/Sec 2.48k 377.00 3.56k 72.97%
46861 requests in 10.00s, 43.31MB read
Requests/sec: 4686.19
Transfer/sec: 4.33MB
In other words:
map '/assets' do
# removed
end
What's the reason for this slowness, anything that can be done to speed things up?
I'm benchmarking Hobbit with "hat" and I'm seeing some weird behavior.
I'm using Puma:
The results are not that great on the latest iMac:
However, if I comment out everything inside the /assets block, plus remove the assets from the layout file, I get a pretty decent result:
In other words:
What's the reason for this slowness, anything that can be done to speed things up?