github.com/ethereum/go-ethereum@v1.16.1/cmd/workload/README.md (about)

     1  ## Workload Testing Tool
     2  
     3  This tool performs RPC calls against a live node. It has tests for the Sepolia testnet and
     4  Mainnet. Note the tests require a fully synced node.
     5  
     6  To run the tests against a Sepolia node, use:
     7  
     8  ```shell
     9  > ./workload test --sepolia http://host:8545
    10  ```
    11  
    12  To run a specific test, use the `--run` flag to filter the test cases. Filtering works
    13  similar to the `go test` command. For example, to run only tests for `eth_getBlockByHash`
    14  and `eth_getBlockByNumber`, use this command:
    15  
    16  ```
    17  > ./workload test --sepolia --run History/getBlockBy http://host:8545
    18  ```
    19  
    20  ### Regenerating tests
    21  
    22  There is a facility for updating the tests from the chain. This can also be used to
    23  generate the tests for a new network. As an example, to recreate tests for mainnet, run
    24  the following commands (in this directory) against a synced mainnet node:
    25  
    26  ```shell
    27  > go run . filtergen --queries queries/filter_queries_mainnet.json http://host:8545
    28  > go run . historygen --history-tests queries/history_mainnet.json http://host:8545
    29  > go run . tracegen --trace-tests queries/trace_mainnet.json http://host:8545
    30  ```