代码拉取完成,页面将自动刷新
package carbon
import (
"testing"
)
func BenchmarkCarbon_StartOfCentury(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().StartOfCentury()
}
for n := 0; n < b.N; n++ {
now.StartOfCentury()
}
}
func BenchmarkCarbon_EndOfCentury(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().EndOfCentury()
}
for n := 0; n < b.N; n++ {
now.EndOfCentury()
}
}
func BenchmarkCarbon_StartOfDecade(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().StartOfDecade()
}
for n := 0; n < b.N; n++ {
now.StartOfDecade()
}
}
func BenchmarkCarbon_EndOfDecade(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().EndOfDecade()
}
for n := 0; n < b.N; n++ {
now.EndOfDecade()
}
}
func BenchmarkCarbon_StartOfYear(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().StartOfYear()
}
for n := 0; n < b.N; n++ {
now.StartOfYear()
}
}
func BenchmarkCarbon_EndOfYear(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().EndOfYear()
}
for n := 0; n < b.N; n++ {
now.EndOfYear()
}
}
func BenchmarkCarbon_StartOfQuarter(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().StartOfQuarter()
}
for n := 0; n < b.N; n++ {
now.StartOfQuarter()
}
}
func BenchmarkCarbon_EndOfQuarter(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().EndOfQuarter()
}
for n := 0; n < b.N; n++ {
now.EndOfQuarter()
}
}
func BenchmarkCarbon_StartOfMonth(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().StartOfMonth()
}
for n := 0; n < b.N; n++ {
now.StartOfMonth()
}
}
func BenchmarkCarbon_EndOfMonth(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().EndOfMonth()
}
for n := 0; n < b.N; n++ {
now.EndOfMonth()
}
}
func BenchmarkCarbon_StartOfWeek(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().StartOfWeek()
}
for n := 0; n < b.N; n++ {
now.StartOfWeek()
}
}
func BenchmarkCarbon_EndOfWeek(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().EndOfWeek()
}
for n := 0; n < b.N; n++ {
now.EndOfWeek()
}
}
func BenchmarkCarbon_StartOfDay(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().StartOfDay()
}
for n := 0; n < b.N; n++ {
now.StartOfDay()
}
}
func BenchmarkCarbon_EndOfDay(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().EndOfDay()
}
for n := 0; n < b.N; n++ {
now.EndOfDay()
}
}
func BenchmarkCarbon_StartOfHour(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().StartOfHour()
}
for n := 0; n < b.N; n++ {
now.StartOfHour()
}
}
func BenchmarkCarbon_EndOfHour(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().EndOfHour()
}
for n := 0; n < b.N; n++ {
now.EndOfHour()
}
}
func BenchmarkCarbon_StartOfMinute(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().StartOfMinute()
}
for n := 0; n < b.N; n++ {
now.StartOfMinute()
}
}
func BenchmarkCarbon_EndOfMinute(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().EndOfMinute()
}
for n := 0; n < b.N; n++ {
now.EndOfMinute()
}
}
func BenchmarkCarbon_StartOfSecond(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().StartOfSecond()
}
for n := 0; n < b.N; n++ {
now.StartOfSecond()
}
}
func BenchmarkCarbon_EndOfSecond(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
NewCarbon().EndOfSecond()
}
for n := 0; n < b.N; n++ {
now.EndOfSecond()
}
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。