Add a hash table put benchmark.
@@ -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)
+ }],
][:])
}
