Skip to content

Commit

Permalink
Update benchmark.
Browse files Browse the repository at this point in the history
  • Loading branch information
yugr committed Jan 26, 2025
1 parent 9b12cb7 commit 1839230
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions tests/benchmark/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,16 @@
* found in the LICENSE.txt file.
*/

#include "interposed.h"

#define NITER 1000000000L

int main() {
for (long i = 0; i < NITER; ++i)
#ifdef BASELINE
asm volatile("");
__attribute((noipa)) void foo() {}
#else
foo();
#include "interposed.h"
#endif

int main() {
for (long i = 0; i < NITER; ++i)
foo();
return 0;
}

0 comments on commit 1839230

Please sign in to comment.