Skip to content

Instantly share code, notes, and snippets.

@aycanirican
Created March 13, 2012 21:00
Show Gist options
  • Save aycanirican/2031542 to your computer and use it in GitHub Desktop.
Save aycanirican/2031542 to your computer and use it in GitHub Desktop.
19k request/sec on dragonflybsd.
% # source: https://github.com/aycanirican/hlibev/blob/master/Examples/ByteStringConcurrent.hs
% dmesg | grep GHz
CPU: Pentium(R) Dual-Core CPU E6300 @ 2.80GHz (2799.48-MHz K8-class CPU)
% curl http://192.168.1.100:5002/
Hello, World!
% uname -a
DragonFly x 3.1-DEVELOPMENT DragonFly v3.1.0.299.g62f17-DEVELOPMENT #13: Mon Mar 12 12:39:42 EET 2012 root@x:/usr/obj/usr/src/sys/MYKERNEL x86_64
% ab -n 100000 -c 100 http://192.168.1.100:5002/
This is ApacheBench, Version 2.0.41-dev <$Revision: 1.121.2.12 $> apache-2.0
Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright (c) 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.1.100 (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
Finished 100000 requests
Server Software:
Server Hostname: 192.168.1.100
Server Port: 5002
Document Path: /
Document Length: 13 bytes
Concurrency Level: 100
Time taken for tests: 5.128430 seconds
Complete requests: 100000
Failed requests: 0
Write errors: 0
Total transferred: 5201924 bytes
HTML transferred: 1300481 bytes
Requests per second: 19499.14 [#/sec] (mean)
Time per request: 5.128 [ms] (mean)
Time per request: 0.051 [ms] (mean, across all concurrent requests)
Transfer rate: 990.56 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 1 1.1 0 8
Processing: 2 3 0.8 3 10
Waiting: 1 2 0.8 2 8
Total: 2 4 1.6 4 12
Percentage of the requests served within a certain time (ms)
50% 4
66% 6
75% 6
80% 6
90% 6
95% 7
98% 7
99% 7
100% 12 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment