Skip to content

Instantly share code, notes, and snippets.

@rawhat
Created April 18, 2022 21:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rawhat/11ab57ef8dde4170304adc01c8c05a99 to your computer and use it in GitHub Desktop.
Save rawhat/11ab57ef8dde4170304adc01c8c05a99 to your computer and use it in GitHub Desktop.
Super rough benchmark gleam_tcp vs ThousandIsland (just for a sanity check, not actually competing...)
# ThousandIsland
alex-vistar-laptop in ~ γ ab -r -n 230000 -c 8 -l http://192.168.173.211:8000/
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.173.211 (be patient)
Completed 23000 requests
Completed 46000 requests
Completed 69000 requests
Completed 92000 requests
Completed 115000 requests
Completed 138000 requests
Completed 161000 requests
Completed 184000 requests
Completed 207000 requests
Completed 230000 requests
Finished 230000 requests
Server Software:
Server Hostname: 192.168.173.211
Server Port: 8000
Document Path: /
Document Length: Variable
Concurrency Level: 8
Time taken for tests: 31.848 seconds
Complete requests: 230000
Failed requests: 3496
(Connect: 0, Receive: 1748, Length: 0, Exceptions: 1748)
Total transferred: 7075812 bytes
HTML transferred: 2739024 bytes
Requests per second: 7221.80 [#/sec] (mean)
Time per request: 1.108 [ms] (mean)
Time per request: 0.138 [ms] (mean, across all concurrent requests)
Transfer rate: 216.97 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 8.8 0 1026
Processing: 0 1 0.6 1 25
Waiting: 0 1 0.6 1 25
Total: 0 1 8.8 1 1027
Percentage of the requests served within a certain time (ms)
50% 1
66% 1
75% 1
80% 1
90% 1
95% 1
98% 1
99% 2
100% 1027 (longest request)
# gleam_tcp
alex-vistar-laptop in ~ γ ab -r -n 230000 -c 8 -l http://192.168.173.211:8000/
This is ApacheBench, Version 2.3 <$Revision: 1879490 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking 192.168.173.211 (be patient)
Completed 23000 requests
Completed 46000 requests
Completed 69000 requests
Completed 92000 requests
Completed 115000 requests
Completed 138000 requests
Completed 161000 requests
Completed 184000 requests
Completed 207000 requests
Completed 230000 requests
Finished 230000 requests
Server Software:
Server Hostname: 192.168.173.211
Server Port: 8000
Document Path: /
Document Length: Variable
Concurrency Level: 8
Time taken for tests: 32.038 seconds
Complete requests: 230000
Failed requests: 1852
(Connect: 0, Receive: 926, Length: 0, Exceptions: 926)
Total transferred: 4123332 bytes
HTML transferred: 458148 bytes
Requests per second: 7178.94 [#/sec] (mean)
Time per request: 1.114 [ms] (mean)
Time per request: 0.139 [ms] (mean, across all concurrent requests)
Transfer rate: 125.68 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 7.7 0 1025
Processing: 0 1 3.3 1 1003
Waiting: 0 1 3.3 1 1003
Total: 0 1 8.3 1 1026
Percentage of the requests served within a certain time (ms)
50% 1
66% 1
75% 1
80% 1
90% 1
95% 1
98% 1
99% 2
100% 1026 (longest request)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment