From: Mark Wooding Date: Sat, 10 Nov 2018 14:03:21 +0000 (+0000) Subject: progs/perftest.c: Report cycle counts per operation where possible. X-Git-Tag: 2.5.0~24 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/catacomb/commitdiff_plain/8ae2bc5cdb500e8b6a0f4d9a7d4aea73d00d3dd6?ds=sidebyside;hp=8ae2bc5cdb500e8b6a0f4d9a7d4aea73d00d3dd6 progs/perftest.c: Report cycle counts per operation where possible. This is a much more useful figure to work with. Use `rdtsc' on x86, falling back to `perf_event_open' on Linux where available. On other platforms, you don't get cycle counts: sorry. ---