From 98e8faebbc70a1d83352881f344098058a4e3ca4 Mon Sep 17 00:00:00 2001 From: Jonathan Shook Date: Wed, 4 Mar 2020 17:57:05 -0600 Subject: [PATCH] adjusted stride_rate test for lower power machines --- .../engine/core/script/AsyncScriptIntegrationTests.java | 2 +- nb/src/test/resources/scripts/async/stride_rate.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/nb/src/test/java/io/nosqlbench/engine/core/script/AsyncScriptIntegrationTests.java b/nb/src/test/java/io/nosqlbench/engine/core/script/AsyncScriptIntegrationTests.java index b37b4875e..7b036b2ef 100644 --- a/nb/src/test/java/io/nosqlbench/engine/core/script/AsyncScriptIntegrationTests.java +++ b/nb/src/test/java/io/nosqlbench/engine/core/script/AsyncScriptIntegrationTests.java @@ -110,7 +110,7 @@ public class AsyncScriptIntegrationTests { String digits = m.group(1); assertThat(digits).isNotEmpty(); double rate = Double.valueOf(digits); - assertThat(rate).isCloseTo(5000.0D, Offset.offset(500D)); + assertThat(rate).isCloseTo(2500, Offset.offset(500D)); } @Test diff --git a/nb/src/test/resources/scripts/async/stride_rate.js b/nb/src/test/resources/scripts/async/stride_rate.js index 647312cc1..2fb2084e1 100644 --- a/nb/src/test/resources/scripts/async/stride_rate.js +++ b/nb/src/test/resources/scripts/async/stride_rate.js @@ -18,10 +18,10 @@ stride_rate = { "alias" : "stride_rate", "type" : "diag", - "cycles" : "0..500000", + "cycles" : "0..12500", "stride" : "1", "threads" : "5", - "striderate" : "5000", + "striderate" : "2500", "interval" : "1000", "async" : 1000 };