summaryrefslogtreecommitdiff
path: root/bench/hashit.myr
diff options
context:
space:
mode:
Diffstat (limited to 'bench/hashit.myr')
-rw-r--r--bench/hashit.myr9
1 files changed, 8 insertions, 1 deletions
diff --git a/bench/hashit.myr b/bench/hashit.myr
index fbf4011..31a0cbd 100644
--- a/bench/hashit.myr
+++ b/bench/hashit.myr
@@ -25,7 +25,14 @@ const main = {
std.htget(h, "foo")
;;
std.htfree(h)
- }]
+ }],
+ [.name="htput", .fn={ctx
+ var h = std.mkht(std.strhash, std.streq)
+ for var i = 0; i < 1000; i++
+ std.htput(h, "foo", 123)
+ ;;
+ std.htfree(h)
+ }],
][:])
}