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 e3ee05c commit e03a76c
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/libsolidity/gasTests/abiv2.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ 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) {}
}
// ====
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 1208000
Expand Down
1 change: 1 addition & 0 deletions test/libsolidity/gasTests/abiv2_optimised.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ contract C {
function f8(uint[32] memory, string[] memory, uint32, address) public returns (uint[] memory, uint16[] memory) {}
}
// ====
// bytecodeFormat: legacy
// optimize: true
// optimize-yul: true
// ----
Expand Down
2 changes: 2 additions & 0 deletions test/libsolidity/gasTests/data_storage.sol
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ contract C {
require(false, "12345678901234567890123456789012123456789012345678901234567890123");
}
}
// ====
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 377800
Expand Down
2 changes: 2 additions & 0 deletions test/libsolidity/gasTests/dispatch_large.sol
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ 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); }
}
// ====
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 618400
Expand Down
1 change: 1 addition & 0 deletions test/libsolidity/gasTests/dispatch_large_optimised.sol
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ contract Large {
function g0(uint x) public payable returns (uint) { require(x > 10); }
}
// ====
// bytecodeFormat: legacy
// optimize: true
// optimize-runs: 2
// ----
Expand Down
2 changes: 2 additions & 0 deletions test/libsolidity/gasTests/dispatch_medium.sol
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ 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); }
}
// ====
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 259600
Expand Down
2 changes: 2 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,8 @@ contract Medium {
function g0(uint x) public payable returns (uint) { require(x > 10); }
}
// ====
// bytecodeFormat: legacy
// ====
// optimize: true
// optimize-runs: 2
// ----
Expand Down
2 changes: 2 additions & 0 deletions test/libsolidity/gasTests/dispatch_small.sol
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ contract Small {
function f1(uint x) public returns (uint) { a = x; b[uint8(msg.data[0])] = x; }
fallback () external payable {}
}
// ====
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 103800
Expand Down
1 change: 1 addition & 0 deletions test/libsolidity/gasTests/dispatch_small_optimised.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ contract Small {
// ====
// optimize: true
// optimize-runs: 2
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 58200
Expand Down
1 change: 1 addition & 0 deletions test/libsolidity/gasTests/exp.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ contract C {
}
}
// ====
// bytecodeFormat: legacy
// optimize: false
// optimize-yul: false
// ----
Expand Down
1 change: 1 addition & 0 deletions test/libsolidity/gasTests/exp_optimized.sol
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ contract C {
}
}
// ====
// bytecodeFormat: legacy
// optimize: true
// optimize-yul: true
// ----
Expand Down
1 change: 1 addition & 0 deletions test/libsolidity/gasTests/storage_costs.sol
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ contract C {
// ====
// optimize: true
// optimize-yul: true
// bytecodeFormat: legacy
// ----
// creation:
// codeDepositCost: 25600
Expand Down

0 comments on commit e03a76c

Please sign in to comment.