The Go gopher was designed by Renée French. https://gotalk.connpass.com/event/388084/
We threw Go’s new “testing/synctest” package at a particularly gnarly part of our codebase and were pleasantly surprised by how effective it was. This post covers the synctest package, its nuances, and how it does much more than speed up your tests. The main headline for Go 1.25’s synctest is its ability to magically advance time. Tests run in a “bubble” with a fake clock and calls to time.Sleep a
TL;DR Go 1.24 からは testing.B.Loop を使う 意図しない最適化を避けることができる N をループで使わないことで他の場所での使用を避けることができる ベンチマークの結果を比較する場合は同一条件下か確認しましょう ベンチマークの結果の安定性を確認しましょう 安定したベンチマークをするために testing.B.N は反復回数以外の用途で使わない 背景 なんでappendが速いんだろ🙄 pic.twitter.com/geEqBop2kv— ゴリラ - お餅で巻いたもち食感ロール(ショコラ)は良いぞ (@gorilla0513) 2025年2月19日 本題 まずは追試をします。 package main import "testing" func BenchmarkIndex(b *testing.B) { a := make([]int, b.N) b.Rese
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く