summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2016-10-26 01:13:12 -0700
committerOri Bernstein <ori@eigenstate.org>2016-10-26 01:13:12 -0700
commita23019f08b895626d073258d5d20fa3479d73731 (patch)
tree681fc41fe4d0efabea78a442ba4eba614b7bbde2 /bench
parent52ec5d6f05690494ee1a43452a0305ea697f0165 (diff)
downloadmc-a23019f08b895626d073258d5d20fa3479d73731.tar.gz
Fix benchmark programs.
Diffstat (limited to 'bench')
-rw-r--r--bench/intsort.myr7
1 files changed, 2 insertions, 5 deletions
diff --git a/bench/intsort.myr b/bench/intsort.myr
index 1629985..cb7478c 100644
--- a/bench/intsort.myr
+++ b/bench/intsort.myr
@@ -1,14 +1,11 @@
use std
const main = {
- var a
- var i
- var rng
+ var a, i
- rng = std.mksrng(123)
a = std.slalloc(500_000)
for i = 0; i < a.len; i++
- a[i] = std.rand32(rng)
+ a[i] = std.randnum()
;;
std.sort(a, std.numcmp)
}