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:77ec01c7a015f99670e7dbcfc62b8b74
Created June 22, 2024 22:54
musli: PGO optimized compared to Release
taskset -c 0 cargo pgo optimize bench -- --workspace --all-features
Benchmarking enc/primitives/musli_json
Benchmarking enc/primitives/musli_json: Warming up for 3.0000 s
Benchmarking enc/primitives/musli_json: Collecting 100 samples in estimated 5.0001 s (41M iterations)
Benchmarking enc/primitives/musli_json: Analyzing
enc/primitives/musli_json
time: [122.12 ns 122.47 ns 122.82 ns]
change: [-26.952% -26.782% -26.606%] (p = 0.00 < 0.05)
Performance has improved.
@zamazan4ik
zamazan4ik / gist:a0ebab1b383a9096b616a8a1e450f86d
Created June 22, 2024 22:10
musli: PGO instrumented compared to Release
taskset -c 0 cargo pgo bench -- --workspace --all-features
Benchmarking enc/primitives/musli_json
Benchmarking enc/primitives/musli_json: Warming up for 3.0000 s
Benchmarking enc/primitives/musli_json: Collecting 100 samples in estimated 5.0006 s (16M iterations)
Benchmarking enc/primitives/musli_json: Analyzing
enc/primitives/musli_json
time: [309.04 ns 309.45 ns 309.97 ns]
change: [+85.191% +85.442% +85.701%] (p = 0.00 < 0.05)
Performance has regressed.
taskset -c 0 cargo bench --workspace --all-features
Running benches/comparison.rs (release/deps/comparison-dc18d0db123bd098)
enc/primitives/musli_json
time: [166.83 ns 166.97 ns 167.10 ns]
Found 2 outliers among 100 measurements (2.00%)
2 (2.00%) high mild
enc/primitives/musli_wire
time: [78.312 ns 78.340 ns 78.372 ns]
Found 7 outliers among 100 measurements (7.00%)
taskset -c 0 cargo bench --workspace
decrypt and verify message/decrypt and verify/10485760
time: [132.29 ms 132.38 ms 132.51 ms]
thrpt: [102.20 MiB/s 102.30 MiB/s 102.37 MiB/s]
Found 6 outliers among 100 measurements (6.00%)
5 (5.00%) high mild
1 (1.00%) high severe
encrypt message/password/12
@zamazan4ik
zamazan4ik / gist:1ab804b086615e991aca8bbfe829f37c
Last active June 22, 2024 09:54
lady-deirdre: PGO optimized compared to Release
taskset -c 0 cargo pgo optimize bench -- --workspace --all-features
Benchmarking Entire Text Parsing/Lady Deirdre (mutable)/Small File
Benchmarking Entire Text Parsing/Lady Deirdre (mutable)/Small File: Warming up for 3.0000 s
Benchmarking Entire Text Parsing/Lady Deirdre (mutable)/Small File: Collecting 100 samples in estimated 6.5840 s (10k iterations)
Benchmarking Entire Text Parsing/Lady Deirdre (mutable)/Small File: Analyzing
Entire Text Parsing/Lady Deirdre (mutable)/Small File
time: [547.68 µs 548.20 µs 548.79 µs]
change: [-10.072% -9.9477% -9.7865%] (p = 0.00 < 0.05)
Performance has improved.
@zamazan4ik
zamazan4ik / gist:544c563492be3df26bcee00a1f816959
Created June 22, 2024 09:37
lady-deirdre: PGO instrumented compared to Release
taskset -c 0 cargo pgo bench -- --workspace --all-features
Running benches/benches.rs (target/x86_64-unknown-linux-gnu/release/deps/benches-0e48d1d87ff2a8d9)
Loading bench data...
Bench data "small-file" with seed 324601853275 loaded from file.
Bench data "large-file" with seed 324601853275 loaded from file.
Benchmarking Entire Text Parsing/Lady Deirdre (mutable)/Small File
Benchmarking Entire Text Parsing/Lady Deirdre (mutable)/Small File: Warming up for 3.0000 s
Warning: Unable to complete 100 samples in 5.0s. You may wish to increase target time to 5.2s, enable flat sampling, or reduce sample count to 60.
taskset -c 0 cargo bench --workspace --all-features
Entire Text Parsing/Lady Deirdre (mutable)/Small File
time: [608.94 µs 609.39 µs 609.90 µs]
Found 11 outliers among 100 measurements (11.00%)
8 (8.00%) high mild
3 (3.00%) high severe
Entire Text Parsing/Lady Deirdre (mutable)/Large File
time: [15.556 ms 15.580 ms 15.604 ms]
Found 2 outliers among 100 measurements (2.00%)
@zamazan4ik
zamazan4ik / gist:c5a8657218c22eeb4ac5edce0a6b3cf0
Created June 21, 2024 07:14
html5ever: PGO optimized compared to Release
taskset -c 0 cargo pgo optimize bench -- --workspace --all-features
Running benches/html5ever.rs (x86_64-unknown-linux-gnu/release/deps/html5ever-12e473d0184d56e7)
Benchmarking html tokenizing lipsum.html
Benchmarking html tokenizing lipsum.html: Warming up for 3.0000 s
Benchmarking html tokenizing lipsum.html: Collecting 100 samples in estimated 5.0315 s (621k iterations)
Benchmarking html tokenizing lipsum.html: Analyzing
html tokenizing lipsum.html
time: [7.9912 µs 8.0110 µs 8.0325 µs]
change: [-7.9016% -7.2849% -6.7210%] (p = 0.00 < 0.05)
@zamazan4ik
zamazan4ik / gist:2c1caae4675577766b745c7436c62697
Created June 21, 2024 07:10
html5ever: PGO instrumented compared to Release
taskset -c 0 cargo pgo bench -- --workspace --all-features
Running benches/html5ever.rs (x86_64-unknown-linux-gnu/release/deps/html5ever-12e473d0184d56e7)
Benchmarking html tokenizing lipsum.html
Benchmarking html tokenizing lipsum.html: Warming up for 3.0000 s
Benchmarking html tokenizing lipsum.html: Collecting 100 samples in estimated 5.0015 s (343k iterations)
Benchmarking html tokenizing lipsum.html: Analyzing
html tokenizing lipsum.html
time: [14.419 µs 14.436 µs 14.452 µs]
change: [+65.374% +66.308% +67.018%] (p = 0.00 < 0.05)
taskset -c 0 cargo bench --workspace --all-features
Running benches/html5ever.rs (target/release/deps/html5ever-c9043f25454adf8e)
html tokenizing lipsum.html
time: [8.5876 µs 8.5991 µs 8.6115 µs]
Found 7 outliers among 100 measurements (7.00%)
3 (3.00%) high mild
4 (4.00%) high severe
html tokenizing lipsum-zh.html