mirror of
https://gitee.com/dromara/carbon.git
synced 2024-12-03 12:48:22 +08:00
25 lines
367 B
Go
25 lines
367 B
Go
|
package carbon
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func BenchmarkCarbon_Scan(b *testing.B) {
|
||
|
now := Now()
|
||
|
for n := 0; n < b.N; n++ {
|
||
|
_ = now.Scan(nil)
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func BenchmarkCarbon_Value(b *testing.B) {
|
||
|
now := Now()
|
||
|
for n := 0; n < b.N; n++ {
|
||
|
now.Value()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
func BenchmarkCarbon_GormDataType(b *testing.B) {
|
||
|
now := Now()
|
||
|
for n := 0; n < b.N; n++ {
|
||
|
now.GormDataType()
|
||
|
}
|
||
|
}
|