Twist+pyMongo+MongoDB测试结果

两台测试机,机器的配置就不写了。

代码也不贴了。

 

主要是测试pymongo在twisted下的稳定度,和可能出现的同步问题(或许没有)

 

 

Inser:

 

 

mail:/home/jintong# ab -kc 10 -t 30 http://192.168.2.7:8080/t

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 192.168.2.7 (be patient)

Completed 5000 requests

Completed 10000 requests

Completed 15000 requests

Finished 16220 requests

 

 

Server Software:        TwistedWeb/9.0.0

Server Hostname:        192.168.2.7

Server Port:            8080

 

Document Path:          /t

Document Length:        14 bytes

 

Concurrency Level:      10

Time taken for tests:   30.001 seconds

Complete requests:      16220

Failed requests:        0

Write errors:           0

Keep-Alive requests:    0

Total transferred:      2205920 bytes

HTML transferred:       227080 bytes

Requests per second:    540.64 [#/sec] (mean)

Time per request:       18.497 [ms] (mean)

Time per request:       1.850 [ms] (mean, across all concurrent requests)

Transfer rate:          71.80 [Kbytes/sec] received

 

Connection Times (ms)

              min  mean[+/-sd] median   max

Connect:        0    0   0.2      0      10

Processing:     6   18  15.5     16     488

Waiting:        6   18  15.5     16     488

Total:          6   18  15.5     16     488

 

Percentage of the requests served within a certain time (ms)

  50%     16

  66%     17

  75%     17

  80%     19

  90%     22

  95%     25

  98%     37

  99%     54

 100%    488 (longest request)

 

 

Count:

mail:/home/jintong# ab -kc 10 -t 30 http://192.168.2.7:8080/t

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 192.168.2.7 (be patient)

Completed 5000 requests

Completed 10000 requests

Completed 15000 requests

Finished 15595 requests

 

 

Server Software:        TwistedWeb/9.0.0

Server Hostname:        192.168.2.7

Server Port:            8080

 

Document Path:          /t

Document Length:        14 bytes

 

Concurrency Level:      10

Time taken for tests:   30.016 seconds

Complete requests:      15595

Failed requests:        0

Write errors:           0

Keep-Alive requests:    0

Total transferred:      2120920 bytes

HTML transferred:       218330 bytes

Requests per second:    519.56 [#/sec] (mean)

Time per request:       19.247 [ms] (mean)

Time per request:       1.925 [ms] (mean, across all concurrent requests)

Transfer rate:          69.00 [Kbytes/sec] received

 

Connection Times (ms)

              min  mean[+/-sd] median   max

Connect:        0    0   0.0      0       1

Processing:     6   19   5.9     18     168

Waiting:        6   19   5.9     18     168

Total:          7   19   5.9     18     168

 

Percentage of the requests served within a certain time (ms)

  50%     18

  66%     19

  75%     19

  80%     19

  90%     22

  95%     25

  98%     29

  99%     38

 100%    168 (longest request)

 

 

你可能感兴趣的:(apache,mongodb,server,测试,processing,Path)