Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save anarcher/4367379 to your computer and use it in GitHub Desktop.
Save anarcher/4367379 to your computer and use it in GitHub Desktop.
scala - hawtdispatch - nio vs single process node (static serving)
╰─$ ab -c100 -n100000 "http://localhost:3333/build.sbt"
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Completed 100000 requests
Finished 100000 requests
Server Software: atuan-httpd
Server Hostname: localhost
Server Port: 3333
Document Path: /build.sbt
Document Length: 205 bytes
Concurrency Level: 100
Time taken for tests: 5.624 seconds
Complete requests: 100000
Failed requests: 0
Write errors: 0
Total transferred: 28400000 bytes
HTML transferred: 20500000 bytes
Requests per second: 17780.52 [#/sec] (mean)
Time per request: 5.624 [ms] (mean)
Time per request: 0.056 [ms] (mean, across all concurrent requests)
Transfer rate: 4931.32 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 2 46.9 0 3002
Processing: 0 3 14.6 1 2067
Waiting: 0 2 14.5 1 2067
Total: 0 5 53.0 2 3005
Percentage of the requests served within a certain time (ms)
50% 2
66% 2
75% 3
80% 3
90% 5
95% 8
98% 15
99% 20
100% 3005 (longest request)
╰─$ ab -c100 -n100000 "http://localhost:8125/build.sbt"
This is ApacheBench, Version 2.3 <$Revision: 655654 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 10000 requests
Completed 20000 requests
Completed 30000 requests
Completed 40000 requests
Completed 50000 requests
Completed 60000 requests
Completed 70000 requests
Completed 80000 requests
Completed 90000 requests
Completed 100000 requests
Finished 100000 requests
Server Software:
Server Hostname: localhost
Server Port: 8125
Document Path: /build.sbt
Document Length: 205 bytes
Concurrency Level: 100
Time taken for tests: 15.471 seconds
Complete requests: 100000
Failed requests: 0
Write errors: 0
Total transferred: 26800000 bytes
HTML transferred: 20500000 bytes
Requests per second: 6463.76 [#/sec] (mean)
Time per request: 15.471 [ms] (mean)
Time per request: 0.155 [ms] (mean, across all concurrent requests)
Transfer rate: 1691.69 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 3
Processing: 12 15 3.6 14 36
Waiting: 12 15 3.6 14 35
Total: 12 15 3.6 14 36
Percentage of the requests served within a certain time (ms)
50% 14
66% 14
75% 14
80% 15
90% 24
95% 25
98% 25
99% 26
100% 36 (longest request)
processor : 3
vendor_id : GenuineIntel
cpu family : 6
model : 42
model name : Intel(R) Core(TM) i5-2400 CPU @ 3.10GHz
stepping : 7
microcode : 0x1a
cpu MHz : 1600.000
cache size : 6144 KB
physical id : 0
siblings : 4
core id : 3
cpu cores : 4
apicid : 6
initial apicid : 6
fpu : yes
fpu_exception : yes
cpuid level : 13
wp : yes
flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic popcnt tsc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts dtherm tpr_shadow vnmi flexpriority ept vpid
bogomips : 6185.66
clflush size : 64
cache_alignment : 64
address sizes : 36 bits physical, 48 bits virtual
power management:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment