コード例 #1
0
ファイル: nulltime_test.go プロジェクト: gunosy/toki
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()
	}
}
コード例 #2
0
ファイル: nulltime_test.go プロジェクト: gunosy/toki
func BenchmarkMarshalNull(b *testing.B) {
	for n := 0; n < b.N; n++ {
		t := toki.NullTime{toki.Time{}, false}
		t.MarshalJSON()
	}
}