gojs: backfills errno tests and updates links (#1110)

Signed-off-by: Adrian Cole <adrian@tetrate.io>
This commit is contained in:
Crypt Keeper
2023-02-09 12:38:22 -05:00
committed by GitHub
parent addd312dda
commit f18bb221c4
17 changed files with 338 additions and 144 deletions

View File

@@ -66,7 +66,7 @@ func runCallBenchmark(rt Runtime, rtCfg *RuntimeConfig, call func(Module, int) e
result := testing.Benchmark(func(b *testing.B) {
benchmarkCall(b, rt, rtCfg, call)
})
// https://github.com/golang/go/blob/fd09e88722e0af150bf8960e95e8da500ad91001/src/testing/benchmark.go#L428-L432
// https://github.com/golang/go/blob/go1.20/src/testing/benchmark.go#L428-L432
nsOp := float64(result.T.Nanoseconds()) / float64(result.N)
return nsOp
}