ref: bff5417fece9ae857ba09de40f1a0823bead52fc
parent: 2b28c30518e4aeb4bfc5592773662b89c58e8663
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Sep 4 06:55:34 EDT 2017
Do 1000 allocs at once. Let's not benchmark call overhead.
--- a/bench/copious-allocs.myr
+++ b/bench/copious-allocs.myr
@@ -16,8 +16,11 @@
const alloc_one = {ctx
var a : int#
- a = std.alloc()
- std.free(a)
+
+ for var i = 0; i < 1000; i++
+ a = std.alloc()
+ std.free(a)
+ ;;
}
const alloc_fwdfwd = {ctx