forked from cerc-io/laconicd-deprecated
evm: benchmark contract execution (#436)
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
co-authored by
Federico Kunze Küllmer
parent
0cdedfc1fd
commit
a5ab608336
@@ -212,4 +212,12 @@ contract StandardTokenMock is ERC20 {
|
||||
allowed[_account][msg.sender] = allowed[_account][msg.sender].sub(_amount);
|
||||
_burn(_account, _amount);
|
||||
}
|
||||
|
||||
// For benchmarks
|
||||
event TestLog(address sender, uint i);
|
||||
function benchmarkLogs(uint n) public {
|
||||
for (uint i=0; i<n; i++) {
|
||||
emit TestLog(msg.sender, i);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user