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

Add threading support. #4

Merged
merged 5 commits into from
Oct 2, 2024
Merged

Add threading support. #4

merged 5 commits into from
Oct 2, 2024

Conversation

mohammedgqudah
Copy link
Owner

@mohammedgqudah mohammedgqudah commented Oct 2, 2024

Add support for a threaded server using a thread pool.

Benchmarks using oha -n 2000 -c 50:

  • single threaded: Requests/sec: 25957.2050
cargo run
  • multi-threaded: Requests/sec: 71342.5501
cargo run -- --threaded -c50

@mohammedgqudah mohammedgqudah self-assigned this Oct 2, 2024
@mohammedgqudah mohammedgqudah merged commit 37b261f into main Oct 2, 2024
2 checks passed
@mohammedgqudah mohammedgqudah deleted the threaded-server branch October 2, 2024 17:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant