ocaml-multicore / kcas

Software Transactional Memory for OCaml
https://ocaml-multicore.github.io/kcas/
ISC License
107 stars 10 forks source link

Change the `Op` bench to more closely match the `Xt` bench and add `Loc` benchmark #159

Closed polytypic closed 9 months ago

polytypic commented 9 months ago

This PR changes the Op benchmark to more closely match the Xt benchmark. The Op benchmark has been quite useful as it mostly measures the cost of the internal k-CAS algorithm. However, the way the benchmark prebuilds the CAS list makes it unrealistically fast when compared to the Xt benchmark.

This PR also adds a Loc benchmark that currently tests the performance of Loc.incr on a single domain.