The Solidity Contract-Oriented Programming Language - By chatting here you agree to the https://github.com/ethereum/solidity/blob/develop/CODE_OF_CONDUCT.md
@ccolorado: They should both be the same, at least after optimization.
The easiest way to compare is writing two different contracts, both with a single function that does what you want to do. They call each of them and compare the costs. Make sure that the optimizer is turned on, otherwise, the comparison can be meaningless. Often users incorrectly writes two functions in the same contract and compares the gas, but this is incorrect because the order in which the function appear in the function dispatch can influence this.
Maybe https://www.npmjs.com/package/hardhat-gas-reporter can be useful in testing. Otherwise, something as simple as Remix should do.
constructor
function.
/// @notice Takes in the open interest and appllies Overlay's monetary policy
/// @dev The impact is a measure of the demand placed on the market over
/// @dev a rolling window.
constructor() { owner = payable(msg.sender); }
mean in a contract?
msg.sender
can receive ether