Conversation
hamt_bench_test.go
Outdated
| hamts := []hamtParams{ | ||
| hamtParams{ | ||
| id: "init.AddressMap", | ||
| count: 55649, |
There was a problem hiding this comment.
These numbers are taken from a snapshot of chainstate two weeks ago. We will want to change them periodically to run benchmarks that are relevant. For the final v3 tuning we will want to extrapolate values we expect a few months out. Merging temporary values to master is ugly but setting values in source is a nice lightweight mechanism for updating.
| } | ||
| } | ||
|
|
||
| func doBenchmarkResetSuite(num int, bitWidth int, datasize int, keysize int) func(b *testing.B) { |
There was a problem hiding this comment.
We added this benchmark for resetting the set of existing keys to better match the expected workloads on some filecoin state tree HAMTs, i.e. power.Claims.
benchparse/README.md
Outdated
| @@ -0,0 +1,24 @@ | |||
| # Benchparse | |||
There was a problem hiding this comment.
It may make sense to extract this from this package so we can avoid perf dep in HAMT. Additionally I expect to tweak and use this for measuring AMT so decoupling might make logical sense.
|
@acruikshank couldn't tag you for review but please take a look FYI @anorth @Stebalien @rvagg |
b3b492b to
a4e9e84
Compare
WIP using and extending existing benchmarks to help tune filecoin hamt parameters.