Comments (3)
Same config:
ab -n10000 -c10 http://localhost:4242/factor?q=22
This is ApacheBench, Version 2.3 <$Revision: 1528965 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (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: nope.chttpd/0.1.0
Server Hostname: localhost
Server Port: 4242
Document Path: /factor?q=22
Document Length: 133 bytes
Concurrency Level: 10
Time taken for tests: 0.795 seconds
Complete requests: 10000
Failed requests: 0
Total transferred: 2270000 bytes
HTML transferred: 1330000 bytes
Requests per second: 12573.02 [#/sec] (mean)
Time per request: 0.795 [ms] (mean)
Time per request: 0.080 [ms] (mean, across all concurrent requests)
Transfer rate: 2787.18 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.1 0 1
Processing: 0 1 4.7 0 101
Waiting: 0 0 4.7 0 101
Total: 0 1 4.7 0 101
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 1
80% 1
90% 1
95% 1
98% 1
99% 2
100% 101 (longest request)
Single threaded is actually faster
ab -n10000 -c10 http://localhost:4242/factor?q=22
This is ApacheBench, Version 2.3 <$Revision: 1528965 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (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: nope.chttpd/0.1.0
Server Hostname: localhost
Server Port: 4242
Document Path: /factor?q=22
Document Length: 133 bytes
Concurrency Level: 10
Time taken for tests: 0.358 seconds
Complete requests: 10000
Failed requests: 0
Total transferred: 2270000 bytes
HTML transferred: 1330000 bytes
Requests per second: 27948.03 [#/sec] (mean)
Time per request: 0.358 [ms] (mean)
Time per request: 0.036 [ms] (mean, across all concurrent requests)
Transfer rate: 6195.51 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.0 0 1
Processing: 0 0 0.1 0 2
Waiting: 0 0 0.1 0 2
Total: 0 0 0.1 0 2
Percentage of the requests served within a certain time (ms)
50% 0
66% 0
75% 0
80% 0
90% 0
95% 0
98% 0
99% 0
100% 2 (longest request)
GET /factorGET /factorGET /factorGET /factorGET
is just stray output. I have taken it out.
from wafer.
I will do some more elaborate tests to confirm the result.
In the mean time, may you try this ?
https://github.com/wg/wrk
from wafer.
Thanks!
I did try wrk, and it reported 0 requests as being completed. I am not entirely sure as to why.
from wafer.
Related Issues (20)
- Who needs a web framework written under GPL terms anyway HOT 5
- Really a use for select() ? HOT 5
- Building on OS X fails HOT 3
- support other multiplexing I/O methods? HOT 4
- Better non-blocking socket reading
- TCP_CORK is Linux-specific, need to #ifdef it as such HOT 1
- Integer overflow in array allocations HOT 1
- Why not use dprintf instead of nprintf? HOT 1
- nope.c:77 - Result of 'malloc' is converted to a pointer of type 'char', which is incompatible with sizeof operand type 'char *' HOT 1
- nope.c architecture HOT 3
- need a automatically expandable buffer?
- check send buf before sending data? HOT 1
- Add logging option HOT 11
- repeat code HOT 1
- Is there a standard function to handle 404? HOT 2
- AF-Unix HOT 1
- Some clean up
- README needs info on size of WAFer
- Completion of error handling
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wafer.