Twist+pyMongo+MongoDB测试结果

34 篇文章 0 订阅
21 篇文章 0 订阅

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

代码也不贴了。

 

主要是测试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)

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值