Skip to content

EVM: Bench: fix bench generation chunking

Pierre-Emmanuel CORNILLEAU requested to merge pec@evm@fix_bench_generation into master

Context

The --devmode of the octez-evm-node is broken, but the production mode can chunk as needed by the benchmark generation.

So we remove the dev mode flag, and it works.

Manually testing the MR

Try to generate an inbox:

node etherlink/kernel_evm/benchmarks/scripts/benchmarks/bench_storage_1.js

Expected result is a file that can be read by the etherlink kernel using the debugger

[
[
{"external": "000000000000000000000000000000000000000000009e083eedc5dff6dc7a86283908034e6f7f981e50e85ba134f8f70448c252b828f86e8082520882520894f0affc80a5f69f4a9a3ee01a640873b6ba53e5398b52b7d2dcc80cd40000000080820a95a058a9a25c8a5ac46fe0f1ec7f4f19f6e3c9df12c724cb60b3e828c90705e91fe2a074bb3faef7706840a2088b2f25aff5ae8a854f47349a00f5304607b9b727f015"},
{"external": "000000000000000000000000000000000000000000001a86cb46e21ffac523f336a4bc3cb3f58118b15344c796e311b640e2b7ecd33ff901f180825208831000008080b9019f608060405234801561001057600080fd5b5061017f806100206000396000f3fe608060405234801561001057600080fd5b50600436106100415760003560e01c80634e70b1dc1461004657806360fe47b1146100645780636d4ce63c14610080575b600080fd5b61004e61009e565b60405161005b91906100d0565b60405180910390f35b61007e6004803603810190610079919061011c565b6100a4565b005b6100886100ae565b60405161009591906100d0565b60405180910390f35b60005481565b8060008190555050565b60008054905090565b6000819050919050565b6100ca816100b7565b82525050565b60006020820190506100e560008301846100c1565b92915050565b600080fd5b6100f9816100b7565b811461010457600080fd5b50565b600081359050610116816100f0565b92915050565b600060208284031215610132576101316100eb565b5b600061014084828501610107565b9150509291505056fea264697066735822122002c39e4f846507e90337b345121525405c39e22fa64290fa1b16008fbd3d13c964736f6c63430008150033820a95a01d1897ad277a84ba216c84615d0add1a1156dac76f89228f3ef5e6b066f25a6aa041ead0e4045ced497b4766811074b796a007096b14320b5da7db79512ddaf61a"},
{"external": "0000000000000000000000000000000000000000000063eac09ad6f444b49bd3c3d5ba9b7a45d68a8540a76c0f3429908b7a89d63801f88801825208831000009412f142944da31ab85458787aaecaf5e34128619d80a460fe47b10000000000000000000000000000000000000000000000000000000000000024820a96a06dc1ba5064b172c56e4742a072dd22f9e30f374d348e0dd670004c32873efc96a0249db9ead9222e7dcd583499250cffe7efb00cda843ddd8f93fbb407a9b57d47"},
{"external": "000000000000000000000000000000000000000000004cf5680b74e0cc1c3c51ae8cef55dbc616fe7f9417a27abc7fdd2404060763eaf86e01825208825208944ec764418e637dc5d89ae97da26348e9a088fee58b52b7d2dcc80cd40000000080820a95a0e12e36cafa94877cb5177e59d0e201fc8ca5757e77271e15381045a5dde2c529a03c7ef9af5de96d5494a8d0105e5b5755f734aabe8d2b1b05f0fe2b5cbceb1616"},
{"external": "00000000000000000000000000000000000000000000ce35f476990e24440a5d7b40d1e37b9fca363baadbdad14ccf0b8f37baa769e8f88880825208831000009412f142944da31ab85458787aaecaf5e34128619d80a460fe47b1000000000000000000000000000000000000000000000000000000000000002a820a95a005a15d275e8be285a6f7900df86b3cb3d4f290fc7062b7ce2bd97c79fd50dc07a00f59baa1346f9579e68ea73471e612dbcfec1885481ba162ef4a35b21d1cba24"}
]
]

Checklist

  • Document the interface of any function added or modified (see the coding guidelines)
  • Document any change to the user interface, including configuration parameters (see node configuration)
  • Provide automatic testing (see the testing guide).
  • For new features and bug fixes, add an item in the appropriate changelog (docs/protocols/alpha.rst for the protocol and the environment, CHANGES.rst at the root of the repository for everything else).
  • Select suitable reviewers using the Reviewers field below.
  • Select as Assignee the next person who should take action on that MR

Merge request reports