Skip to content

Performance Updates #106

@MarkReedZ

Description

@MarkReedZ

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions