ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
529 stars 67 forks source link

Make benchmarks start faster #673

Closed talex5 closed 5 months ago

talex5 commented 5 months ago

The Buf_read benchmark created a large string at start-up using String.init, which adds about 170ms to the start-up time of all benchmarks. Now, only create the string when running that benchmark, and use the more efficient String.make.

Before: before

After: after