mirror of
https://gitee.com/dromara/carbon.git
synced 2024-12-02 04:07:36 +08:00
15 lines
214 B
Go
15 lines
214 B
Go
|
package carbon
|
||
|
|
||
|
import "testing"
|
||
|
|
||
|
func BenchmarkCarbon_SetDefault(b *testing.B) {
|
||
|
d := Default{
|
||
|
Layout: DateTimeLayout,
|
||
|
Timezone: Local,
|
||
|
Locale: "en",
|
||
|
}
|
||
|
for n := 0; n < b.N; n++ {
|
||
|
SetDefault(d)
|
||
|
}
|
||
|
}
|