spawning + twisted

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
Spawning 0.7 (memory eater)
piranha 1318 0.0 0.4 176364 9056 pts/4 Sl+ 11:53 0:00 /usr/bin/python /usr/local/bin/spawn --factory=spawning.django_factory.config_factory settings --port 9090 -s 2 -t 50
piranha 1339 12.5 1.9 456236 40564 pts/4 Sl+ 11:53 0:30 /usr/bin/python /usr/local/lib/python2.5/site-packages/Spawning-0.7-py2.5.egg/spawning/spawning_child.pyc 1318 3 4 spawning.django_factory.config_factory {"processpool_workers": 0, "args": ["settings"], "num_processes": 2, "watch": null, "dev": true, "host": "", "threadpool_workers": 50, "port": 9090} --reload
piranha 1340 12.6 2.0 456852 41844 pts/4 Sl+ 11:53 0:30 /usr/bin/python /usr/local/lib/python2.5/site-packages/Spawning-0.7-py2.5.egg/spawning/spawning_child.pyc 1318 3 4 spawning.django_factory.config_factory {"processpool_workers": 0, "args": ["settings"], "num_processes": 2, "watch": null, "dev": true, "host": "", "threadpool_workers": 50, "port": 9090}
piranha@gtv ~>ab -c 50 -n 500 http://127.0.0.1:9090/blog/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking 127.0.0.1 (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Finished 500 requests
Server Software:
Server Hostname: 127.0.0.1
Server Port: 9090
Document Path: /blog/
Document Length: 32358 bytes
Concurrency Level: 50
Time taken for tests: 28.261712 seconds
Complete requests: 500
Failed requests: 0
Write errors: 0
Total transferred: 16327000 bytes
HTML transferred: 16179000 bytes
Requests per second: 17.69 [#/sec] (mean)
Time per request: 2826.171 [ms] (mean)
Time per request: 56.523 [ms] (mean, across all concurrent requests)
Transfer rate: 564.16 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 1
Processing: 879 2764 663.5 2775 4697
Waiting: 879 2759 661.8 2774 4697
Total: 879 2764 663.5 2775 4697
Percentage of the requests served within a certain time (ms)
50% 2775
66% 3035
75% 3210
80% 3330
90% 3560
95% 3759
98% 4251
99% 4471
100% 4697 (longest request)
Twisted
piranha 2789 39.4 1.4 118736 29932 pts/1 Sl+ 12:04 0:58 /usr/bin/python /usr/bin/twistd -ny twrun.py
piranha@gtv ~/dev/misc/sr>ab -c 50 -n 500 http://localhost:8000/blog/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient)
Completed 100 requests
Completed 200 requests
Completed 300 requests
Completed 400 requests
Finished 500 requests
Server Software: Twisted/8.0.1
Server Hostname: localhost
Server Port: 8000
Document Path: /blog/
Document Length: 33701 bytes
Concurrency Level: 50
Time taken for tests: 48.990690 seconds
Complete requests: 500
Failed requests: 0
Write errors: 0
Total transferred: 17028500 bytes
HTML transferred: 16850500 bytes
Requests per second: 10.21 [#/sec] (mean)
Time per request: 4899.069 [ms] (mean)
Time per request: 97.981 [ms] (mean, across all concurrent requests)
Transfer rate: 339.43 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 1
Processing: 876 4700 759.1 4878 5376
Waiting: 862 4681 758.1 4863 5326
Total: 876 4700 759.1 4878 5376
Percentage of the requests served within a certain time (ms)
50% 4878
66% 4949
75% 5001
80% 5038
90% 5111
95% 5170
98% 5240
99% 5286
100% 5376 (longest request)