app/regex: measure performance with precise clock
authorOphir Munk <ophirmu@nvidia.com>
Sun, 10 Jan 2021 11:10:23 +0000 (11:10 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 12 Jan 2021 23:04:27 +0000 (00:04 +0100)
commite5e518edd622d63d8aaa1239a4d2cf8bdb438fb9
tree63e3d67977dde9b99c1f3e3f9d5c8d4820bddb52
parent6e3c6bd6abede4e253d4abac8529929dda728145
app/regex: measure performance with precise clock

Performance measurement (elapsed time and Gbps) are based on Linux
clock() API. The resolution is improved by replacing the clock() API
with rte_rdtsc_precise() API.

Signed-off-by: Ophir Munk <ophirmu@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
app/test-regex/main.c