====== BITMAUL HTTP dissector benchmark ====== We were just looking at numbers from the [[https://github.com/Geal/parser_benchmarks/tree/master/http|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 [[https://github.com/trisulnsm/bitmaul/tree/master/examples/http|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 - [[https://github.com/trisulnsm/bitmaul/tree/master/examples/http|BITMAUL HTTP Parser Benchmark]].