summaryrefslogtreecommitdiff
path: root/bench/intsort.myr
diff options
context:
space:
mode:
Diffstat (limited to 'bench/intsort.myr')
-rw-r--r--bench/intsort.myr6
1 files changed, 1 insertions, 5 deletions
diff --git a/bench/intsort.myr b/bench/intsort.myr
index d8c3227..008e6ba 100644
--- a/bench/intsort.myr
+++ b/bench/intsort.myr
@@ -4,15 +4,11 @@ const main = {
var a
var i
var rng
- var t0, t1
rng = std.mksrng(123)
- a = std.slalloc(1000000)
+ a = std.slalloc(100_000)
for i = 0; i < a.len; i++
a[i] = std.rand32(rng)
;;
- t0 = std.now()
std.sort(a, std.numcmp)
- t1 = std.now()
- std.put("time = %l\n", t1 - t0)
}