1 Star 0 Fork 0

Paulden/Algorithm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
product_test.go 597 Bytes
一键复制 编辑 原始数据 按行查看 历史
Paulden 提交于 2022-09-24 18:47 . implement product
package algorithm
import "testing"
func BenchmarkProduct1(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = product1(100, 100)
_ = product1(101, 100003)
_ = product1(1001, 1000553)
_ = product1(89001, 1000553)
}
}
func BenchmarkProduct2(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = product2(100, 100)
_ = product2(101, 100003)
_ = product2(1001, 1000553)
_ = product2(89001, 1000553)
}
}
func BenchmarkProduct3(b *testing.B) {
for i := 0; i < b.N; i++ {
_ = product3(100, 100)
_ = product3(101, 100003)
_ = product3(1001, 1000553)
_ = product3(89001, 1000553)
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/guuzaa/algorithm.git
git@gitee.com:guuzaa/algorithm.git
guuzaa
algorithm
Algorithm
main

搜索帮助

23e8dbc6 1850385 7e0993f3 1850385