test/stack: check stack performance
authorGage Eads <gage.eads@intel.com>
Wed, 3 Apr 2019 23:20:16 +0000 (18:20 -0500)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 4 Apr 2019 20:06:16 +0000 (22:06 +0200)
commitcfe6fab0295cfa744d3f9034069edfa34ae87aa1
tree963d6003c85b149f8ad445fc4188e295624d9a03
parent5e2e61b99e916bd079314d1ce061009b7b5daf25
test/stack: check stack performance

stack_perf_autotest tests the following with one lcore:
- Cycles to attempt to pop an empty stack
- Cycles to push then pop a single object
- Cycles to push then pop a burst of 32 objects

It also tests the cycles to push then pop a burst of 8 and 32 objects with
the following lcore combinations (if possible):
- Two hyperthreads
- Two physical cores
- Two physical cores on separate NUMA nodes
- All available lcores

Signed-off-by: Gage Eads <gage.eads@intel.com>
Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
app/test/Makefile
app/test/meson.build
app/test/test_stack_perf.c [new file with mode: 0644]