ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sevdoki...@apache.org
Subject incubator-ignite git commit: # GG-10036 Modify SQL benchmarks to use Gaussian distribution instead of uniform.
Date Fri, 03 Apr 2015 11:57:17 GMT
Repository: incubator-ignite
Updated Branches:
  refs/heads/gg-10036 [created] df6a3c233


# GG-10036 Modify SQL benchmarks to use Gaussian distribution instead of uniform.


Project: http://git-wip-us.apache.org/repos/asf/incubator-ignite/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ignite/commit/df6a3c23
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ignite/tree/df6a3c23
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ignite/diff/df6a3c23

Branch: refs/heads/gg-10036
Commit: df6a3c2335d34c5dbdbfebebba120f1901e44496
Parents: 09a3a82
Author: sevdokimov <sevdokimov@gridgain.com>
Authored: Fri Apr 3 14:56:21 2015 +0300
Committer: sevdokimov <sevdokimov@gridgain.com>
Committed: Fri Apr 3 14:56:21 2015 +0300

----------------------------------------------------------------------
 .../org/apache/ignite/yardstick/cache/IgniteSqlQueryBenchmark.java | 2 +-
 .../apache/ignite/yardstick/cache/IgniteSqlQueryJoinBenchmark.java | 2 +-
 .../apache/ignite/yardstick/cache/IgniteSqlQueryPutBenchmark.java  | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/df6a3c23/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteSqlQueryBenchmark.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteSqlQueryBenchmark.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteSqlQueryBenchmark.java
index b49170d..12a36aa 100644
--- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteSqlQueryBenchmark.java
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteSqlQueryBenchmark.java
@@ -54,7 +54,7 @@ public class IgniteSqlQueryBenchmark extends IgniteCacheAbstractBenchmark
{
 
     /** {@inheritDoc} */
     @Override public boolean test(Map<Object, Object> ctx) throws Exception {
-        double salary = ThreadLocalRandom.current().nextDouble() * args.range() * 1000;
+        double salary = ThreadLocalRandom.current().nextGaussian() * args.range() * 1000;
 
         double maxSalary = salary + 1000;
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/df6a3c23/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteSqlQueryJoinBenchmark.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteSqlQueryJoinBenchmark.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteSqlQueryJoinBenchmark.java
index 6d16a2d..7af6f63 100644
--- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteSqlQueryJoinBenchmark.java
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteSqlQueryJoinBenchmark.java
@@ -64,7 +64,7 @@ public class IgniteSqlQueryJoinBenchmark extends IgniteCacheAbstractBenchmark
{
 
     /** {@inheritDoc} */
     @Override public boolean test(Map<Object, Object> ctx) throws Exception {
-        double salary = ThreadLocalRandom.current().nextDouble() * args.range() * 1000;
+        double salary = ThreadLocalRandom.current().nextGaussian() * args.range() * 1000;
 
         double maxSalary = salary + 1000;
 

http://git-wip-us.apache.org/repos/asf/incubator-ignite/blob/df6a3c23/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteSqlQueryPutBenchmark.java
----------------------------------------------------------------------
diff --git a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteSqlQueryPutBenchmark.java
b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteSqlQueryPutBenchmark.java
index 56ec82c..ac71b4e 100644
--- a/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteSqlQueryPutBenchmark.java
+++ b/modules/yardstick/src/main/java/org/apache/ignite/yardstick/cache/IgniteSqlQueryPutBenchmark.java
@@ -40,7 +40,7 @@ public class IgniteSqlQueryPutBenchmark extends IgniteCacheAbstractBenchmark
{
         ThreadLocalRandom rnd = ThreadLocalRandom.current();
 
         if (rnd.nextBoolean()) {
-            double salary = rnd.nextDouble() * args.range() * 1000;
+            double salary = rnd.nextGaussian() * args.range() * 1000;
 
             double maxSalary = salary + 1000;
 


Mime
View raw message