4 ms·
I did a `npm install http-server`. It threw me a module not found error twice - once for `eyes` and once for `colors` I ran it on a directory and tested it wi
by irahul 15y ago
I did a `npm install http-server`.
It threw me a module not found error twice - once for `eyes` and once for `colors`
I ran it on a directory and tested it with `ab -n 100 -c 5 localhost:8080/`.
Concurrency Level: 5
Time taken for tests: 0.046 seconds
Complete requests: 100
Failed requests: 0
Write errors: 0
Total transferred: 175900 bytes
HTML transferred: 149900 bytes
Requests per second: 2159.97 [#/sec] (mean)
Time per request: 2.315 [ms] (mean)
Time per request: 0.463 [ms] (mean, across all concurrent requests)
Transfer rate: 3710.33 [Kbytes/sec] received
So, in my micro benchmark, it doesn't do 6000 request/second on my box.
EDIT: `ab -n 15000 -c 5 localhost:8080/` is about 3000 req/s on my machine for http-server; 2200 for SimpleHTTPServer.
`python - SimpleHTTPServer 8080` gave me 1800 requests/second.
As far as configuration goes, for a dev server(that's what both SimpleHTTPServer and http-server are for me), the only configurations I do is to change the port.
Also, it's not like http-server is a highly configurable http server and framework combined into one - I for one can live without auto-index on/off.
- bitcoin 15y agoSorry about that. Bumped to v0.1.1 and published to npm. Should fix [dist] issues. I have a feeling you need to update your npm to version 1.0 as well.