Skip to content

Instantly share code, notes, and snippets.

@amcgregor
Created January 8, 2011 14:48
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 amcgregor/770893 to your computer and use it in GitHub Desktop.
Save amcgregor/770893 to your computer and use it in GitHub Desktop.
Comparison between non-threaded and threaded execution of marrow.server.http. Note the "interrupted system call" logged exception; need to look into that.
INFO:marrow.server.base:Starting up.
INFO:marrow.server.base:Server running with PID 8639, serving on 127.0.0.1:8888.
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 127.0.0.1 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests
Server Software: marrow.httpd/0.9
Server Hostname: 127.0.0.1
Server Port: 8888
Document Path: /
Document Length: 13 bytes
Concurrency Level: 25
Time taken for tests: 3.049 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 1410000 bytes
HTML transferred: 130000 bytes
Requests per second: 3280.00 [#/sec] (mean)
Time per request: 7.622 [ms] (mean)
Time per request: 0.305 [ms] (mean, across all concurrent requests)
Transfer rate: 451.64 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 7
Processing: 2 7 1.0 7 18
Waiting: 2 7 1.0 7 18
Total: 3 8 0.9 7 18
WARNING: The median and mean for the total time are not within a normal deviation
These results are probably not that reliable.
Percentage of the requests served within a certain time (ms)
50% 7
66% 8
75% 8
80% 8
90% 9
95% 9
98% 10
99% 10
100% 18 (longest request)
WARNING:marrow.io.ioloop:Interrupted system call
Traceback (most recent call last):
File "/Users/amcgregor/Documents/Projects/Marrow/src/marrow.io/marrow/io/ioloop.py", line 264, in start
event_pairs = self._impl.poll(poll_timeout)
File "/Users/amcgregor/Documents/Projects/Marrow/src/marrow.io/marrow/io/ioloop.py", line 547, in poll
self.read_fds, self.write_fds, self.error_fds, timeout)
error: (4, 'Interrupted system call')
INFO:marrow.server.base:Shutting down.
INFO:marrow.server.base:Stopped.
>>> python examples/benchmark.py 2.65s user 1.47s system 127% cpu 3.240 total
INFO:marrow.server.base:Starting up.
INFO:marrow.server.base:Server running with PID 8632, serving on 127.0.0.1:8888.
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 127.0.0.1 (be patient)
Completed 1000 requests
Completed 2000 requests
Completed 3000 requests
Completed 4000 requests
Completed 5000 requests
Completed 6000 requests
Completed 7000 requests
Completed 8000 requests
Completed 9000 requests
Completed 10000 requests
Finished 10000 requests
Server Software: marrow.httpd/0.9
Server Hostname: 127.0.0.1
Server Port: 8888
Document Path: /
Document Length: 13 bytes
Concurrency Level: 25
Time taken for tests: 3.105 seconds
Complete requests: 10000
Failed requests: 0
Write errors: 0
Total transferred: 1410000 bytes
HTML transferred: 130000 bytes
Requests per second: 3220.44 [#/sec] (mean)
Time per request: 7.763 [ms] (mean)
Time per request: 0.311 [ms] (mean, across all concurrent requests)
Transfer rate: 443.44 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 7
Processing: 1 8 1.2 7 16
Waiting: 1 7 1.1 7 16
Total: 2 8 1.1 7 16
Percentage of the requests served within a certain time (ms)
50% 7
66% 8
75% 8
80% 9
90% 9
95% 10
98% 11
99% 12
100% 16 (longest request)
WARNING:marrow.io.ioloop:Interrupted system call
Traceback (most recent call last):
File "/Users/amcgregor/Documents/Projects/Marrow/src/marrow.io/marrow/io/ioloop.py", line 264, in start
event_pairs = self._impl.poll(poll_timeout)
File "/Users/amcgregor/Documents/Projects/Marrow/src/marrow.io/marrow/io/ioloop.py", line 547, in poll
self.read_fds, self.write_fds, self.error_fds, timeout)
error: (4, 'Interrupted system call')
INFO:marrow.server.base:Shutting down.
INFO:marrow.server.base:Stopped.
>>> python examples/benchmark.py --threads=30 2.66s user 1.46s system 124% cpu 3.297 total
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment