Skip to content

Commit

Permalink
prefix for loop gas test Solidity 0.8.21
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcusWentz authored Aug 31, 2024
1 parent 595e126 commit 9d6fcb3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Contracts/forLoopsUncheckedGasBenchmark.sol
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// SPDX-License-Identifier: MIT
pragma solidity 0.8.26;
pragma solidity 0.8.22;

contract forLoopsUncheckedGasBenchmark {

Expand All @@ -23,6 +23,11 @@ contract forLoopsUncheckedGasBenchmark {
}

// Remix IDE gas transaction report forLoopsUncheckedGasBenchmark.newFunctionPrefixIncrement():
// Solidity 0.8.21 and below:
// gas 96720 gas
// transaction cost 84104 gas
// execution cost 63040 gas
// Solidity 0.8.22 and above:
// gas 83150 gas
// transaction cost 72304 gas
// execution cost 51240 gas
Expand Down

0 comments on commit 9d6fcb3

Please sign in to comment.