Skip to content

Instantly share code, notes, and snippets.

View zamazan4ik's full-sized avatar
🐰
Let's dig into loosely-coupled event-driven systems

Alexander Zaitsev zamazan4ik

🐰
Let's dig into loosely-coupled event-driven systems
View GitHub Profile
@zamazan4ik
zamazan4ik / gist:663751b2d5336b2c54b60a9b1d470cae
Created September 21, 2024 22:15
raptorq: PGO optimized compared to Release
Running benches/codec_benchmark.rs (target/x86_64-unknown-linux-gnu/release/deps/codec_benchmark-14169a542b3a3089)
WARNING: HTML report generation will become a non-default optional feature in Criterion.rs 0.4.0.
This feature is being moved to cargo-criterion (https://github.com/bheisler/cargo-criterion) and will be optional in a future version of Criterion.rs. To silence this warning, eithe
Benchmarking Symbol mulassign_scalar()/
Benchmarking Symbol mulassign_scalar()/: Warming up for 3.0000 s
Benchmarking Symbol mulassign_scalar()/: Collecting 100 samples in estimated 5.0001 s (197M iterations)
Benchmarking Symbol mulassign_scalar()/: Analyzing
Symbol mulassign_scalar()/
@zamazan4ik
zamazan4ik / gist:536bbff5a246996960c3bb2491e0bf9b
Created September 21, 2024 22:10
raptorq: PGO instrumented compared to Release
Running benches/codec_benchmark.rs (target/x86_64-unknown-linux-gnu/release/deps/codec_benchmark-14169a542b3a3089)
WARNING: HTML report generation will become a non-default optional feature in Criterion.rs 0.4.0.
This feature is being moved to cargo-criterion (https://github.com/bheisler/cargo-criterion) and will be optional in a future version of Criterion.rs. To silence this warning, eithe
Benchmarking Symbol mulassign_scalar()/
Benchmarking Symbol mulassign_scalar()/: Warming up for 3.0000 s
Benchmarking Symbol mulassign_scalar()/: Collecting 100 samples in estimated 5.0001 s (114M iterations)
Benchmarking Symbol mulassign_scalar()/: Analyzing
Symbol mulassign_scalar()/
time: [43.576 ns 43.633 ns 43.693 ns]
Running benches/codec_benchmark.rs (target/release/deps/codec_benchmark-14b90cb555383273)
WARNING: HTML report generation will become a non-default optional feature in Criterion.rs 0.4.0.
This feature is being moved to cargo-criterion (https://github.com/bheisler/cargo-criterion) and will be optional in a future version of Criterion.rs. To silence this warning, eithe
Symbol mulassign_scalar()/
time: [24.522 ns 24.531 ns 24.540 ns]
thrpt: [19.431 GiB/s 19.438 GiB/s 19.445 GiB/s]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severe
Running benches/diff_bench.rs (target/release/deps/diff_bench-bd75c6022f447e58)
bench_diff_lines/unchanged/1k
time: [559.39 µs 560.29 µs 561.53 µs]
Found 8 outliers among 100 measurements (8.00%)
2 (2.00%) high mild
6 (6.00%) high severe
bench_diff_lines/modified/1k
time: [4.1690 ms 4.1785 ms 4.1906 ms]
Found 5 outliers among 100 measurements (5.00%)
2 (2.00%) high mild
@zamazan4ik
zamazan4ik / gist:6814e5012838027e9dafc485181021e5
Created September 17, 2024 18:52
jj: PGO instrumented compared to Release
Running benches/diff_bench.rs (target/x86_64-unknown-linux-gnu/release/deps/diff_bench-0035b27d15222294)
Benchmarking bench_diff_lines/unchanged/1k
Benchmarking bench_diff_lines/unchanged/1k: Warming up for 3.0000 s
Benchmarking bench_diff_lines/unchanged/1k: Collecting 100 samples in estimated 6.9102 s (10k iterations)
Benchmarking bench_diff_lines/unchanged/1k: Analyzing
bench_diff_lines/unchanged/1k
time: [683.57 µs 684.15 µs 684.81 µs]
change: [+21.933% +22.355% +22.986%] (p = 0.00 < 0.05)
Performance has regressed.
Found 6 outliers among 100 measurements (6.00%)
@zamazan4ik
zamazan4ik / gist:777a22a0bec03a3b0ef226d0e29c04ce
Created September 17, 2024 18:51
jj: PGO optimized compared to Release
Running benches/diff_bench.rs (target/x86_64-unknown-linux-gnu/release/deps/diff_bench-0035b27d15222294)
Benchmarking bench_diff_lines/unchanged/1k
Benchmarking bench_diff_lines/unchanged/1k: Warming up for 3.0000 s
Benchmarking bench_diff_lines/unchanged/1k: Collecting 100 samples in estimated 6.8342 s (15k iterations)
Benchmarking bench_diff_lines/unchanged/1k: Analyzing
bench_diff_lines/unchanged/1k
time: [451.39 µs 451.54 µs 451.70 µs]
change: [-19.508% -19.351% -19.228%] (p = 0.00 < 0.05)
Performance has improved.
Found 7 outliers among 100 measurements (7.00%)
@zamazan4ik
zamazan4ik / gist:aff245bf2e85ddbc70bfe6e3d9de0edf
Created September 17, 2024 15:56
grex: PGO optimized compared to Release
Running benches/benchmark.rs (target/x86_64-unknown-linux-gnu/release/deps/benchmark-53bb399bc1c764dc)
Benchmarking grex with default settings
Benchmarking grex with default settings: Warming up for 3.0000 s
Benchmarking grex with default settings: Collecting 100 samples in estimated 6.7029 s (300 iterations)
Benchmarking grex with default settings: Analyzing
grex with default settings
time: [22.315 ms 22.323 ms 22.334 ms]
change: [-19.635% -19.575% -19.515%] (p = 0.00 < 0.05)
Performance has improved.
Found 11 outliers among 100 measurements (11.00%)
@zamazan4ik
zamazan4ik / gist:998982ab43abfe46d2f71f6f94fd51b6
Created September 17, 2024 15:50
grex: PGO instrumented compared to Release
Running benches/benchmark.rs (target/x86_64-unknown-linux-gnu/release/deps/benchmark-53bb399bc1c764dc)
Benchmarking grex with default settings
Benchmarking grex with default settings: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase target time to 7.0s, or reduce sample count to 70.
Benchmarking grex with default settings: Collecting 100 samples in estimated 6.9591 s (100 iterations)
Benchmarking grex with default settings: Analyzing
grex with default settings
time: [69.425 ms 69.450 ms 69.477 ms]
change: [+150.03% +150.21% +150.38%] (p = 0.00 < 0.05)
Running benches/benchmark.rs (target/release/deps/benchmark-f29128c3e8149681)
grex with default settings
time: [27.740 ms 27.757 ms 27.774 ms]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
grex with conversion of repetitions
time: [32.027 ms 32.045 ms 32.062 ms]
grex with conversion of digits
@zamazan4ik
zamazan4ik / gist:8a7de2b8d6cc1e265d0111f8ce82e2d9
Created September 17, 2024 13:36
raptorq benchmark failure
cargo bench --features benchmarking
<useless lines are skipped>
error[E0599]: no function or associated item named `new2` found for struct `SourceBlockEncoder` in the current scope
--> benches/decode_benchmark.rs:25:43
|
25 | let encoder = SourceBlockEncoder::new2(1, &config, &data);
| ^^^^ function or associated item not found in `SourceBlockEncoder`
|