Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Performance Updates #106

Open
3 tasks done
MarkReedZ opened this issue May 21, 2024 · 0 comments
Open
3 tasks done

Performance Updates #106

MarkReedZ opened this issue May 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@MarkReedZ
Copy link
Contributor

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?

  • 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?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct
@MarkReedZ MarkReedZ added the enhancement New feature or request label May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant