MCPcopy Create free account
hub / github.com/chain/Core / BenchmarkGenerateBlock

Function BenchmarkGenerateBlock

core/txbuilder/finalize_test.go:286–291  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

284}
285
286func BenchmarkGenerateBlock(b *testing.B) {
287 b.Skip() // b.N reaches 50000 which can eventually kill the process on macosx
288 for i := 0; i < b.N; i++ {
289 benchGenBlock(b)
290 }
291}
292
293func benchGenBlock(b *testing.B) {
294 const tx1hex = ("07" + // serflags

Callers

nothing calls this directly

Calls 1

benchGenBlockFunction · 0.85

Tested by

no test coverage detected