Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/transaction replay #1619

Merged
merged 15 commits into from
Oct 12, 2023
Merged

Feature/transaction replay #1619

merged 15 commits into from
Oct 12, 2023

Conversation

iamyulong
Copy link
Member

@iamyulong iamyulong commented Oct 11, 2023

Summary

Add CLI for replaying transactions:

replay 1.0.1-dev
Transaction replay toolkit

USAGE:
    replay <SUBCOMMAND>

OPTIONS:
    -h, --help       Print help information
    -V, --version    Print version information

SUBCOMMANDS:
    help       Print this message or the help of the given subcommand(s)
    prepare    Prepare transactions from a fully synced database
    run        Run transactions

@github-actions
Copy link

github-actions bot commented Oct 11, 2023

Benchmark for f9eddd6

Click to view benchmark
Test Base PR %
costing::bench_prepare_wasm 78.0±0.34ms 77.7±0.53ms -0.38%
costing::decode_sbor 16.8±0.01µs 16.8±0.38µs 0.00%
costing::decode_sbor_bytes 46.4±0.15µs 53.0±0.20µs +14.22%
costing::deserialize_wasm 1396.3±13.69µs 1383.9±8.89µs -0.89%
costing::instantiate_flash_loan 4.3±0.59ms 4.1±0.37ms -4.65%
costing::instantiate_radiswap 5.7±0.06ms 5.8±0.10ms +1.75%
costing::spin_loop 31.8±0.08ms 27.4±0.04ms -13.84%
costing::validate_sbor_payload 30.7±0.04µs 30.5±0.06µs -0.65%
costing::validate_sbor_payload_bytes 370.7±2.14ns 375.8±0.82ns +1.38%
costing::validate_secp256k1 87.4±0.05µs 87.6±0.59µs +0.23%
costing::validate_wasm 45.5±0.08ms 43.0±0.15ms -5.49%
decimal::add/0 9.3±0.03ns 9.4±0.08ns +1.08%
decimal::add/rust-native 10.9±0.04ns 10.9±0.04ns 0.00%
decimal::add/wasmer 132.5±2.35ns 132.7±0.68ns +0.15%
decimal::add/wasmer-call-native 551.7±1.01ns 561.1±11.23ns +1.70%
decimal::add/wasmi 837.5±9.21ns 793.8±3.10ns -5.22%
decimal::add/wasmi-call-native 9.1±0.02µs 10.2±0.08µs +12.09%
decimal::div/0 200.4±0.33ns 198.5±0.52ns -0.95%
decimal::from_string/0 163.3±0.21ns 169.3±0.10ns +3.67%
decimal::mul/0 155.8±0.21ns 157.4±0.26ns +1.03%
decimal::mul/rust-native 154.5±0.13ns 150.9±0.40ns -2.33%
decimal::mul/wasmer 1676.9±0.47ns 1683.4±0.69ns +0.39%
decimal::mul/wasmer-call-native 704.3±1.23ns 702.5±12.29ns -0.26%
decimal::mul/wasmi 62.1±0.13µs 61.0±0.09µs -1.77%
decimal::mul/wasmi-call-native 9.4±0.02µs 9.2±0.04µs -2.13%
decimal::pow/0 735.8±0.39ns 733.2±1.48ns -0.35%
decimal::pow/rust-native 695.9±1.01ns 702.5±0.97ns +0.95%
decimal::pow/wasmer 7.3±0.00µs 7.4±0.00µs +1.37%
decimal::pow/wasmer-call-native 1171.0±1.21ns 1182.8±4.39ns +1.01%
decimal::pow/wasmi 286.5±0.36µs 284.6±0.39µs -0.66%
decimal::pow/wasmi-call-native 7.9±0.02µs 7.7±0.01µs -2.53%
decimal::root/0 9.5±0.20µs 9.3±0.02µs -2.11%
decimal::sub/0 9.4±0.01ns 9.4±0.01ns 0.00%
decimal::to_string/0 480.3±0.54ns 481.0±1.36ns +0.15%
precise_decimal::add/0 10.5±0.02ns 10.3±0.16ns -1.90%
precise_decimal::add/rust-native 12.7±0.00ns 12.7±0.00ns 0.00%
precise_decimal::add/wasmer 131.4±0.08ns 132.1±0.26ns +0.53%
precise_decimal::add/wasmer-call-native 579.2±0.45ns 581.0±0.61ns +0.31%
precise_decimal::add/wasmi 1021.9±3.39ns 1012.4±5.58ns -0.93%
precise_decimal::add/wasmi-call-native 10.0±0.03µs 9.3±0.02µs -7.00%
precise_decimal::div/0 339.5±0.33ns 323.0±0.78ns -4.86%
precise_decimal::from_string/0 224.5±0.32ns 225.5±0.20ns +0.45%
precise_decimal::mul/0 348.0±0.38ns 349.3±0.89ns +0.37%
precise_decimal::mul/rust-native 324.4±0.93ns 322.8±0.85ns -0.49%
precise_decimal::mul/wasmer 3.8±0.00µs 3.8±0.00µs 0.00%
precise_decimal::mul/wasmer-call-native 939.4±1.72ns 919.2±2.11ns -2.15%
precise_decimal::mul/wasmi 155.8±0.21µs 153.2±0.07µs -1.67%
precise_decimal::mul/wasmi-call-native 10.2±0.05µs 10.0±0.05µs -1.96%
precise_decimal::pow/0 1973.1±6.21ns 1972.0±11.38ns -0.06%
precise_decimal::pow/rust-native 1591.6±7.18ns 1567.3±4.25ns -1.53%
precise_decimal::pow/wasmer 18.0±0.01µs 18.0±0.01µs 0.00%
precise_decimal::pow/wasmer-call-native 2.3±0.00µs 2.3±0.00µs 0.00%
precise_decimal::pow/wasmi 748.2±0.86µs 738.2±1.95µs -1.34%
precise_decimal::pow/wasmi-call-native 17.2±0.06µs 16.7±0.18µs -2.91%
precise_decimal::root/0 64.9±0.04µs 63.7±0.59µs -1.85%
precise_decimal::sub/0 10.6±0.02ns 10.5±0.01ns -0.94%
precise_decimal::to_string/0 789.0±4.45ns 789.2±3.15ns +0.03%
schema::validate_payload 346.1±0.75µs 344.8±1.21µs -0.38%
transaction::radiswap 7.5±0.07ms 7.6±0.08ms +1.33%
transaction::transfer 2.6±0.04ms 2.6±0.00ms 0.00%
transaction_processing::prepare 2.9±0.01ms 3.0±0.00ms +3.45%
transaction_processing::prepare_and_decompile 7.4±0.01ms 7.2±0.01ms -2.70%
transaction_processing::prepare_and_decompile_and_recompile 27.0±0.16ms 26.2±0.09ms -2.96%
transaction_validation::validate_manifest 48.8±0.37µs 48.7±0.09µs -0.20%
transaction_validation::verify_ecdsa 85.2±0.20µs 85.1±0.03µs -0.12%
transaction_validation::verify_ed25519 60.5±0.10µs 60.6±0.17µs +0.17%

@iamyulong iamyulong marked this pull request as ready for review October 11, 2023 16:58
@iamyulong iamyulong force-pushed the feature/transaction-replay branch from d7585a4 to d0b0f00 Compare October 11, 2023 17:06
@iamyulong iamyulong merged commit 37082ff into develop Oct 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants