8 func BenchmarkEntryID(b *testing.B) {
9 m := NewMux([]*ValueSource{{Position: 1}}, &Program{Code: []byte{1}, VmVersion: 1})
12 NewIssuance(nil, &AssetAmount{}, &Hash{}, 0),
13 NewTxHeader(1, 1, nil, &Hash{}),
15 NewNonce(&Program{Code: []byte{1}, VmVersion: 1}),
16 NewOutput(&ValueSource{}, &Program{Code: []byte{1}, VmVersion: 1}, &Hash{}, 0),
17 NewRetirement(&ValueSource{}, &Hash{}, 1),
18 NewSpend(&Hash{}, &Hash{}, 0),
21 for _, e := range entries {
22 name := reflect.TypeOf(e).Elem().Name()
23 b.Run(name, func(b *testing.B) {
24 for i := 0; i < b.N; i++ {