| 1 | #include "test/jemalloc_test.h" |
| 2 | |
| 3 | static inline void |
| 4 | time_func(timedelta_t *timer, uint64_t nwarmup, uint64_t niter, |
| 5 | void (*func)(void)) { |
| 6 | uint64_t i; |
| 7 | |
| 8 | for (i = 0; i < nwarmup; i++) { |
| 9 | func(); |
| 10 | } |
| 11 | timer_start(timer); |
| 12 | for (i = 0; i < niter; i++) { |
| 13 | func(); |
| 14 | } |
| 15 | timer_stop(timer); |
| 16 | } |
| 17 | |
| 18 | void |
| 19 | compare_funcs(uint64_t nwarmup, uint64_t niter, const char *name_a, |
no test coverage detected