test_sstore_bloated()¶
Documentation for tests/benchmark/stateful/bloatnet/test_single_opcode.py::test_sstore_bloated@21507778.
Generate fixtures for these test cases for Amsterdam with:
fill -v tests/benchmark/stateful/bloatnet/test_single_opcode.py::test_sstore_bloated --gas-benchmark-values 1
Benchmark SSTORE opcodes targeting an EOA with storage bloated.
The storage is assumed to be filled from 0-N linearly, where each slot has the value of the key. Except slot 0, this is the pointer to the next free (empty) storage slot.
For this test to work correctly under all parameters then above
has to be true. If this is not the case then some tests will not
test what they claim to do. For instance, for write_new_value
set to False we need to know the current value of the slots.
Source code in tests/benchmark/stateful/bloatnet/test_single_opcode.py
577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 | |
Parametrized Test Cases¶
This test generates 12 parametrized test cases across 3 forks.