Skip to content

Commit

Permalink
eof: Update gasTests tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rodiazet committed Dec 18, 2024
1 parent da7e1bc commit 586d314
Show file tree
Hide file tree
Showing 12 changed files with 30 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/libsolidity/gasTests/abiv2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ contract C {
function f7(uint[31] memory, string[20] memory, C, address) public returns (bytes[] memory, uint16[] memory) {}
function f8(uint[32] memory, string[] memory, uint32, address) public returns (uint[] memory, uint16[] memory) {}
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 1208000
Expand Down
2 changes: 2 additions & 0 deletions test/libsolidity/gasTests/abiv2_optimised.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ contract C {
function f8(uint[32] memory, string[] memory, uint32, address) public returns (uint[] memory, uint16[] memory) {}
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// optimize: true
// optimize-yul: true
// ----
Expand Down
3 changes: 3 additions & 0 deletions test/libsolidity/gasTests/data_storage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ contract C {
require(false, "12345678901234567890123456789012123456789012345678901234567890123");
}
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 377800
Expand Down
3 changes: 3 additions & 0 deletions test/libsolidity/gasTests/dispatch_large.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ contract Large {
function g9(uint x) public payable returns (uint) { b[uint8(msg.data[8])] = x; }
function g0(uint x) public payable returns (uint) { require(x > 10); }
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 618400
Expand Down
2 changes: 2 additions & 0 deletions test/libsolidity/gasTests/dispatch_large_optimised.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ contract Large {
function g0(uint x) public payable returns (uint) { require(x > 10); }
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// optimize: true
// optimize-runs: 2
// ----
Expand Down
3 changes: 3 additions & 0 deletions test/libsolidity/gasTests/dispatch_medium.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ contract Medium {
function g9(uint x) public payable returns (uint) { b[uint8(msg.data[8])] = x; }
function g0(uint x) public payable returns (uint) { require(x > 10); }
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 259600
Expand Down
3 changes: 3 additions & 0 deletions test/libsolidity/gasTests/dispatch_medium_optimised.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ contract Medium {
function g0(uint x) public payable returns (uint) { require(x > 10); }
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// ====
// optimize: true
// optimize-runs: 2
// ----
Expand Down
3 changes: 3 additions & 0 deletions test/libsolidity/gasTests/dispatch_small.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ contract Small {
function f1(uint x) public returns (uint) { a = x; b[uint8(msg.data[0])] = x; }
fallback () external payable {}
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 103800
Expand Down
2 changes: 2 additions & 0 deletions test/libsolidity/gasTests/dispatch_small_optimised.sol
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ contract Small {
fallback () external payable {}
}
// ====
// EVMVersion: =current
// optimize: true
// optimize-runs: 2
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 58200
Expand Down
2 changes: 2 additions & 0 deletions test/libsolidity/gasTests/exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ contract C {
}
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// optimize: false
// optimize-yul: false
// ----
Expand Down
2 changes: 2 additions & 0 deletions test/libsolidity/gasTests/exp_optimized.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ contract C {
}
}
// ====
// EVMVersion: =current
// bytecodeFormat: legacy
// optimize: true
// optimize-yul: true
// ----
Expand Down
2 changes: 2 additions & 0 deletions test/libsolidity/gasTests/storage_costs.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ contract C {
}
}
// ====
// EVMVersion: =current
// optimize: true
// optimize-yul: true
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 25600
Expand Down

0 comments on commit 586d314

Please sign in to comment.