summaryrefslogtreecommitdiff
path: root/bench
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2014-06-28 01:18:39 -0400
committerOri Bernstein <ori@eigenstate.org>2014-06-28 01:18:39 -0400
commitea7b5977c03c2e5d67723fa7879518c6694dfd51 (patch)
tree7893354bcdc142b7b72aa5e4f85cbd4502114b12 /bench
parentd1891d86a333b4a87aca19e759c8e4784125bc5c (diff)
downloadmc-ea7b5977c03c2e5d67723fa7879518c6694dfd51.tar.gz
Fix indentation on benchmark code.
Diffstat (limited to 'bench')
-rw-r--r--bench/intsort.myr26
1 files changed, 13 insertions, 13 deletions
diff --git a/bench/intsort.myr b/bench/intsort.myr
index 9fdd8cc..d8c3227 100644
--- a/bench/intsort.myr
+++ b/bench/intsort.myr
@@ -1,18 +1,18 @@
use std
const main = {
- var a
- var i
- var rng
- var t0, t1
+ var a
+ var i
+ var rng
+ var t0, t1
- rng = std.mksrng(123)
- a = std.slalloc(1000000)
- 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)
+ rng = std.mksrng(123)
+ a = std.slalloc(1000000)
+ 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)
}