You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2019/06/02 20:30:12 UTC
[commons-rng] branch master updated: Do not require Int/LongSizes
for createInteger/Long seed.
This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-rng.git
The following commit(s) were added to refs/heads/master by this push:
new 584557f Do not require Int/LongSizes for createInteger/Long seed.
584557f is described below
commit 584557f9b4ac5197f4d29fe6eb39a37ab94078ac
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Sun Jun 2 21:30:05 2019 +0100
Do not require Int/LongSizes for createInteger/Long seed.
---
.../apache/commons/rng/examples/jmh/ConstructionPerformance.java | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/ConstructionPerformance.java b/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/ConstructionPerformance.java
index 61678a2..03b2973 100644
--- a/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/ConstructionPerformance.java
+++ b/commons-rng-examples/examples-jmh/src/main/java/org/apache/commons/rng/examples/jmh/ConstructionPerformance.java
@@ -912,11 +912,10 @@ public class ConstructionPerformance {
}
/**
- * @param sizes Size of {@code int[]} seed.
* @param bh Data sink.
*/
@Benchmark
- public void createIntegerSeed(IntSizes sizes, Blackhole bh) {
+ public void createIntegerSeed(Blackhole bh) {
for (int i = 0; i < SEEDS; i++) {
// This has to be boxed to an object
bh.consume(Integer.valueOf(SeedFactory.createInt()));
@@ -924,11 +923,10 @@ public class ConstructionPerformance {
}
/**
- * @param sizes Size of {@code long[]} seed.
* @param bh Data sink.
*/
@Benchmark
- public void createLongSeed(LongSizes sizes, Blackhole bh) {
+ public void createLongSeed(Blackhole bh) {
for (int i = 0; i < SEEDS; i++) {
// This has to be boxed to an object
bh.consume(Long.valueOf(SeedFactory.createLong()));