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

[nginx] performance tuning nginx config #543

Merged
merged 4 commits into from
Jan 16, 2018
Merged

[nginx] performance tuning nginx config #543

merged 4 commits into from
Jan 16, 2018

Conversation

mikz
Copy link
Contributor

@mikz mikz commented Jan 8, 2018

  • enable PCRE JIT
  • decrease timer resolution

Before

Running 5m test @ http://localhost:8080/?user_key=foo
  10 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    35.62ms   43.91ms   1.17s    96.23%
    Req/Sec   330.45    119.79     1.43k    60.45%
  978844 requests in 5.00m, 350.02MB read
Requests/sec:   3262.07
Transfer/sec:      1.17MB

After

Running 5m test @ http://localhost:8080/?user_key=foo
  10 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    30.21ms   28.69ms   1.22s    96.09%
    Req/Sec   360.57    111.95     0.94k    60.84%
  1071946 requests in 5.00m, 383.31MB read
Requests/sec:   3571.97
Transfer/sec:      1.28MB

Looks like 10% increase.

* enable PCRE JIT
* decrease timer resolution
@davidor
Copy link
Contributor

davidor commented Jan 9, 2018

It would be interesting to measure the performance improvement.
The benchmark task says 1.8krps vs 4.8krps. I don't think it can be trusted :)

mikz and others added 2 commits January 10, 2018 14:14
echo_sleep 0; would take at least timer_resolution interval
so always blocking 100ms or whatever the interval value is
@mikz mikz mentioned this pull request Jan 11, 2018
4 tasks
Copy link
Contributor

@davidor davidor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍
Remember to solve the changelog conflicts before merging.

@mikz mikz merged commit ff69208 into master Jan 16, 2018
@mikz mikz deleted the nginx-performance branch January 16, 2018 10:10
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.

2 participants