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

disable tiered compilation for benchmark runs #75

Merged
merged 1 commit into from
Feb 1, 2015

Conversation

tcrayford
Copy link
Contributor

by default, leiningen sets the JVM up for startup time, via tiered
compilation (see https://github.com/technomancy/leiningen/wiki/Faster).

This doesn't play so well with benchmarks, so when running benchmarks, you
need to turn off tiered compilation. Also nearly every production
jvm runs with AggressiveOpts, UseFastAccessorMethods, and -server, so
enable them too.

comparison output (note: not too meaningful, given that most folk running
cheshire in production won't be using it on a laptop running os x, but
it gives some idea of the difference):

https://gist.github.com/tcrayford/1744556933d71f120605

@dakrone
Copy link
Owner

dakrone commented Feb 1, 2015

Hmm.. I definitely agree for removing the tiered compilation, but I'm unsure about adding the "-XX:+AggressiveOpts" "-XX:+UseFastAccessorMethods" options, since I don't think everyone will be using these in their production application. Thoughts?

@tcrayford
Copy link
Contributor Author

up to you, I'm happy turning them off for that reasoning (I've never run in production without them, but I'm not most people)

@dakrone
Copy link
Owner

dakrone commented Feb 1, 2015

@tcrayford sure, let's leave them out for this and go with the defaults, then I will happily merge this, so thanks!

@tcrayford
Copy link
Contributor Author

cool. Do you want me to amend so they're never in the history, or leave the commit in with a note about why?

@dakrone
Copy link
Owner

dakrone commented Feb 1, 2015

@tcrayford either way works, whichever is easiest for you :)

by default, leiningen sets the JVM up for startup time, via tiered
compilation (see https://github.com/technomancy/leiningen/wiki/Faster).

This doesn't play well with benchmarks, so when running benchmarks, you
need to turn off tiered compilation.

comparison output (note: not too meaningful, given that most folk running
cheshire in production won't be using it on a laptop running os x, but
it gives some idea of the difference):

https://gist.github.com/tcrayford/1744556933d71f120605
@tcrayford tcrayford force-pushed the use_full_compilation_for_benchmarks branch from 520b1c1 to b253021 Compare February 1, 2015 19:40
@tcrayford
Copy link
Contributor Author

history amended. All yours

dakrone added a commit that referenced this pull request Feb 1, 2015
disable tiered compilation for benchmark runs
@dakrone dakrone merged commit 505cb34 into dakrone:master Feb 1, 2015
@dakrone
Copy link
Owner

dakrone commented Feb 1, 2015

Merged, thanks again!

@tcrayford tcrayford deleted the use_full_compilation_for_benchmarks branch February 1, 2015 20:00
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