I created safe 4337 accounts on both arbitrum and optimism and surprised by the difference in gas usage.
Arbitrum transaction: https://arbiscan.io/tx/0x806f0c57f7d82a90bc3dfb31d943ec7a26f7be9b9e1868d0aadca46f56ecd667
Optimism transaction: https://optimistic.etherscan.io/tx/0x2a48898ad7432aae42a9137a1424d33fa3830c7a6cbfc5d6f04a129a571752fb
As you can see in the details, both consume practically the same amount of gas on L2 (~404K) but there is a huge difference in the L1 gas used by both (14k for optimism vs 460k for arbitrum).
There is ofcourse a difference of gas price on the two networks which I can understand. Ultimately, similar transaction on arbitrum is costing 3-4x compared to similar one on optimism.
Can anyone explain why arbitrum transaction is consuming so much more L1 gas? Is this dependent on specific network conditions (like how many transactions are getting rolled-up in both etc..) or will this always be the disparity I can expect?