lua:bitmaul:httpbenchmark
BITMAUL HTTP dissector benchmark
We were just looking at numbers from the NOM HTTP Parser benchmark and thought it would be a good idea to put together a similar one for a BITMAUL based parser. I had a hunch that LuaJIT would perform quite competitively
The result is the BITMAUL HTTP Parser Benchmark.
The results : 5.4 Gbps parsing speed on an old Core i3
What was Measured
We did the following
- Read the test HTTP header from a text file (header.txt)
- Save that header in a string S
- Construct a SweepBuf over the string
- Parse the request line into verb, uri, version
- Parse every single field into a LUA table with { field-name , field-value }
- Go to 3 , repeat 10Million times
The sample code and more details are available on - BITMAUL HTTP Parser Benchmark.
lua/bitmaul/httpbenchmark.txt · Last modified: 2018/06/14 22:55 by veera