lua:bitmaul:httpbenchmark

This is an old revision of the document!


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.6 Gbps parsing speed on an old Core i3

What was Measured

We did the following

  1. Read the test HTTP header from a text file (header.txt)
  2. Save that header in a string S
  3. Construct a SweepBuf over the string
  4. Parse the request line into verb, uri, version
  5. Parse every single field into a LUA table with { field-name , field-value }
  6. Go to 3 , repeat 10Million times
lua/bitmaul/httpbenchmark.1528997060.txt.gz · Last modified: 2018/06/14 22:54 by veera