func BenchmarkGryskiWriter003(b *testing.B) { w := gryski.NewWriter(nullWriter{}) v := uint64(0x75) for i := 0; i < b.N; i++ { for j := 0; j < testWriteBits/5; j++ { w.WriteBits(v, 5) } w.Flush(gryski.Zero) } }
func BenchmarkGryskiWriter001(b *testing.B) { w := gryski.NewWriter(nullWriter{}) for i := 0; i < b.N; i++ { for j := 0; j < testWriteBits/2; j++ { w.WriteBit(gryski.One) w.WriteBit(gryski.Zero) } w.Flush(gryski.Zero) } }