-
Notifications
You must be signed in to change notification settings - Fork 5
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
Review how HTTP parsing is affecting performance #18
Comments
Amp simple socket server (w/o HTTP parsing):
comparing with Amp with full HTTP proccesing:
and Swoole (with adjusted settings for single CPU):
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is an assumption that HTTP parsing in Amphp might affect overall server performance.
The assumption is based on experimental results. The variant of pure TCP Amphp server without HTTP parsing performs closer to Swoole and faster than Nodejs.
HTTP parsing implemented with PHP PECL Regexp can be replaced with bind C or Rust library via FFI or Wasmer extension.
Possible fast parsing libraries are:
Libraries benchmark: https://github.com/rust-bakery/parser_benchmarks/blob/master/http/README.md
The text was updated successfully, but these errors were encountered: