mirror of
https://gitee.com/dromara/carbon.git
synced 2024-11-29 18:57:37 +08:00
25 lines
367 B
Go
Executable File
25 lines
367 B
Go
Executable File
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()
|
|
}
|
|
}
|