Skip to content

Commit

Permalink
triedb/pathdb: reenable benchmark test
Browse files Browse the repository at this point in the history
  • Loading branch information
rjl493456442 committed Oct 28, 2024
1 parent 6e7aaa7 commit faeaf68
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions triedb/pathdb/difflayer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,6 @@ func BenchmarkPersist(b *testing.B) {
// BenchmarkJournal
// BenchmarkJournal-8 10 110969279 ns/op
func BenchmarkJournal(b *testing.B) {
b.SkipNow()

// First, we set up 128 diff layers, with 3K items each
fill := func(parent layer) *diffLayer {
nodes := make(map[common.Hash]map[string]*trienode.Node)
Expand All @@ -156,7 +154,7 @@ func BenchmarkJournal(b *testing.B) {
)
nodes[common.Hash{}][string(path)] = node
}
return newDiffLayer(parent, common.Hash{}, 0, 0, newNodeSet(nodes), new(StateSetWithOrigin))
return newDiffLayer(parent, common.Hash{}, 0, 0, newNodeSet(nodes), NewStateSetWithOrigin(nil, nil))
}
var layer layer
layer = emptyLayer()
Expand Down

0 comments on commit faeaf68

Please sign in to comment.