rgrinberg / opium

Sinatra like web toolkit for OCaml
MIT License
757 stars 67 forks source link

Add benchmarks #240

Closed tmattio closed 3 years ago

tmattio commented 3 years ago

This PR adds benchmark scripts and results in a benchmark/ directory.

There's something wrong with the results at the moment (~30s latency...), so I'll investigate what's going on.

EDIT: Rebooted and the results make more sense: ~2.40ms latency on average.

I'd like to reproduce the latency shown in the TechEmpower Framework Benchmarks, that necessitated the pre-forking implementation, but I think this can be part of another PR, this one is good to merge on my side.