Running Hsbench
Hsbench is a performance benchmark tool provided by Hyperscan. You can compare the performance before and after KHSEL is used based on hsbench test results.
- Go to the build directory.
1cd build
- Obtain hsbench rule sets and input data, and decompress them to the build/hsbench-samples directory.
- Run hsbench.
./bin/hsbench -e ./hsbench-samples/pcre/snort_literals -c ./hsbench-samples/corpora/gutenberg.db -N -n1
Test results:

Parameters in the test results:
- Time spent scanning: time taken to scan the target database using the target rule set
- Matches per iteration: number of matches in each iteration using the rule set
- Mean throughput (overall): average throughput (Mbit/s)
- Max throughput (per core): maximum throughput among each CPU core (Mbit/s)
Parent topic: Hyperscan Compilation Guide