ARM-software / synchronization-benchmarks

Collection of synchronization micro-benchmarks and traces from infrastructure applications
Other
38 stars 36 forks source link

Add in a spin-loop calibration phase to allow for precise ns wait loops #13

Closed geoffreyblake closed 6 years ago

geoffreyblake commented 6 years ago

To enable testing on different machines more efficiently, the lockhammer benchmark needs a calibration phase to enable passing in "ns" as a wait time to the workload on top of simply "iterations" of a wait-loop which is hard to tune to be as representative as possible on all platforms. Additionally, the wait loop should be as close to the same implementation as possible on x86 and Arm, right now x86 is compiled, and Arm is inline assembly.

14