Last change
on this file since dbff8ec was
b4107c8,
checked in by Peter A. Buhr <pabuhr@…>, 5 years ago
|
update existing benchmarks for changes to bench.h, add new benchmarks in new programming languages
|
-
Property mode set to
100644
|
File size:
276 bytes
|
Rev | Line | |
---|
[b4107c8] | 1 | #include <stdio.h> |
---|
| 2 | |
---|
| 3 | #include "bench.h" |
---|
| 4 | |
---|
| 5 | int main( int argc, char * argv[] ) { |
---|
| 6 | BENCH_START() |
---|
| 7 | BENCH( |
---|
| 8 | for (size_t i = 0; i < times; i++) { |
---|
| 9 | asm volatile( "" ::: "memory" ); |
---|
| 10 | }, |
---|
| 11 | result |
---|
| 12 | ) |
---|
| 13 | printf( "%g\n", result ); |
---|
| 14 | } |
---|
| 15 | |
---|
| 16 | // Local Variables: // |
---|
| 17 | // tab-width: 4 // |
---|
| 18 | // End: // |
---|
Note: See
TracBrowser
for help on using the repository browser.