Home | History | Annotate | Download | only in gob

Lines Matching defs:Bench

15 type Bench struct {
44 return &Bench{7, 3.2, "now is the time", bytes.Repeat([]byte("for all good men"), 100)}
53 return &Bench{7, 3.2, "now is the time", bytes.Repeat([]byte("for all good men"), 100)}
62 v := &Bench{7, 3.2, "now is the time", nil}
87 bench := &Bench{7, 3.2, "now is the time", []byte("for all good men")}
90 err := enc.Encode(bench)
96 t.Fatalf("mallocs per encode of type Bench: %v; wanted 0\n", allocs)
112 bench := &Bench{7, 3.2, "now is the time", []byte("for all good men")}
116 err := enc.Encode(bench)
124 *bench = Bench{}
125 err := dec.Decode(&bench)
131 t.Fatalf("mallocs per decode of type Bench: %v; wanted 4\n", allocs)