Skip to content

Instantly share code, notes, and snippets.

@whiteclover
Created May 19, 2014 09:21
Show Gist options
  • Save whiteclover/dde2adb7a964ff446453 to your computer and use it in GitHub Desktop.
Save whiteclover/dde2adb7a964ff446453 to your computer and use it in GitHub Desktop.
Hello world Bench Mark

Hello World! Benchmark

Machine

	Architecture:          x86_64
	CPU op-mode(s):        32-bit, 64-bit
	Byte Order:            Little Endian
	CPU(s):                8
	On-line CPU(s) list:   0-7
	Thread(s) per core:    2
	Core(s) per socket:    4
	Socket(s):             1
	NUMA node(s):          1
	Vendor ID:             GenuineIntel
	CPU family:            6
	Model:                 58
	Stepping:              9
	CPU MHz:               1600.000
	BogoMIPS:              6784.06
	Virtualization:        VT-x
	L1d cache:             32K
	L1i cache:             32K
	L2 cache:              256K
	L3 cache:              8192K
	NUMA node0 CPU(s):     0-7

Flask Gevent

ab -n50000 -c500 http://localhost:8080/

	Server Software:        
	Server Hostname:        localhost
	Server Port:            8080

	Document Path:          /
	Document Length:        12 bytes

	Concurrency Level:      500
	Time taken for tests:   16.002 seconds
	Complete requests:      50000
	Failed requests:        0
	Total transferred:      7350000 bytes
	HTML transferred:       600000 bytes
	Requests per second:    3124.54 [#/sec] (mean)
	Time per request:       160.023 [ms] (mean)
	Time per request:       0.320 [ms] (mean, across all concurrent requests)
	Transfer rate:          448.54 [Kbytes/sec] received

	Connection Times (ms)
	              min  mean[+/-sd] median   max
	Connect:        0  103 485.0      0   15032
	Processing:     1   44  20.2     41     453
	Waiting:        1   44  20.2     41     453
	Total:          7  147 488.4     42   15077

	Percentage of the requests served within a certain time (ms)
	  50%     42
	  66%     43
	  75%     44
	  80%     45
	  90%     54
	  95%   1042
	  98%   1049
	  99%   1245
	 100%  15077 (longest request)

ab -n50000 -c1000 http://localhost:8080/

	Server Software:        
	Server Hostname:        localhost
	Server Port:            8080

	Document Path:          /
	Document Length:        12 bytes

	Concurrency Level:      1000
	Time taken for tests:   16.077 seconds
	Complete requests:      50000
	Failed requests:        0
	Total transferred:      7350000 bytes
	HTML transferred:       600000 bytes
	Requests per second:    3110.10 [#/sec] (mean)
	Time per request:       321.533 [ms] (mean)
	Time per request:       0.322 [ms] (mean, across all concurrent requests)
	Transfer rate:          446.47 [Kbytes/sec] received

	Connection Times (ms)
	              min  mean[+/-sd] median   max
	Connect:        0  228 783.5      0   15032
	Processing:     2   53 111.5     43    3323
	Waiting:        2   53 111.5     43    3323
	Total:         18  281 805.6     43   15077

	Percentage of the requests served within a certain time (ms)
	  50%     43
	  66%     46
	  75%     49
	  80%     51
	  90%   1042
	  95%   1048
	  98%   3049
	  99%   3249
	 100%  15077 (longest request)

Lilac Gevent

ab -n50000 -c500 http://localhost:8080/

	Server Software:        
	Server Hostname:        localhost
	Server Port:            8080

	Document Path:          /
	Document Length:        12 bytes

	Concurrency Level:      500
	Time taken for tests:   9.491 seconds
	Complete requests:      50000
	Failed requests:        0
	Total transferred:      7350000 bytes
	HTML transferred:       600000 bytes
	Requests per second:    5268.39 [#/sec] (mean)
	Time per request:       94.906 [ms] (mean)
	Time per request:       0.190 [ms] (mean, across all concurrent requests)
	Transfer rate:          756.30 [Kbytes/sec] received

	Connection Times (ms)
	              min  mean[+/-sd] median   max
	Connect:        0   50 320.9      0    7012
	Processing:     1   26  27.0     24     844
	Waiting:        1   26  27.0     24     844
	Total:          9   76 327.8     24    7041

	Percentage of the requests served within a certain time (ms)
	  50%     24
	  66%     25
	  75%     26
	  80%     26
	  90%     27
	  95%     31
	  98%   1024
	  99%   1029
	 100%   7041 (longest request)

ab -n50000 -c1000 http://localhost:8080/

	Server Software:        
	Server Hostname:        localhost
	Server Port:            8080

	Document Path:          /
	Document Length:        12 bytes

	Concurrency Level:      1000
	Time taken for tests:   9.639 seconds
	Complete requests:      50000
	Failed requests:        0
	Total transferred:      7350000 bytes
	HTML transferred:       600000 bytes
	Requests per second:    5187.31 [#/sec] (mean)
	Time per request:       192.778 [ms] (mean)
	Time per request:       0.193 [ms] (mean, across all concurrent requests)
	Transfer rate:          744.66 [Kbytes/sec] received

	Connection Times (ms)
	              min  mean[+/-sd] median   max
	Connect:        0  142 608.8      0    7012
	Processing:     1   33  78.4     25    1665
	Waiting:        1   33  78.4     24    1665
	Total:          9  175 638.9     25    7439

	Percentage of the requests served within a certain time (ms)
	  50%     25
	  66%     26
	  75%     27
	  80%     28
	  90%     53
	  95%   1026
	  98%   1233
	  99%   3032
	 100%   7439 (longest request)

Flask WSGI libev

ab -n50000 -c500 http://localhost:8080/ 10

	Server Software:        
	Server Hostname:        localhost
	Server Port:            8080

	Document Path:          /
	Document Length:        12 bytes

	Concurrency Level:      500
	Time taken for tests:   21.033 seconds
	Complete requests:      50000
	Failed requests:        3824
	   (Connect: 0, Receive: 0, Length: 3824, Exceptions: 0)
	Non-2xx responses:      3824
	Total transferred:      5247328 bytes
	HTML transferred:       554112 bytes
	Requests per second:    2377.24 [#/sec] (mean)
	Time per request:       210.328 [ms] (mean)
	Time per request:       0.421 [ms] (mean, across all concurrent requests)
	Transfer rate:          243.64 [Kbytes/sec] received

	Connection Times (ms)
	              min  mean[+/-sd] median   max
	Connect:        0    2  43.1      0    1000
	Processing:     0  195 654.5      2    2525
	Waiting:        0  194 654.1      2    2525
	Total:          0  197 663.0      2    3498

	Percentage of the requests served within a certain time (ms)
	  50%      2
	  66%      5
	  75%      7
	  80%      9
	  90%     19
	  95%   2492
	  98%   2504
	  99%   2510
	 100%   3498 (longest request)

ab -n50000 -c1000 http://localhost:8080/ 10

	Server Software:        
	Server Hostname:        localhost
	Server Port:            8080

	Document Path:          /
	Document Length:        12 bytes

	Concurrency Level:      1000
	Time taken for tests:   19.866 seconds
	Complete requests:      50000
	Failed requests:        7115
	   (Connect: 0, Receive: 0, Length: 7115, Exceptions: 0)
	Non-2xx responses:      7115
	Total transferred:      5072905 bytes
	HTML transferred:       514620 bytes
	Requests per second:    2516.85 [#/sec] (mean)
	Time per request:       397.321 [ms] (mean)
	Time per request:       0.397 [ms] (mean, across all concurrent requests)
	Transfer rate:          249.37 [Kbytes/sec] received

	Connection Times (ms)
	              min  mean[+/-sd] median   max
	Connect:        0   19 140.3      0    3004
	Processing:     0  360 867.2      3    2525
	Waiting:        0  360 866.5      3    2519
	Total:          0  379 920.5      3    5494

	Percentage of the requests served within a certain time (ms)
	  50%      3
	  66%      6
	  75%     10
	  80%     14
	  90%   2487
	  95%   2502
	  98%   2518
	  99%   3499
	 100%   5494 (longest request)

ab -n50000 -c500 http://localhost:8080/ 200

	Server Software:        
	Server Hostname:        localhost
	Server Port:            8080

	Document Path:          /
	Document Length:        12 bytes

	Concurrency Level:      500
	Time taken for tests:   20.582 seconds
	Complete requests:      50000
	Failed requests:        3719
	   (Connect: 0, Receive: 0, Length: 3719, Exceptions: 0)
	Non-2xx responses:      3719
	Total transferred:      5252893 bytes
	HTML transferred:       555372 bytes
	Requests per second:    2429.28 [#/sec] (mean)
	Time per request:       205.822 [ms] (mean)
	Time per request:       0.412 [ms] (mean, across all concurrent requests)
	Transfer rate:          249.23 [Kbytes/sec] received

	Connection Times (ms)
	              min  mean[+/-sd] median   max
	Connect:        0    3  46.6      0    1000
	Processing:     0  194 647.9      6    2531
	Waiting:        0  194 647.5      6    2531
	Total:          0  197 657.8      6    3495

	Percentage of the requests served within a certain time (ms)
	  50%      6
	  66%      9
	  75%     12
	  80%     15
	  90%     26
	  95%   2490
	  98%   2502
	  99%   2509
	 100%   3495 (longest request)

ab -n50000 -c1000 http://localhost:8080/ 200

	Server Software:        
	Server Hostname:        localhost
	Server Port:            8080

	Document Path:          /
	Document Length:        12 bytes

	Concurrency Level:      1000
	Time taken for tests:   16.155 seconds
	Complete requests:      50000
	Failed requests:        4579
	   (Connect: 0, Receive: 0, Length: 4579, Exceptions: 0)
	Non-2xx responses:      4579
	Total transferred:      5207313 bytes
	HTML transferred:       545052 bytes
	Requests per second:    3094.96 [#/sec] (mean)
	Time per request:       323.106 [ms] (mean)
	Time per request:       0.323 [ms] (mean, across all concurrent requests)
	Transfer rate:          314.77 [Kbytes/sec] received

	Connection Times (ms)
	              min  mean[+/-sd] median   max
	Connect:        0   14 138.9      0    3002
	Processing:     0  240 708.2      7    5626
	Waiting:        0  240 707.9      7    5626
	Total:          0  254 754.7      7    5626

	Percentage of the requests served within a certain time (ms)
	  50%      7
	  66%     17
	  75%     28
	  80%     30
	  90%     46
	  95%   2494
	  98%   2508
	  99%   3007
	 100%   5626 (longest request)

ab -n50000 -c500 http://localhost:8080/ 500

	Server Software:        
	Server Hostname:        localhost
	Server Port:            8080

	Document Path:          /
	Document Length:        12 bytes

	Concurrency Level:      500
	Time taken for tests:   21.026 seconds
	Complete requests:      50000
	Failed requests:        3621
	   (Connect: 0, Receive: 0, Length: 3621, Exceptions: 0)
	Non-2xx responses:      3621
	Total transferred:      5258087 bytes
	HTML transferred:       556548 bytes
	Requests per second:    2377.98 [#/sec] (mean)
	Time per request:       210.263 [ms] (mean)
	Time per request:       0.421 [ms] (mean, across all concurrent requests)
	Transfer rate:          244.21 [Kbytes/sec] received

	Connection Times (ms)
	              min  mean[+/-sd] median   max
	Connect:        0    3  45.3      0    1000
	Processing:     0  194 643.2      7    2532
	Waiting:        0  194 642.7      7    2532
	Total:          0  197 652.9      7    3510

	Percentage of the requests served within a certain time (ms)
	  50%      7
	  66%     12
	  75%     17
	  80%     21
	  90%     42
	  95%   2490
	  98%   2503
	  99%   2510
	 100%   3510 (longest request)

ab -n50000 -c1000 http://localhost:8080/ 500

	Server Software:        
	Server Hostname:        localhost
	Server Port:            8080

	Document Path:          /
	Document Length:        12 bytes

	Concurrency Level:      1000
	Time taken for tests:   14.861 seconds
	Complete requests:      50000
	Failed requests:        2684
	   (Connect: 0, Receive: 0, Length: 2684, Exceptions: 0)
	Non-2xx responses:      2684
	Total transferred:      5307748 bytes
	HTML transferred:       567792 bytes
	Requests per second:    3364.60 [#/sec] (mean)
	Time per request:       297.212 [ms] (mean)
	Time per request:       0.297 [ms] (mean, across all concurrent requests)
	Transfer rate:          348.80 [Kbytes/sec] received

	Connection Times (ms)
	              min  mean[+/-sd] median   max
	Connect:        0   10  95.6      0    1001
	Processing:     0  158 588.6      7    3843
	Waiting:        0  158 588.2      7    3841
	Total:          0  168 623.7      7    4844

	Percentage of the requests served within a certain time (ms)
	  50%      7
	  66%     12
	  75%     20
	  80%     27
	  90%     35
	  95%   2349
	  98%   2501
	  99%   2508
	 100%   4844 (longest request)

Lilac WSGI libev

ab -n50000 -c500 http://localhost:8080/ 10

	Server Software:        
	Server Hostname:        localhost
	Server Port:            8080

	Document Path:          /
	Document Length:        12 bytes

	Concurrency Level:      500
	Time taken for tests:   5.677 seconds
	Complete requests:      50000
	Failed requests:        906
	   (Connect: 0, Receive: 0, Length: 906, Exceptions: 0)
	Non-2xx responses:      906
	Total transferred:      5401982 bytes
	HTML transferred:       589128 bytes
	Requests per second:    8807.50 [#/sec] (mean)
	Time per request:       56.770 [ms] (mean)
	Time per request:       0.114 [ms] (mean, across all concurrent requests)
	Transfer rate:          929.26 [Kbytes/sec] received

	Connection Times (ms)
	              min  mean[+/-sd] median   max
	Connect:        0    1  23.2      0    1000
	Processing:     0   46 322.0      0    2513
	Waiting:        0   46 321.8      0    2513
	Total:          0   47 326.7      1    3495

	Percentage of the requests served within a certain time (ms)
	  50%      1
	  66%      1
	  75%      1
	  80%      1
	  90%      2
	  95%      2
	  98%    662
	  99%   2192
	 100%   3495 (longest request)

ab -n50000 -c1000 http://localhost:8080/ 10

Server Software:        
Server Hostname:        localhost
Server Port:            8080

Document Path:          /
Document Length:        12 bytes

Concurrency Level:      1000
Time taken for tests:   5.756 seconds
Complete requests:      50000
Failed requests:        1879
   (Connect: 0, Receive: 0, Length: 1879, Exceptions: 0)
Non-2xx responses:      1879
Total transferred:      5350413 bytes
HTML transferred:       577452 bytes
Requests per second:    8686.17 [#/sec] (mean)
Time per request:       115.126 [ms] (mean)
Time per request:       0.115 [ms] (mean, across all concurrent requests)
Transfer rate:          907.71 [Kbytes/sec] received

Connection Times (ms)
              min  mean[+/-sd] median   max
Connect:        0    6  76.0      0    1000
Processing:     0   94 459.2      0    2512
Waiting:        0   94 458.9      0    2511
Total:          0  100 486.6      1    3502

Percentage of the requests served within a certain time (ms)
  50%      1
  66%      1
  75%      1
  80%      1
  90%      2
  95%     14
  98%   2391
  99%   2487
 100%   3502 (longest request)

ab -n50000 -c500 http://localhost:8080/ 200

	Server Software:        
	Server Hostname:        localhost
	Server Port:            8080

	Document Path:          /
	Document Length:        12 bytes

	Concurrency Level:      500
	Time taken for tests:   5.357 seconds
	Complete requests:      50000
	Failed requests:        656
	   (Connect: 0, Receive: 0, Length: 656, Exceptions: 0)
	Non-2xx responses:      656
	Total transferred:      5415232 bytes
	HTML transferred:       592128 bytes
	Requests per second:    9333.32 [#/sec] (mean)
	Time per request:       53.572 [ms] (mean)
	Time per request:       0.107 [ms] (mean, across all concurrent requests)
	Transfer rate:          987.15 [Kbytes/sec] received

	Connection Times (ms)
	              min  mean[+/-sd] median   max
	Connect:        0    0   1.1      0      17
	Processing:     0   38 291.0      1    2505
	Waiting:        0   38 290.9      1    2505
	Total:          0   38 291.6      1    2505

	Percentage of the requests served within a certain time (ms)
	  50%      1
	  66%      1
	  75%      1
	  80%      2
	  90%      3
	  95%      4
	  98%     12
	  99%   2348
	 100%   2505 (longest request)

ab -n50000 -c1000 http://localhost:8080/ 200

	Server Software:        
	Server Hostname:        localhost
	Server Port:            8080

	Document Path:          /
	Document Length:        12 bytes

	Concurrency Level:      1000
	Time taken for tests:   5.207 seconds
	Complete requests:      50000
	Failed requests:        1256
	   (Connect: 0, Receive: 0, Length: 1256, Exceptions: 0)
	Non-2xx responses:      1256
	Total transferred:      5383432 bytes
	HTML transferred:       584928 bytes
	Requests per second:    9603.35 [#/sec] (mean)
	Time per request:       104.130 [ms] (mean)
	Time per request:       0.104 [ms] (mean, across all concurrent requests)
	Transfer rate:          1009.75 [Kbytes/sec] received

	Connection Times (ms)
	              min  mean[+/-sd] median   max
	Connect:        0    3  80.4      0    3003
	Processing:     0   70 374.2      8    3681
	Waiting:        0   70 374.1      8    3681
	Total:          0   73 387.4      8    5182

	Percentage of the requests served within a certain time (ms)
	  50%      8
	  66%      8
	  75%      9
	  80%      9
	  90%     10
	  95%     11
	  98%   2196
	  99%   2474
	 100%   5182 (longest request)

ab -n50000 -c500 http://localhost:8080/ 500

	Server Software:        
	Server Hostname:        localhost
	Server Port:            8080

	Document Path:          /
	Document Length:        12 bytes

	Concurrency Level:      500
	Time taken for tests:   7.193 seconds
	Complete requests:      50000
	Failed requests:        0
	Total transferred:      5450000 bytes
	HTML transferred:       600000 bytes
	Requests per second:    6951.62 [#/sec] (mean)
	Time per request:       71.926 [ms] (mean)
	Time per request:       0.144 [ms] (mean, across all concurrent requests)
	Transfer rate:          739.97 [Kbytes/sec] received

	Connection Times (ms)
	              min  mean[+/-sd] median   max
	Connect:        0    0   0.9      0      15
	Processing:     0   71  68.3     48     728
	Waiting:        0   71  68.3     48     728
	Total:          0   71  68.3     48     728

	Percentage of the requests served within a certain time (ms)
	  50%     48
	  66%     75
	  75%     96
	  80%    112
	  90%    160
	  95%    206
	  98%    268
	  99%    319
	 100%    728 (longest request)

ab -n50000 -c1000 http://localhost:8080/ 500

	Server Software:        
	Server Hostname:        localhost
	Server Port:            8080

	Document Path:          /
	Document Length:        12 bytes

	Concurrency Level:      1000
	Time taken for tests:   4.666 seconds
	Complete requests:      50000
	Failed requests:        11
	   (Connect: 0, Receive: 0, Length: 11, Exceptions: 0)
	Non-2xx responses:      11
	Total transferred:      5449417 bytes
	HTML transferred:       599868 bytes
	Requests per second:    10715.40 [#/sec] (mean)
	Time per request:       93.324 [ms] (mean)
	Time per request:       0.093 [ms] (mean, across all concurrent requests)
	Transfer rate:          1140.48 [Kbytes/sec] received

	Connection Times (ms)
	              min  mean[+/-sd] median   max
	Connect:        0    9 164.9      0    3003
	Processing:     3   57 107.1     40    2519
	Waiting:        3   57 107.1     40    2519
	Total:          7   66 252.1     40    4652

	Percentage of the requests served within a certain time (ms)
	  50%     40
	  66%     53
	  75%     70
	  80%     80
	  90%    106
	  95%    135
	  98%    179
	  99%    221
	 100%   4652 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment