mirror of
https://gitee.com/dromara/carbon.git
synced 2024-11-29 18:57:37 +08:00
16 lines
250 B
Go
Executable File
16 lines
250 B
Go
Executable File
package carbon
|
|
|
|
import "testing"
|
|
|
|
func BenchmarkCarbon_SetDefault(b *testing.B) {
|
|
d := Default{
|
|
Layout: DateTimeLayout,
|
|
Timezone: Local,
|
|
Locale: "en",
|
|
WeekStartsAt: Sunday,
|
|
}
|
|
for n := 0; n < b.N; n++ {
|
|
SetDefault(d)
|
|
}
|
|
}
|