Skip to content

Commit

Permalink
remove override in config.
Browse files Browse the repository at this point in the history
  • Loading branch information
drortirosh committed Dec 23, 2024
1 parent c194452 commit 7404dbb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 36 deletions.
21 changes: 7 additions & 14 deletions hardhat.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,19 @@ const optimizedCompilerSettings = {

const config: HardhatUserConfig = {
solidity: {
version: '0.8.28',
settings: {
evmVersion: 'cancun',
optimizer: {
enabled: true,
runs: 1000000
}
},
// duplicated because this part is used by 'hardhat coverage'
compilers: [{
version: '0.8.28',
version: '0.8.24',
settings: {
evmVersion: 'cancun',
viaIR: true,
optimizer: { enabled: true, runs: 1000000 }
}
}],
overrides: {
'contracts/core/EntryPoint.sol': optimizedCompilerSettings,
'contracts/samples/SimpleAccount.sol': optimizedCompilerSettings
}
}]
// overrides: {
// 'contracts/core/EntryPoint.sol': optimizedCompilerSettings,
// 'contracts/samples/SimpleAccount.sol': optimizedCompilerSettings
// }
},
networks: {
dev: { url: 'http://localhost:8545' },
Expand Down
44 changes: 22 additions & 22 deletions reports/gas-checker.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,54 +2,54 @@
the destination is "account.entryPoint()", which is known to be "hot" address used by this account
it little higher than EOA call: its an exec from entrypoint (or account owner) into account contract, verifying msg.sender and exec to target)
╔══════════════════════════╤════════╗
║ gas estimate "simple" │ 29327
║ gas estimate "simple" │ 29270
╟──────────────────────────┼────────╢
║ gas estimate "big tx 5k" │ 126098
║ gas estimate "big tx 5k" │ 114713
╚══════════════════════════╧════════╝

╔════════════════════════════════╤═══════╤═══════════════╤════════════════╤═════════════════════╗
║ handleOps description │ count │ total gasUsed │ per UserOp gas │ per UserOp overhead ║
║ │ │ │ (delta for │ (compared to ║
║ │ │ │ one UserOp) │ account.exec()) ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ simple │ 1 │ 80004 │ │ ║
║ simple │ 1 │ 77467 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ simple - diff from previous │ 2 │ │ 4216812841
║ simple - diff from previous │ 2 │ │ 4166612396
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ simple │ 10 │ 459895 │ │ ║
║ simple │ 10 │ 452564 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ simple - diff from previous │ 11 │ │ 4223512908
║ simple - diff from previous │ 11 │ │ 4173312463
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ simple paymaster │ 1 │ 86147 │ │ ║
║ simple paymaster │ 1 │ 83421 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ simple paymaster with diff │ 2 │ │ 4104811721
║ simple paymaster with diff │ 2 │ │ 4033311063
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ simple paymaster │ 10 │ 455682 │ │ ║
║ simple paymaster │ 10 │ 446533 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ simple paymaster with diff │ 11 │ │ 4114811821
║ simple paymaster with diff │ 11 │ │ 4039711127
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ big tx 5k │ 1 │ 181036 │ │ ║
║ big tx 5k │ 1 │ 167192 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ big tx - diff from previous │ 2 │ │ 14270216604
║ big tx - diff from previous │ 2 │ │ 13092916216
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ big tx 5k │ 10 │ 1465441 │ │ ║
║ big tx 5k │ 10 │ 1345340 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ big tx - diff from previous │ 11 │ │ 14272216624
║ big tx - diff from previous │ 11 │ │ 13094916236
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ paymaster+postOp │ 1 │ 87758 │ │ ║
║ paymaster+postOp │ 1 │ 84860 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ paymaster+postOp with diff │ 2 │ │ 4264713320
║ paymaster+postOp with diff │ 2 │ │ 4178412514
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ paymaster+postOp │ 10 │ 471848 │ │ ║
║ paymaster+postOp │ 10 │ 461159 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ paymaster+postOp with diff │ 11 │ │ 4270413377
║ paymaster+postOp with diff │ 11 │ │ 4188912619
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ token paymaster │ 1 │ 128809 │ │ ║
║ token paymaster │ 1 │ 122162 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ token paymaster with diff │ 2 │ │ 6638437057
║ token paymaster with diff │ 2 │ │ 6174832478
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ token paymaster │ 10 │ 707804 │ │ ║
║ token paymaster │ 10 │ 678327 │ │ ║
╟────────────────────────────────┼───────┼───────────────┼────────────────┼─────────────────────╢
║ token paymaster with diff │ 11 │ │ 6653637209
║ token paymaster with diff │ 11 │ │ 6184032570
╚════════════════════════════════╧═══════╧═══════════════╧════════════════╧═════════════════════╝

0 comments on commit 7404dbb

Please sign in to comment.