Added PubKeyToTable cache hits on sidechain test
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
97390b2e48
commit
791345c3e7
|
@ -76,6 +76,10 @@ func testSideChain(s *SideChain, t *testing.T, reader io.Reader, sideHeight, mai
|
|||
total = max(1, hits+misses)
|
||||
t.Logf("Derivation Cache hits = %d (%.02f%%), misses = %d (%.02f%%), total = %d", hits, (float64(hits)/float64(total))*100, misses, (float64(misses)/float64(total))*100, total)
|
||||
|
||||
hits, misses = s.DerivationCache().pubKeyToTableCache.Stats()
|
||||
total = max(1, hits+misses)
|
||||
t.Logf("PubKeyToTable Key Cache hits = %d (%.02f%%), misses = %d (%.02f%%), total = %d", hits, (float64(hits)/float64(total))*100, misses, (float64(misses)/float64(total))*100, total)
|
||||
|
||||
hits, misses = s.DerivationCache().pubKeyToPointCache.Stats()
|
||||
total = max(1, hits+misses)
|
||||
t.Logf("PubKeyToPoint Key Cache hits = %d (%.02f%%), misses = %d (%.02f%%), total = %d", hits, (float64(hits)/float64(total))*100, misses, (float64(misses)/float64(total))*100, total)
|
||||
|
|
Loading…
Reference in a new issue