summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-09-10 01:07:38 -0700
committerOri Bernstein <ori@eigenstate.org>2017-09-10 01:07:53 -0700
commitb0fd36e3db14286bc1408aacb8ff7273a85dd251 (patch)
treeb309b6d74b1e49f116794effe8abdbd675797b57
parent16b5ec849c2886329338f210cb4c90efc26c8b38 (diff)
downloadmc-b0fd36e3db14286bc1408aacb8ff7273a85dd251.tar.gz
Put a bunch of things into a hash table.
-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)
+ }],
][:])
}