#include #include #include #include "bench.h" test_spinlock l1, l2; int main( int argc, char * argv[] ) { BENCH_START() BENCH( for ( times ) { lock( l1 ); lock( l2 ); unlock( l2 ); unlock( l1 ); }, result ) printf( "%g\n", result ); } // Local Variables: // // tab-width: 4 // // End: //