func BenchmarkMarshal(b *testing.B) { for n := 0; n < b.N; n++ { t := toki.NullTime{ toki.Time{ Hours: 12, Minutes: 34, Seconds: 00, }, true} t.MarshalJSON() } }
func BenchmarkMarshalNull(b *testing.B) { for n := 0; n < b.N; n++ { t := toki.NullTime{toki.Time{}, false} t.MarshalJSON() } }