perf: add benchmark, optimize

Realized about a 10x speedup.

- add benches/million-updates.rs
- optimization: use rand instead of nanorand (because of thread_rng() initialization being muchf aster)
- update README

Signed-off-by: Stephen Waits <steve@waits.net>
This commit is contained in:
swaits committed 2023-02-09 16:36:24 -07:00
1 parent 2e97c879e1
commit c07463122a
7 files changed
+90 -16

No files matched your search

+1
View File
@@ -1,2 +1,3 @@
/flamegraph.svg
/target
Cargo.lock