mirror of
https://gitee.com/dromara/carbon.git
synced 2024-12-02 04:07:36 +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)
|
|
}
|
|
}
|