You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by sebb <se...@gmail.com> on 2013/01/21 13:10:20 UTC

Re: [Bug 54453] New: Performance enhancements : Replace Randomw by ThreadLocalRandom

This would be better as a discussion on the developer list initially.

Once agreement is reached, can create a bugzilla enhancement for
tracking the code updates.

On 21 January 2013 11:21,  <bu...@apache.org> wrote:
> https://issues.apache.org/bugzilla/show_bug.cgi?id=54453
>
>             Bug ID: 54453
>            Summary: Performance enhancements : Replace Randomw by
>                     ThreadLocalRandom
>            Product: JMeter
>            Version: 2.8
>           Hardware: All
>                 OS: All
>             Status: NEW
>           Severity: enhancement
>           Priority: P2
>          Component: Main
>           Assignee: issues@jmeter.apache.org
>           Reporter: p.mouawad@ubik-ingenierie.com
>     Classification: Unclassified
>
> Hello,
> Java 7 introduced ThreadLocalRandom which has much better performances than
> using Random as static instance.
> See:
>
> http://docs.oracle.com/javase/tutorial/essential/concurrency/threadlocalrandom.html
> http://niklasschlimm.blogspot.fr/2012/01/java-7-how-to-write-really-fast-java.html
>
>
> Implementation is here for Java6 but can we use it with Apache License ?:
> https://github.com/codahale/metrics/blob/master/metrics-core/src/main/java/com/yammer/metrics/stats/ThreadLocalRandom.java
>
> Or should we migrate to Java 7 as Java6 will be soon EOL ?
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.