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

Improve performance using thread #51

Merged
merged 5 commits into from
Mar 29, 2016
Merged

Conversation

masutaka
Copy link
Owner

Before

19.019 sec in the case of single thread

$ time bundle exec ruby bin/github-nippou -s 20160327
(17 items)
bundle exec ruby bin/github-nippou -s 20160327  1.52s user 0.26s system 9% cpu 19.019 total

After

7.006 sec in the case of 5 threads (default)

$ time bundle exec ruby bin/github-nippou -s 20160327
(17 items)
bundle exec ruby bin/github-nippou -s 20160327  1.68s user 0.28s system 28% cpu 7.006 total

5.525 sec in the case of 10 threads

$ $ time GITHUB_NIPPOU_THREAD_NUM=10 bundle exec ruby bin/github-nippou -s 20160327
(17 items)
GITHUB_NIPPOU_THREAD_NUM=10 bundle exec ruby bin/github-nippou -s 20160327  1.55s user 0.27s system 32% cpu 5.525 total

@masutaka masutaka force-pushed the improve-performance-using-thread branch from 1d0cc20 to 3bb49d8 Compare March 29, 2016 15:43
@masutaka masutaka force-pushed the improve-performance-using-thread branch from 3bb49d8 to 939ebc0 Compare March 29, 2016 15:54
@masutaka masutaka changed the title [WIP] Improve performance using thread Improve performance using thread Mar 29, 2016
@masutaka masutaka merged commit 367beab into master Mar 29, 2016
@masutaka masutaka deleted the improve-performance-using-thread branch March 29, 2016 16:06
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

1 participant