You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@jmeter.apache.org by bu...@apache.org on 2014/10/26 15:01:48 UTC
[Bug 57145] New: RandomController : Use ThreadLocalRandom instead of
Random for better performances
https://issues.apache.org/bugzilla/show_bug.cgi?id=57145
Bug ID: 57145
Summary: RandomController : Use ThreadLocalRandom instead of
Random for better performances
Product: JMeter
Version: 2.11
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Main
Assignee: issues@jmeter.apache.org
Reporter: p.mouawad@ubik-ingenierie.com
As per javadoc:
http://docs.oracle.com/javase/7/docs/api/java/util/Random.html
"Instances of java.util.Random are threadsafe. However, the concurrent use of
the same java.util.Random instance across threads may encounter contention and
consequent poor performance. Consider instead using ThreadLocalRandom in
multithreaded designs."
As we need to support Java6, I will be using Doug Lea class which is under
Commons Creative License 1.0 and compatible with Apache license:
http://www.apache.org/legal/resolved.html#category-b
Can Works Placed In The Public Domain Be Included In Apache Products?
Works in the public domain (or covered by a license treated similarly) may be
included within Apache products. Attribution is required (in a similar fashion
to permissive licenses).
A work should be treated as being in the public domain when one of the
following applies:
the work is covered by
the Creative Commons Public Domain Mark, or
a suitable dedication (to the public domain) by the authors; or => WE
ARE IN THIS CASE.
clear evidence exists that US copyright for the work
has expired, or
cannot be claimed.
--
You are receiving this mail because:
You are the assignee for the bug.
[Bug 57145] RandomController : Use ThreadLocalRandom instead of
Random for better performances
Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=57145
Philippe Mouawad <p....@ubik-ingenierie.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
CC| |p.mouawad@ubik-ingenierie.c
| |om
Resolution|--- |FIXED
--- Comment #1 from Philippe Mouawad <p....@ubik-ingenierie.com> ---
Date: Sun Oct 26 14:26:10 2014
New Revision: 1634335
URL: http://svn.apache.org/r1634335
Log:
Bug 57145 - RandomController : Use ThreadLocalRandom instead of Random for
better performances
Bugzilla Id: 57145
Added:
jmeter/trunk/licenses/bin/ThreadLocalRandom.txt (with props)
jmeter/trunk/src/core/org/apache/jmeter/util/ThreadLocalRandom.java (with
props)
Modified:
jmeter/trunk/src/components/org/apache/jmeter/control/RandomController.java
jmeter/trunk/xdocs/changes.xml
--
You are receiving this mail because:
You are the assignee for the bug.