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

[Japronto] Support multicore #366

Merged
merged 3 commits into from
Sep 12, 2018
Merged

Conversation

agalera
Copy link

@agalera agalera commented Sep 11, 2018

No description provided.

@@ -18,4 +20,4 @@ def get_user(request):
app.router.add_route('/user', create_user, 'POST')
app.router.add_route('/user/{id}', get_user, 'GET')

app.run(host='0.0.0.0', port=3000)
app.run(host='0.0.0.0', worker_num=int(sys.argv[2]), port=3000)
Copy link
Collaborator

Choose a reason for hiding this comment

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

sys.argv[2] does not exists

Copy link
Author

Choose a reason for hiding this comment

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

fixed, sorry, I made the change directly in the GitHub interface ... :P

@waghanza
Copy link
Collaborator

@agalera Thanks for your contribution, I've fixed the above mistake. You can give me right write if you want me to fix ❤️

@waghanza
Copy link
Collaborator

Awesome, comparing current and master give me those results

Average 50th percentile 90th percentile 99th percentile 99.9th percentile Standard deviation Requests / s Throughput
current 5.20 ms 4.45 ms 10.46 ms 18.00 ms 42.79 ms 4051.00 186605.00 223.36 MB
master 19.74 ms 19.20 ms 21.99 ms 28.78 ms 254.79 ms 5467.67 144085.67 163.64 MB

🎉

PS : Those tests are done on a 8 core CPU

@waghanza waghanza merged commit c115af9 into the-benchmarker:master Sep 12, 2018
waghanza added a commit that referenced this pull request Sep 12, 2018
* use io (stderr chanel) instead of file on benchmark (#365)

* [Japronto] Support multicore (#366)

* support multicore

* Support multicore

* fix typo

* update koa to 2.5.3 (#367)

* setup dependencies.io

* specify python version on dependencies.yml

* specify python version under x.y.z format for deps
waghanza added a commit to qti3e/web-frameworks that referenced this pull request Oct 5, 2018
* use io (stderr chanel) instead of file on benchmark (the-benchmarker#365)

* [Japronto] Support multicore (the-benchmarker#366)

* support multicore

* Support multicore

* fix typo

* update koa to 2.5.3 (the-benchmarker#367)

* setup dependencies.io

* specify python version on dependencies.yml

* specify python version under x.y.z format for deps
@agalera agalera deleted the patch-1 branch October 7, 2018 23:29
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.

None yet

2 participants