MCPcopy Create free account
hub / github.com/CPChain/chain / BenchmarkBlockChain_1x1000ValueTransferToExisting

Function BenchmarkBlockChain_1x1000ValueTransferToExisting

core/blockchain_test.go:984–1000  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

982 benchmarkLargeNumberOfValueToNonexisting(b, numTxs, numBlocks, recipientFn, dataFn)
983}
984func BenchmarkBlockChain_1x1000ValueTransferToExisting(b *testing.B) {
985 var (
986 numTxs = 1000
987 numBlocks = 1
988 )
989 b.StopTimer()
990 b.ResetTimer()
991
992 recipientFn := func(nonce uint64) common.Address {
993 return common.BigToAddress(big.NewInt(0).SetUint64(1337))
994 }
995 dataFn := func(nonce uint64) []byte {
996 return nil
997 }
998
999 benchmarkLargeNumberOfValueToNonexisting(b, numTxs, numBlocks, recipientFn, dataFn)
1000}
1001func BenchmarkBlockChain_1x1000Executions(b *testing.B) {
1002 var (
1003 numTxs = 1000

Callers

nothing calls this directly

Tested by

no test coverage detected