github.com/ipld/go-ipld-prime@v0.21.0/node/gendemo/gendemo_test.go (about)

     1  package gendemo
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/ipld/go-ipld-prime/node/tests"
     7  )
     8  
     9  func BenchmarkMapStrInt_3n_AssembleStandard(b *testing.B) {
    10  	tests.SpecBenchmarkMapStrInt_3n_AssembleStandard(b, _Msg3__Prototype{})
    11  }
    12  func BenchmarkMapStrInt_3n_AssembleEntry(b *testing.B) {
    13  	tests.SpecBenchmarkMapStrInt_3n_AssembleEntry(b, _Msg3__Prototype{})
    14  }
    15  func BenchmarkMapStrInt_3n_Iteration(b *testing.B) {
    16  	tests.SpecBenchmarkMapStrInt_3n_Iteration(b, _Msg3__Prototype{})
    17  }
    18  func BenchmarkSpec_Marshal_Map3StrInt(b *testing.B) {
    19  	tests.BenchmarkSpec_Marshal_Map3StrInt(b, _Msg3__Prototype{})
    20  }
    21  func BenchmarkSpec_Unmarshal_Map3StrInt(b *testing.B) {
    22  	tests.BenchmarkSpec_Unmarshal_Map3StrInt(b, _Msg3__Prototype{})
    23  }
    24  
    25  func BenchmarkSpec_Marshal_MapNStrMap3StrInt(b *testing.B) {
    26  	tests.BenchmarkSpec_Marshal_MapNStrMap3StrInt(b, _Map__String__Msg3__Prototype{})
    27  }
    28  func BenchmarkSpec_Unmarshal_MapNStrMap3StrInt(b *testing.B) {
    29  	tests.BenchmarkSpec_Unmarshal_MapNStrMap3StrInt(b, _Map__String__Msg3__Prototype{})
    30  }
    31  
    32  // the standard 'walk' benchmarks don't work yet because those use selectors and use the prototype we give them for that, which...
    33  //  does not fly: cramming selector keys into assemblers meant for struct types from our test corpus?  nope.
    34  //   this is a known shortcut-become-bug with the design of the 'walk' benchmarks; we'll have to fix soon.