ADTast-experimental
Last change
on this file since 835d6e8 was
a5d1fe7,
checked in by caparsons <caparson@…>, 3 years ago
|
added mutexStmt benchmarks
|
-
Property mode set to
100644
|
File size:
326 bytes
|
Rev | Line | |
---|
[65502d8] | 1 | #include <locks.hfa> |
---|
| 2 | #include <mutex_stmt.hfa> |
---|
| 3 | #include <stdio.h> |
---|
| 4 | |
---|
| 5 | #include "bench.h" |
---|
| 6 | |
---|
[a5d1fe7] | 7 | test_spinlock l1; |
---|
[65502d8] | 8 | |
---|
| 9 | int main( int argc, char * argv[] ) { |
---|
| 10 | BENCH_START() |
---|
| 11 | BENCH( |
---|
| 12 | for ( times ) { |
---|
| 13 | lock( l1 ); |
---|
| 14 | unlock( l1 ); |
---|
| 15 | }, |
---|
| 16 | result |
---|
| 17 | ) |
---|
| 18 | printf( "%g\n", result ); |
---|
| 19 | } |
---|
| 20 | |
---|
| 21 | // Local Variables: // |
---|
| 22 | // tab-width: 4 // |
---|
| 23 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.