diff --git a/core/tests/vm-benchmark/deployment_benchmarks_sources/fibonacci_rec.sol b/core/tests/vm-benchmark/deployment_benchmarks_sources/fibonacci_rec.sol new file mode 100644 index 00000000000..acdd27356bf --- /dev/null +++ b/core/tests/vm-benchmark/deployment_benchmarks_sources/fibonacci_rec.sol @@ -0,0 +1,19 @@ +pragma solidity ^0.8.0; + +contract benchmark { + uint256 value; + constructor() { + value = fib(25); + } + + function get_calculation() public view returns (uint256) { + return value; + } + + function fib(uint256 n) internal returns (uint256) { + if (n <= 1) { + return n; + } + return fib(n - 1) + fib(n - 2); + } +} diff --git a/core/tests/vm-benchmark/deployment_benchmarks_sources/send.sol b/core/tests/vm-benchmark/deployment_benchmarks_sources/send.sol new file mode 100644 index 00000000000..f8463ab46e4 --- /dev/null +++ b/core/tests/vm-benchmark/deployment_benchmarks_sources/send.sol @@ -0,0 +1,8 @@ +pragma solidity >=0.8.20; + +contract Send { + constructor() { + address payable self = payable(msg.sender); + self.call{value: 100}; + } +}