{"width":"100%","published":"2025-04-23 15:53:48","description":"Benchmark\u95a2\u6570\u3092\u66f8\u304f\u3068\u304d\u3001\u91cd\u3044\u521d\u671f\u5316\u51e6\u7406\u304c\u5fc5\u8981\u306b\u306a\u308b\u30b1\u30fc\u30b9\u304c\u3042\u308b\u3002 \u4f8b\u3048\u3070\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u304b\u3089\u5927\u91cf\u306e\u30c7\u30fc\u30bf\u3092\u8aad\u307f\u8fbc\u3080\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u3092\u66f8\u304d\u305f\u3044\u5834\u5408\u3001\u307e\u305a\u306f\u305d\u306e\u5927\u304d\u3044\u30c7\u30fc\u30bf\u3092\u6301\u3063\u305f\u30c6\u30fc\u30d6\u30eb\u3092\u4f5c\u308b\u5fc5\u8981\u304c\u3042\u308b\u3002 Go\u306e\u30d9\u30f3\u30c1\u30de\u30fc\u30af\u95a2\u6570\u306f\u3001\u666e\u901a\u306f\u5b9f\u884c\u6642\u9593\u304c\u30bf\u30fc\u30b2\u30c3\u30c8\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\u30671\u79d2\uff09\u306b\u8fd1\u3065\u304f\u3088\u3046\u306b b.N \u3092\u5909\u3048\u306a\u304c\u3089\u8907\u6570\u56de\u547c\u3073\u51fa\u3055\u308c\u308b\u3002 func BenchmarkBigData(b *testing.B) { // \u8907\u6570\u56de\u547c\u3073\u51fa\u3055\u308c\u308b // \u91cd\u3044\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7 b.ResetTimer() for range b.N { // \u6e2c\u308a\u305f\u3044\u30b3\u30fc\u30c9 } b.StopTimer() // \u30af\u30ea\u30fc\u30f3\u30a2\u30c3\u30d7 \u2026","blog_title":"methane\u306e\u30d6\u30ed\u30b0","provider_name":"Hatena Blog","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmethane.hatenablog.jp%2Fentry%2F2025%2F04%2F23%2F155348\" title=\"Go 1.24 \u306e testing.B.Loop() \u304c\u4fbf\u5229 - methane\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","author_url":"https://blog.hatena.ne.jp/methane/","type":"rich","image_url":null,"title":"Go 1.24 \u306e testing.B.Loop() \u304c\u4fbf\u5229","url":"https://methane.hatenablog.jp/entry/2025/04/23/155348","version":"1.0","categories":["golang"],"blog_url":"https://methane.hatenablog.jp/","provider_url":"https://hatena.blog","author_name":"methane","height":"190"}