Skip to content

Refactor(benchmark): analyze and optimize existing test to enhance opcode countΒ #1968

@LouisTsai-Csie

Description

@LouisTsai-Csie

Marius points out the following approach that could optimize some of the benchmark tests:

Call a contract A that calls into contract B
B executes 1024 times the opcode under test
B exits and returns back to A
A loops back and calls into B again

This is already in use, you can check the following cases:

After reviewing all the test cases, I found several test cases that might be able to be optimized based on this idea:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions