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

Function BenchmarkOpMstore

core/vm/instructions_test.go:456–472  ·  view source on GitHub ↗
(bench *testing.B)

Source from the content-addressed store, hash-verified

454}
455
456func BenchmarkOpMstore(bench *testing.B) {
457 var (
458 env = NewEVM(Context{}, nil, configs.TestChainConfig, Config{})
459 stack = newstack()
460 mem = NewMemory()
461 )
462 mem.Resize(64)
463 pc := uint64(0)
464 memStart := big.NewInt(0)
465 value := big.NewInt(0x1337)
466
467 bench.ResetTimer()
468 for i := 0; i < bench.N; i++ {
469 stack.pushN(value, memStart)
470 opMstore(&pc, env, nil, mem, stack)
471 }
472}

Callers

nothing calls this directly

Calls 6

NewEVMFunction · 0.85
newstackFunction · 0.85
NewMemoryFunction · 0.85
opMstoreFunction · 0.85
ResizeMethod · 0.80
pushNMethod · 0.80

Tested by

no test coverage detected