ucall icon indicating copy to clipboard operation
ucall copied to clipboard

Performance Updates

Open MarkReedZ opened this issue 9 months ago • 0 comments

Describe what you are looking for

I'm looking into several performance issues.

For reference

My uring net library with a dummy response
$ wrk -t1 -c16 -- 410,000
$ wrk -t1 -c1  -- 400,000

mrhttp dummy response
$ wrk -t1 -c16 -- 225,000
$ wrk -t1 -c1  --  60,000

mrhttp validate_user
$ wrk -t1 -c16 -- 110,000
$ wrk -t1 -c1  --  35,000
  1. If we pull in my networking library we can get a 2.5x improvement single threaded with a dummy response.
ucall dummy response
$ wrk -t1 -c16 -- 166,970
$ wrk -t1 -c1  --  76,000
  1. For some reason the single connection benchmark falls apart once we call the simdjson parser
ucall dummy response + parse (no find_callback)
$ wrk -t1 -c16 -- 160,000
$ wrk -t1 -c1  --     704
  1. The debug build is ~20x faster. Mrhttp+mrjson is 4x faster so we should be able to beat that.
ucall (release build)
$ wrk -t1 -c16 --   1,687
$ wrk -t1 -c1  --     684

ucall (debug build)
$ wrk -t1 -c16 --  28,000
$ wrk -t1 -c1  --     176

Can you contribute to the implementation?

  • [X] I can contribute

Is your feature request specific to a certain interface?

It applies to everything

Contact Details

No response

Is there an existing issue for this?

  • [X] I have searched the existing issues

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

MarkReedZ avatar May 21 '24 18:05 MarkReedZ