ocaml-multicore / eio

Effects-based direct-style IO for multicore OCaml
Other
540 stars 66 forks source link

Add File.stat benchmark #616

Closed talex5 closed 11 months ago

talex5 commented 11 months ago

This tests the performance of checking the kind of a single open file in a loop (there is a more complex benchmark in #599 that tests Path.stat).

I get (stat/s - higher is better):

posix   2,078,950   2,245,319
linux   2,332,099   2,528,603

Both implementations are blocking and currently just call Unix.LargeFile.fstat, so unclear why the uring backend is faster!

Part of #450.