ref: 87e41be1bc9bffd35472a26076cbb0470f4620ec
parent: 3bbb1de460c9fe264d7ce63b421dd6dd351e2a45
author: Ori Bernstein <ori@eigenstate.org>
date: Sun Sep 3 23:16:27 EDT 2017
Minimum 10 samples, target 100ms running.
--- a/lib/testr/testr.myr
+++ b/lib/testr/testr.myr
@@ -99,7 +99,8 @@
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++