waflab-hyperscan-test
This repo is used for benchmarking the performance of HyperScan against the ModSecurity Core Rule Set (v3.2/master)
Getting Started
Requirement
Docker
Build
docker build . -t hyperscan-test
Run
# enter docker container as interactive mode
docker run --rm -it hyperscan-test /bin/bash
cd /src
go build -o bench
./bench
The output columns are:
- Rule ID
- Regex
- Time for "Tough String"
- Time for Random String
- Current Progress
Usually we can use "4. Time for Random String" as the benchmarking time.