#include <cstdio>
#include <mutex>
#include "bench.h"
#include "cppLock.hpp"

cpp_test_spinlock l1, l2, l3, l4, l5, l6, l7, l8;

int main( int argc, char * argv[] ) {
	BENCH_START()
	BENCH(
		for ( size_t i = 0; i < times; i++ ) {
			std::scoped_lock lock(l1, l2, l3, l4, l5, l6, l7, l8);
		},
		result
	)
	printf( "%g\n", result );
}

// Local Variables: //
// tab-width: 4 //
// End: //
