diff --git a/tests/vault/gear/test-chain-load-test.cpp b/tests/vault/gear/test-chain-load-test.cpp index 1192822e2..b0bcfb510 100644 --- a/tests/vault/gear/test-chain-load-test.cpp +++ b/tests/vault/gear/test-chain-load-test.cpp @@ -872,7 +872,6 @@ SHOW_EXPR(testLoad.getHash()) { ComputationalLoad cpuLoad; CHECK (cpuLoad.timeBase == 100us); - cpuLoad.useAllocation = true; double micros = cpuLoad.invoke(); SHOW_EXPR(micros) @@ -890,6 +889,59 @@ SHOW_EXPR(micros) SHOW_EXPR(micros) CHECK (micros < 110); CHECK (micros > 90); + + cpuLoad.useAllocation = true; +SHOW_EXPR(cpuLoad.useAllocation) + micros = cpuLoad.invoke(); +SHOW_EXPR(micros) + CHECK (micros < 133); + CHECK (micros > 80); + + micros = cpuLoad.benchmark(); +SHOW_EXPR(micros) + CHECK (micros < 110); + CHECK (micros > 90); + + cpuLoad.timeBase = 1ms; + cpuLoad.sizeBase *= 100; +SHOW_EXPR(cpuLoad.sizeBase) + + cpuLoad.useAllocation = false; + micros = cpuLoad.benchmark(); +SHOW_EXPR(micros) + cpuLoad.useAllocation = true; + micros = cpuLoad.benchmark(); +SHOW_EXPR(micros) + + cpuLoad.calibrate(); + + cpuLoad.useAllocation = false; + micros = cpuLoad.benchmark(); +SHOW_EXPR(micros) + cpuLoad.useAllocation = true; + micros = cpuLoad.benchmark(); +SHOW_EXPR(micros) +SHOW_EXPR(5) + cpuLoad.useAllocation = false; + micros = cpuLoad.invoke(5); +SHOW_EXPR(micros) + cpuLoad.useAllocation = true; + micros = cpuLoad.invoke(5); +SHOW_EXPR(micros) +SHOW_EXPR(10) + cpuLoad.useAllocation = false; + micros = cpuLoad.invoke(10); +SHOW_EXPR(micros) + cpuLoad.useAllocation = true; + micros = cpuLoad.invoke(10); +SHOW_EXPR(micros) +SHOW_EXPR(100) + cpuLoad.useAllocation = false; + micros = cpuLoad.invoke(100); +SHOW_EXPR(micros) + cpuLoad.useAllocation = true; + micros = cpuLoad.invoke(100); +SHOW_EXPR(micros) } diff --git a/tests/vault/gear/test-chain-load.hpp b/tests/vault/gear/test-chain-load.hpp index 679786451..43f113b43 100644 --- a/tests/vault/gear/test-chain-load.hpp +++ b/tests/vault/gear/test-chain-load.hpp @@ -1117,11 +1117,10 @@ namespace test { calibrate() { cout<<">CAL: speed="<"< - - - + + + @@ -99598,7 +99598,7 @@ Date:   Thu Apr 20 18:53:17 2023 +0200
- + @@ -99606,10 +99606,14 @@ Date:   Thu Apr 20 18:53:17 2023 +0200
- + + + + + @@ -99618,20 +99622,19 @@ Date:   Thu Apr 20 18:53:17 2023 +0200
- - + + - - + + - + - - + @@ -99654,6 +99657,31 @@ Date:   Thu Apr 20 18:53:17 2023 +0200
+ + + + + + + + + + + +

+ bei.. +

+

+ sizeBase = 10000 ⟼ +5% +

+

+ sizeBase = 100000 ⟼ +10-20% +

+ + +
+ +
@@ -99666,10 +99694,29 @@ Date:   Thu Apr 20 18:53:17 2023 +0200
- + + + + + + +

+ repetitions/µs +

+ + +
+ + + + +
+ + +
@@ -100943,6 +100990,34 @@ Date:   Thu Apr 20 18:53:17 2023 +0200
+ + + + + + + + + + + + + + + +

+ und zwar der Umstand, daß die Nodes innerhalb eines Levels stets voneinander unabhängig sind; deshalb sind zumindest diese Nodes komplett parallelisierbar +

+ + +
+ +
+ + + +
+