Skip to content

Latest commit

 

History

History
66 lines (43 loc) · 3.05 KB

MION-OPTIONS.md

File metadata and controls

66 lines (43 loc) · 3.05 KB

mion, a mikro kit for Typescript Serverless APIs

Benchmarks for @mionkit/http 🚀

npm npm

Deprecated!

Most of the options here are not available anymore!

mion benchmarks using different settings

There is no one size fits all when optimizing performance, so mion offers few settings to configure according to different app needs.

  • HttpOptions.useCallbacks : using callbacks instead promises when routing a call. defaults to promises.

We show the benchmarks and let you take your own conclusions!!

Benchmark Results

  • Machine: darwin x64 | 8 vCPUs | 16.0GB Mem
  • Node: v18.17.0
  • Run: Tue Aug 15 2023 15:10:29 GMT+0100 (Irish Standard Time)
  • Method: autocannon -c 100 -d 40.02 -p 10 localhost:3000 (two rounds; one to warm-up, one to measure)

Req (R/s)

benchmarks

Throughput (Mb/s)

benchmarks

Latency (ms)

benchmarks

Max Memory (Mb)

benchmarks

Max Cpu (%)

benchmarks

Memory Series (MB)

benchmarks

Version Router Req (R/s) Latency (ms) Output (Mb/s) Max Memory (Mb) Max Cpu (%) Validation Description
http-node 16.18.0 17476.5 56.69 4.20 89 122 theoretical upper limit in performance.
mion3000 0.1.0 15072.0 65.83 4.17 155 143 mion with 3000 routes loaded (should have the most memory usage)
mion 0.1.0 14664.6 67.65 4.06 163 144 using mion http with promises HttpOptions.useCallbacks = false
mion-callbacks 0.1.0 14588.6 68.02 4.03 160 145 using mion http with callbacks HttpOptions.useCallbacks = true