Seven VMs on one host restarted at once read a third less each than any gets alone. An agent now waits 10 s to 2 min, at random, before measuring, and measures again every hour, keeping the best. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
324 B
Go
16 lines
324 B
Go
package agent
|
|
|
|
import (
|
|
"os"
|
|
"testing"
|
|
"time"
|
|
)
|
|
|
|
func TestMain(m *testing.M) {
|
|
// Half a gigabyte read per test binary, and contending with the tests
|
|
// for the CPUs: these never look at the figure.
|
|
measureBandwidth = func() float64 { return 0 }
|
|
bandwidthDelay = func() time.Duration { return 0 }
|
|
os.Exit(m.Run())
|
|
}
|