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
cargo pgo bolt build --with-pgo
[2024-06-03T10:16:24Z INFO cargo_pgo::bolt::instrument] BOLT profile directory will be cleared.
[2024-06-03T10:16:24Z INFO cargo_pgo::bolt::instrument] BOLT profiles will be stored into /home/zamazan4ik/open_source/Amber/target/bolt-profiles.
[2024-06-03T10:16:24Z INFO cargo_pgo::pgo::optimize] Found 1 PGO profile file with total size 330.87 KiB at /home/zamazan4ik/open_source/Amber/target/pgo-profiles.
[2024-06-03T10:16:24Z INFO cargo_pgo::pgo::optimize] Merged PGO profile(s) to /home/zamazan4ik/open_source/Amber/target/pgo-profiles/merged-e26a346e7c2abfe7fa5a10459305bf907bf836e635c89d9ec791a730ee8017f9.profdata.
Compiling utf8parse v0.2.1
Compiling colorchoice v1.0.1
Compiling anstyle-query v1.0.3
Compiling anstyle v1.0.7
Compiling is_terminal_polyfill v1.70.0
@zamazan4ik
zamazan4ik / gist:01699361bfbcfa96fc505d091084a4f2
Created May 23, 2024 10:03
genson-rs: PGO optimized compared to Release
Running benches/build_schema_bench.rs (x86_64-unknown-linux-gnu/release/deps/build_schema_bench-945c292176b30b65)
Benchmarking build single json object schema TINY
Benchmarking build single json object schema TINY: Warming up for 3.0000 s
Benchmarking build single json object schema TINY: Collecting 100 samples in estimated 5.1251 s (96k iterations)
Benchmarking build single json object schema TINY: Analyzing
build single json object schema TINY
time: [53.406 µs 53.436 µs 53.465 µs]
change: [-16.993% -16.877% -16.765%] (p = 0.00 < 0.05)
Performance has improved.
Found 1 outliers among 100 measurements (1.00%)
@zamazan4ik
zamazan4ik / gist:1b98f888fc596b4fc682ffb4754a0a8d
Created May 23, 2024 10:03
genson-rs: PGO instrumented compared to Release
Running benches/build_schema_bench.rs (x86_64-unknown-linux-gnu/release/deps/build_schema_bench-945c292176b30b65)
Benchmarking build single json object schema TINY
Benchmarking build single json object schema TINY: Warming up for 3.0000 s
Benchmarking build single json object schema TINY: Collecting 100 samples in estimated 5.3069 s (50k iterations)
Benchmarking build single json object schema TINY: Analyzing
build single json object schema TINY
time: [104.76 µs 104.78 µs 104.80 µs]
change: [+63.017% +63.224% +63.410%] (p = 0.00 < 0.05)
Performance has regressed.
Found 9 outliers among 100 measurements (9.00%)
Running benches/build_schema_bench.rs (target/release/deps/build_schema_bench-4efb2f5f5efadbeb)
build single json object schema TINY
time: [64.240 µs 64.260 µs 64.277 µs]
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high severe
build single json object schema SMALL
time: [576.00 µs 576.09 µs 576.19 µs]
Found 9 outliers among 100 measurements (9.00%)
2 (2.00%) low severe
@zamazan4ik
zamazan4ik / gist:b1161afc4167a094bfe896610f2a9948
Created May 12, 2024 23:15
nom: PGO optimized compared to Release
Running benches/arithmetic.rs (/home/zamazan4ik/open_source/nom/target/x86_64-unknown-linux-gnu/release/deps/arithmetic-a69b648114f66a06)
Benchmarking arithmetic
Benchmarking arithmetic: Warming up for 3.0000 s
Benchmarking arithmetic: Collecting 100 samples in estimated 5.0000 s (27M iterations)
Benchmarking arithmetic: Analyzing
arithmetic time: [188.24 ns 188.27 ns 188.32 ns]
change: [-6.9818% -6.9207% -6.8706%] (p = 0.00 < 0.05)
Performance has improved.
Found 15 outliers among 100 measurements (15.00%)
5 (5.00%) high mild
@zamazan4ik
zamazan4ik / gist:09e61920cbbb68caa2979cb20d1ebe7a
Created May 12, 2024 23:04
nom: PGO instrumented compared to Release
Running benches/arithmetic.rs (/home/zamazan4ik/open_source/nom/target/x86_64-unknown-linux-gnu/release/deps/arithmetic-a69b648114f66a06)
Benchmarking arithmetic
Benchmarking arithmetic: Warming up for 3.0000 s
Benchmarking arithmetic: Collecting 100 samples in estimated 5.0010 s (17M iterations)
Benchmarking arithmetic: Analyzing
arithmetic time: [288.54 ns 288.57 ns 288.61 ns]
change: [+42.582% +42.675% +42.750%] (p = 0.00 < 0.05)
Performance has regressed.
Found 7 outliers among 100 measurements (7.00%)
5 (5.00%) high mild
Running benches/arithmetic.rs (/home/zamazan4ik/open_source/nom/target/release/deps/arithmetic-cb679a29267cc6e8)
arithmetic time: [202.14 ns 202.23 ns 202.35 ns]
Found 15 outliers among 100 measurements (15.00%)
7 (7.00%) high mild
8 (8.00%) high severe
Running benches/http.rs (/home/zamazan4ik/open_source/nom/target/release/deps/http-2ad1a7e88c4b66dc)
http/parse/291 time: [367.57 ns 368.01 ns 368.45 ns]
thrpt: [753.20 MiB/s 754.10 MiB/s 755.01 MiB/s]
Found 3 outliers among 100 measurements (3.00%)
cargo bench
Updating crates.io index
Downloaded clap_lex v0.3.2
Downloaded fast_image_resize v2.7.3
Downloaded palette_derive v0.7.3
Downloaded once_cell v1.15.0
Downloaded phf_macros v0.11.1
Downloaded palette v0.7.3
Downloaded png v0.17.6
Downloaded regex v1.7.1
@zamazan4ik
zamazan4ik / gist:04d5f78ac0c538f6b5eb6a6061bf678c
Created May 4, 2024 15:54
zune-image: PGO optimized compared to Release
Running benches/decode_hdr.rs (/home/zamazan4ik/open_source/zune-image/target/x86_64-unknown-linux-gnu/release/deps/decode_hdr-c6e3f7be6ffc21f7)
Benchmarking hdr: Simple decode(memorial-hdr)/image-rs/hdr
Benchmarking hdr: Simple decode(memorial-hdr)/image-rs/hdr: Warming up for 3.0000 s
Benchmarking hdr: Simple decode(memorial-hdr)/image-rs/hdr: Collecting 100 samples in estimated 20.580 s (1400 iterations)
Benchmarking hdr: Simple decode(memorial-hdr)/image-rs/hdr: Analyzing
hdr: Simple decode(memorial-hdr)/image-rs/hdr
time: [14.695 ms 14.703 ms 14.718 ms]
thrpt: [87.051 MiB/s 87.143 MiB/s 87.192 MiB/s]
change:
time: [+5.4658% +5.5287% +5.6396%] (p = 0.00 < 0.05)
@zamazan4ik
zamazan4ik / gist:c45c1517f260c76e69d7c25b37f0d55a
Created May 4, 2024 15:08
zune-image: PGO instrumented compared to Release
Running benches/decode_hdr.rs (/home/zamazan4ik/open_source/zune-image/target/x86_64-unknown-linux-gnu/release/deps/decode_hdr-c6e3f7be6ffc21f7)
Benchmarking hdr: Simple decode(memorial-hdr)/image-rs/hdr
Benchmarking hdr: Simple decode(memorial-hdr)/image-rs/hdr: Warming up for 3.0000 s
Benchmarking hdr: Simple decode(memorial-hdr)/image-rs/hdr: Collecting 100 samples in estimated 21.898 s (1000 iterations)
Benchmarking hdr: Simple decode(memorial-hdr)/image-rs/hdr: Analyzing
hdr: Simple decode(memorial-hdr)/image-rs/hdr
time: [21.918 ms 21.930 ms 21.949 ms]
thrpt: [58.375 MiB/s 58.426 MiB/s 58.455 MiB/s]
change:
time: [+57.316% +57.397% +57.531%] (p = 0.00 < 0.05)