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

Fuzzer: some fixes and improvements #1608

Merged
merged 7 commits into from
Oct 6, 2023

Conversation

lrubasze
Copy link
Contributor

@lrubasze lrubasze commented Oct 4, 2023

  • Fix artifact upload
  • Fix: detect target in process_fuzz_results.sh
  • Add list-fuzz-targets.sh
  • Detect available targets in fuzz.sh
  • Do not expect afl binary if 'raw' input mode set
  • Remove warning
  • Add royalty_state target to fuzzing workflow

@github-actions
Copy link

github-actions bot commented Oct 4, 2023

Benchmark for b8f5923

Click to view benchmark
Test Base PR %
costing::bench_prepare_wasm 81.4±0.47ms 81.1±0.43ms -0.37%
costing::decode_sbor 16.7±0.11µs 16.8±0.12µs +0.60%
costing::decode_sbor_bytes 48.7±0.30µs 46.8±0.13µs -3.90%
costing::deserialize_wasm 1427.1±6.81µs 1440.8±3.74µs +0.96%
costing::instantiate_flash_loan 4.2±0.45ms 6.0±0.05ms +42.86%
costing::instantiate_radiswap 5.8±0.09ms 5.9±0.07ms +1.72%
costing::spin_loop 27.8±0.31ms 27.4±0.27ms -1.44%
costing::validate_sbor_payload 31.7±0.10µs 32.2±4.59µs +1.58%
costing::validate_sbor_payload_bytes 437.7±1.66ns 418.8±1.88ns -4.32%
costing::validate_secp256k1 87.4±0.08µs 87.4±0.03µs 0.00%
costing::validate_wasm 43.8±0.26ms 44.1±0.13ms +0.68%
decimal::add/0 9.3±0.00ns 9.3±0.01ns 0.00%
decimal::add/rust-native 10.9±0.04ns 11.0±0.00ns +0.92%
decimal::add/wasmer 137.2±0.73ns 131.1±0.57ns -4.45%
decimal::add/wasmer-call-native 554.1±1.04ns 552.9±1.64ns -0.22%
decimal::add/wasmi 889.9±2.21ns 884.4±4.25ns -0.62%
decimal::add/wasmi-call-native 8.4±0.01µs 9.1±0.03µs +8.33%
decimal::div/0 174.2±0.29ns 174.3±0.29ns +0.06%
decimal::from_string/0 174.5±0.19ns 174.7±0.30ns +0.11%
decimal::mul/0 126.4±0.11ns 126.1±0.86ns -0.24%
decimal::mul/rust-native 122.7±0.17ns 121.4±0.08ns -1.06%
decimal::mul/wasmer 1656.2±1.24ns 1620.9±2.20ns -2.13%
decimal::mul/wasmer-call-native 686.5±0.93ns 675.4±1.06ns -1.62%
decimal::mul/wasmi 69.7±0.07µs 69.8±0.19µs +0.14%
decimal::mul/wasmi-call-native 8.6±0.01µs 8.5±0.01µs -1.16%
decimal::pow/0 585.9±0.45ns 586.4±0.42ns +0.09%
decimal::pow/rust-native 578.2±0.77ns 577.8±1.28ns -0.07%
decimal::pow/wasmer 7.1±0.01µs 7.2±0.01µs +1.41%
decimal::pow/wasmer-call-native 1093.0±0.84ns 1095.6±0.82ns +0.24%
decimal::pow/wasmi 328.2±0.40µs 331.2±1.22µs +0.91%
decimal::pow/wasmi-call-native 9.5±0.05µs 9.5±0.01µs 0.00%
decimal::root/0 9.1±0.01µs 9.0±0.01µs -1.10%
decimal::sub/0 9.4±0.01ns 9.4±0.08ns 0.00%
decimal::to_string/0 537.3±1.51ns 536.7±1.26ns -0.11%
precise_decimal::add/0 10.2±0.05ns 10.2±0.05ns 0.00%
precise_decimal::add/rust-native 12.5±0.02ns 12.5±0.01ns 0.00%
precise_decimal::add/wasmer 139.9±0.07ns 136.0±3.95ns -2.79%
precise_decimal::add/wasmer-call-native 572.1±0.56ns 572.1±1.29ns 0.00%
precise_decimal::add/wasmi 1178.8±5.82ns 1167.6±14.09ns -0.95%
precise_decimal::add/wasmi-call-native 8.9±0.01µs 8.8±0.06µs -1.12%
precise_decimal::div/0 342.4±0.40ns 340.0±3.82ns -0.70%
precise_decimal::from_string/0 233.9±0.29ns 233.1±1.23ns -0.34%
precise_decimal::mul/0 366.3±0.31ns 365.7±1.17ns -0.16%
precise_decimal::mul/rust-native 338.5±0.32ns 339.1±0.80ns +0.18%
precise_decimal::mul/wasmer 3.9±0.00µs 3.8±0.00µs -2.56%
precise_decimal::mul/wasmer-call-native 951.4±0.81ns 933.7±1.06ns -1.86%
precise_decimal::mul/wasmi 180.3±0.23µs 178.6±0.35µs -0.94%
precise_decimal::mul/wasmi-call-native 9.6±0.63µs 9.3±0.05µs -3.12%
precise_decimal::pow/0 1991.2±7.68ns 1985.1±4.86ns -0.31%
precise_decimal::pow/rust-native 1580.3±2.07ns 1578.1±2.74ns -0.14%
precise_decimal::pow/wasmer 17.9±0.01µs 18.1±0.02µs +1.12%
precise_decimal::pow/wasmer-call-native 2.3±0.00µs 2.4±0.00µs +4.35%
precise_decimal::pow/wasmi 863.4±2.55µs 855.4±1.25µs -0.93%
precise_decimal::pow/wasmi-call-native 17.6±0.06µs 17.7±0.15µs +0.57%
precise_decimal::root/0 63.6±0.04µs 62.7±0.12µs -1.42%
precise_decimal::sub/0 10.4±0.12ns 10.4±0.03ns 0.00%
precise_decimal::to_string/0 798.9±1.53ns 791.8±2.35ns -0.89%
schema::validate_payload 326.5±0.34µs 332.0±2.48µs +1.68%
transaction::radiswap 8.1±0.07ms 8.2±0.05ms +1.23%
transaction::transfer 3.0±0.00ms 3.0±0.00ms 0.00%
transaction_processing::prepare 3.0±0.01ms 3.1±0.01ms +3.33%
transaction_processing::prepare_and_decompile 7.4±0.02ms 7.3±0.03ms -1.35%
transaction_processing::prepare_and_decompile_and_recompile 26.9±0.77ms 27.0±0.11ms +0.37%
transaction_validation::validate_manifest 48.8±0.03µs 49.0±0.07µs +0.41%
transaction_validation::verify_ecdsa 85.0±0.09µs 85.2±0.33µs +0.24%
transaction_validation::verify_ed25519 60.5±0.07µs 60.8±0.14µs +0.50%

@lrubasze lrubasze merged commit a390930 into develop Oct 6, 2023
25 checks passed
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