-
Notifications
You must be signed in to change notification settings - Fork 1k
scala.testing.Benchmark
is deprecated and should no longer be mentioned
#752
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
Comments
+ ru/overviews/parallel-collections/performance.md |
@SethTisue Is it just simple remove anything related to |
I think that whole "Microbenchmarking example" section could be cut way back, with the specifics in the second half simply removed. In its place, you could link to https://github.com/scala/scala/blob/2.12.x/test/benchmarks/README.md as an example of proper benchmarking code. |
I would try to send the PR, let you see does it works as you expect. By the way, in my opinion, the second half of How big should a collection be to parallel? should be remove or rewrite too. |
yeah, I agree that could be condensed substantially. |
Hi @SethTisue I have some ideas about How big should a collection be to go parallel?. I change the code snippet with JMH instead of
BTW, I have similar CPU which is E3 quad-core processor. |
yes, that sounds like a good change! |
@SethTisue I did some benchmarks locally. There is the source code that I did the benchmark. Environment:
Result:
Do you have any suggestion with this benchmark? Mybe I could change to different size or add bigger size of collection for the benchamrk? Thanks! :) |
@jiminhsieh this isn't an area I've worked in myself, so I can't give good detailed feedback. perhaps @Ichoran or @axel22 have thoughts on it. doing a deep dive on parallel collections performance is outside the scope of this ticket, anyway — I don't mean to discourage you from going deeper on it if it interests you, but in the meantime it would be nice to just get a basic "get rid of scala.testing.Benchmark" fix in |
In most cases, parallel collections performance is substantially behind
what you can get with Java 8 Streams, or even with manual approaches with
Future, so I am not sure it's worth spending much time on it.
…On Tue, Sep 12, 2017 at 1:43 PM, Seth Tisue ***@***.***> wrote:
@jiminhsieh <https://github.com/jiminhsieh> this isn't an area I've
worked in myself, so I can't give good detailed feedback. perhaps @Ichoran
<https://github.com/ichoran> or @axel22 <https://github.com/axel22> have
thoughts on it. doing a deep dive on parallel collections performance is
outside the scope of this ticket, anyway — I don't mean to discourage you
from going deeper on it if it interests you, but in the meantime it would
be nice to just get a basic "get rid of scala.testing.Benchmark" fix in
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#752 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACMTFHHzo3ZKRsrbV4wTTdUs07dkUth6ks5shuz2gaJpZM4MtrJv>
.
|
@jiminhsieh Parallel collections are not specialized for primitive types, so you should not expect to get too much performance from |
@Ichoran @axel22 Thanks for all of your indications! I would try to work on what you mentioned in my own experiments. |
@jvican This ticket didn't finish yet.
But those are not finish:
I guess it would be better to reopen. And maybe we could ask for help on twitter to finish the rest? |
we don't have an appropriate Twitter account for this (it's too specific for https://twitter.com/scala_lang, I think), but you could certainly ask on Gitter and/or Discourse |
I'm not sure whether it makes sense to leave the issue open or not. The sad fact is that all of the translations often get out of date w/r/t to the English versions, it's a general problem. |
it appears in
The text was updated successfully, but these errors were encountered: