app/test: add hash scalability test using HTM lock elision
authorRoman Dementiev <roman.dementiev@intel.com>
Fri, 19 Jun 2015 11:08:23 +0000 (13:08 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 19 Jun 2015 14:34:32 +0000 (16:34 +0200)
commit960e8a22fc6d9373e37dd1454131e91f082bb8bc
tree5ac2f0f1ba3e8b40ea1cfdadb0ed4f772532f805
parent63af6fcfe1fd9b53a4ea045232bbd3913afaca3a
app/test: add hash scalability test using HTM lock elision

This patch adds a new auto-test for testing the scaling
of concurrent inserts into rte_hash when protected by
the normal spinlock vs. the spinlock with HTM lock
elision. The test also benchmarks single-threaded
access without any locks.

Signed-off-by: Roman Dementiev <roman.dementiev@intel.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
app/test/Makefile
app/test/test_hash_scaling.c [new file with mode: 0644]