32 Star 408 Fork 63

GVPdromara/carbon

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
constellation_bench_test.go 1.46 KB
一键复制 编辑 原始数据 按行查看 历史
gouguoyin 提交于 2023-12-28 11:27 . 添加性能测试文件
package carbon
import "testing"
func BenchmarkCarbon_Constellation(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
now.Constellation()
}
}
func BenchmarkCarbon_IsAries(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
now.IsAries()
}
}
func BenchmarkCarbon_IsTaurus(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
now.IsTaurus()
}
}
func BenchmarkCarbon_IsGemini(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
now.IsGemini()
}
}
func BenchmarkCarbon_IsCancer(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
now.IsCancer()
}
}
func BenchmarkCarbon_IsLeo(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
now.IsLeo()
}
}
func BenchmarkCarbon_IsVirgo(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
now.IsVirgo()
}
}
func BenchmarkCarbon_IsLibra(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
now.IsLibra()
}
}
func BenchmarkCarbon_IsScorpio(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
now.IsScorpio()
}
}
func BenchmarkCarbon_IsSagittarius(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
now.IsSagittarius()
}
}
func BenchmarkCarbon_IsCapricorn(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
now.IsCapricorn()
}
}
func BenchmarkCarbon_IsAquarius(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
now.IsAquarius()
}
}
func BenchmarkCarbon_IsPisces(b *testing.B) {
now := Now()
for n := 0; n < b.N; n++ {
now.IsPisces()
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/dromara/carbon.git
git@gitee.com:dromara/carbon.git
dromara
carbon
carbon
master

搜索帮助