|
11 | 11 | _The standalone CLI application, allowing for instant previews of static sites._
|
12 | 12 |
|
13 | 13 |
|
| 14 | + |
| 15 | +## Benchmarks |
| 16 | + |
| 17 | +All benchmarks are taken using the same [Polka](https://github.com/lukeed/polka) application on Node v8.9.0. |
| 18 | + |
| 19 | +Please note that the actual numbers don't really matter; however, the percentage differences between them do! |
| 20 | + |
| 21 | +***File Exists*** |
| 22 | + |
| 23 | +``` |
| 24 | +$ wrk -t8 -c100 -d10s http://localhost:3000/ |
| 25 | +``` |
| 26 | + |
| 27 | +``` |
| 28 | +serve-static |
| 29 | + Thread Stats Avg Stdev Max +/- Stdev |
| 30 | + Latency 8.74ms 596.13us 14.44ms 79.26% |
| 31 | + Req/Sec 1.38k 56.04 1.45k 69.62% |
| 32 | + 109872 requests in 10.02s, 40.66MB read |
| 33 | + Requests/sec: 10969.49 |
| 34 | + Transfer/sec: 4.06MB |
| 35 | +
|
| 36 | +sirv |
| 37 | + Thread Stats Avg Stdev Max +/- Stdev |
| 38 | + Latency 7.87ms 2.53ms 15.59ms 81.37% |
| 39 | + Req/Sec 1.53k 69.36 2.07k 71.25% |
| 40 | + 122047 requests in 10.03s, 33.87MB read |
| 41 | + Requests/sec: 12174.15 |
| 42 | + Transfer/sec: 3.38MB |
| 43 | +``` |
| 44 | + |
| 45 | +***File Missing*** |
| 46 | + |
| 47 | +``` |
| 48 | +$ wrk -t8 -c100 -d10s http://localhost:3000/foobar |
| 49 | +``` |
| 50 | + |
| 51 | +``` |
| 52 | +serve-static |
| 53 | + Thread Stats Avg Stdev Max +/- Stdev |
| 54 | + Latency 4.00ms 257.09us 7.81ms 76.04% |
| 55 | + Req/Sec 3.01k 65.66 3.15k 74.62% |
| 56 | + 239800 requests in 10.01s, 26.30MB read |
| 57 | + Non-2xx or 3xx responses: 239800 |
| 58 | + Requests/sec: 23962.46 |
| 59 | + Transfer/sec: 2.63MB |
| 60 | +
|
| 61 | +sirv |
| 62 | + Thread Stats Avg Stdev Max +/- Stdev |
| 63 | + Latency 2.89ms 256.70us 6.62ms 72.19% |
| 64 | + Req/Sec 4.17k 157.94 4.93k 75.22% |
| 65 | + 334715 requests in 10.10s, 44.69MB read |
| 66 | + Non-2xx or 3xx responses: 334715 |
| 67 | + Requests/sec: 33130.72 |
| 68 | + Transfer/sec: 4.42MB |
| 69 | +``` |
| 70 | + |
| 71 | + |
14 | 72 | ## License
|
15 | 73 |
|
16 | 74 | MIT © [Luke Edwards](https://lukeed.com)
|
0 commit comments