summaryrefslogtreecommitdiff
path: root/bench/hashit.myr
diff options
context:
space:
mode:
Diffstat (limited to 'bench/hashit.myr')
-rw-r--r--bench/hashit.myr7
1 files changed, 7 insertions, 0 deletions
diff --git a/bench/hashit.myr b/bench/hashit.myr
index 31a0cbd..e06343e 100644
--- a/bench/hashit.myr
+++ b/bench/hashit.myr
@@ -33,6 +33,13 @@ const main = {
;;
std.htfree(h)
}],
+ [.name="htputmany", .fn={ctx
+ var h = std.mkht(std.inthash, std.inteq)
+ for var i = 0; i < 1000; i++
+ std.htput(h, i, 123)
+ ;;
+ std.htfree(h)
+ }],
][:])
}