sirv

An optimized middleware & CLI application for serving static files~!

  • 所有者: lukeed/sirv
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

sirv CI

An optimized middleware & CLI application for serving static files~!

  • sirv
    GitHub · Package
    The core module, returning a middleware function for use in Polka & Express-like frameworks.

  • sirv-cli
    GitHub · Package
    The standalone CLI application, allowing for instant previews of static sites.

Benchmarks

All benchmarks are taken using the same Polka application on Node v8.9.0.

Please note that the actual numbers don't really matter; however, the percentage differences between them do!

File Exists

$ wrk -t8 -c100 -d10s http://localhost:3000/
serve-static
    Thread Stats   Avg      Stdev     Max   +/- Stdev
        Latency     8.74ms  596.13us  14.44ms   79.26%
        Req/Sec     1.38k    56.04     1.45k    69.62%
      109872 requests in 10.02s, 40.66MB read
    Requests/sec:  10969.49
    Transfer/sec:      4.06MB

sirv
    Thread Stats   Avg      Stdev     Max   +/- Stdev
        Latency     7.87ms    2.53ms  15.59ms   81.37%
        Req/Sec     1.53k    69.36     2.07k    71.25%
      122047 requests in 10.03s, 33.87MB read
    Requests/sec:  12174.15
    Transfer/sec:      3.38MB

File Missing

$ wrk -t8 -c100 -d10s http://localhost:3000/foobar
serve-static
    Thread Stats   Avg      Stdev     Max   +/- Stdev
        Latency     4.00ms  257.09us   7.81ms   76.04%
        Req/Sec     3.01k    65.66     3.15k    74.62%
      239800 requests in 10.01s, 26.30MB read
      Non-2xx or 3xx responses: 239800
    Requests/sec:  23962.46
    Transfer/sec:      2.63MB

sirv
    Thread Stats   Avg      Stdev     Max   +/- Stdev
        Latency     2.89ms  256.70us   6.62ms   72.19%
        Req/Sec     4.17k   157.94     4.93k    75.22%
      334715 requests in 10.10s, 44.69MB read
      Non-2xx or 3xx responses: 334715
    Requests/sec:  33130.72
    Transfer/sec:      4.42MB

License

MIT © Luke Edwards

主要指標

概覽
名稱與所有者lukeed/sirv
主編程語言JavaScript
編程語言JavaScript (語言數: 4)
平台
許可證MIT License
所有者活动
創建於2018-04-14 19:45:21
推送於2025-02-17 17:54:00
最后一次提交
發布數59
最新版本名稱v3.0.1 (發布於 )
第一版名稱v0.1.0 (發布於 2018-05-14 11:15:54)
用户参与
星數1.1k
關注者數9
派生數60
提交數215
已啟用問題?
問題數117
打開的問題數14
拉請求數34
打開的拉請求數8
關閉的拉請求數11
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?