shithub: mc

Download patch

ref: ea7b5977c03c2e5d67723fa7879518c6694dfd51
parent: d1891d86a333b4a87aca19e759c8e4784125bc5c
author: Ori Bernstein <[email protected]>
date: Fri Jun 27 21:18:39 EDT 2014

Fix indentation on benchmark code.

--- 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)
 }