summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-09-04 03:16:27 -0700
committerOri Bernstein <ori@eigenstate.org>2017-09-04 03:16:27 -0700
commit87e41be1bc9bffd35472a26076cbb0470f4620ec (patch)
treefcc184c05d0db174364c7ab72ce305495b0e0240
parent3bbb1de460c9fe264d7ce63b421dd6dd351e2a45 (diff)
downloadmc-87e41be1bc9bffd35472a26076cbb0470f4620ec.tar.gz
Minimum 10 samples, target 100ms running.
-rw-r--r--lib/testr/testr.myr3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/testr/testr.myr b/lib/testr/testr.myr
index 959451e..19cdad6 100644
--- a/lib/testr/testr.myr
+++ b/lib/testr/testr.myr
@@ -99,7 +99,8 @@ const benchspec = {ts
if dt == 0.0
nsamp = 1000_000
else
- nsamp = (1000_000.0/dt : std.time)
+ nsamp = (100_000.0/dt : int64)
+ nsamp = std.max(10, nsamp)
;;
for var i = 0; i < nsamp; i++