Skip to content

Instantly share code, notes, and snippets.

@zamazan4ik
Created March 17, 2024 00:31
Show Gist options
  • Save zamazan4ik/f5959d668063103f5a957af6b4ac206c to your computer and use it in GitHub Desktop.
Save zamazan4ik/f5959d668063103f5a957af6b4ac206c to your computer and use it in GitHub Desktop.
ada-url Rust: PGO instrumented
CXX=clang++ CXXFLAGS="-fprofile-generate=/home/zamazan4ik/open_source/ada-url-rust/target/pgo_profiles_clang" cargo pgo bench
[2024-03-16T23:51:13Z INFO cargo_pgo::pgo::instrument] PGO profile directory will be cleared.
[2024-03-16T23:51:13Z INFO cargo_pgo::pgo::instrument] PGO profiles will be stored into /home/zamazan4ik/open_source/ada-url-rust/target/pgo-profiles.
Compiling tinyvec_macros v0.1.1
Compiling ciborium-io v0.2.1
Compiling anstyle v1.0.2
Compiling ryu v1.0.15
Compiling linux-raw-sys v0.4.5
Compiling clap_lex v0.5.1
Compiling itoa v1.0.9
Compiling regex-syntax v0.8.2
Compiling bitflags v2.4.0
Compiling half v1.8.2
Compiling serde v1.0.188
Compiling rustix v0.38.10
Compiling serde_json v1.0.105
Compiling either v1.9.0
Compiling percent-encoding v2.3.0
Compiling same-file v1.0.6
Compiling unicode-bidi v0.3.13
Compiling cast v0.3.0
Compiling num-traits v0.2.16
Compiling anes v0.1.6
Compiling oorandom v11.1.3
Compiling once_cell v1.18.0
Compiling tinyvec v1.6.0
Compiling ada-url v2.2.1 (/home/zamazan4ik/open_source/ada-url-rust)
Compiling walkdir v2.3.3
Compiling form_urlencoded v1.2.0
Compiling itertools v0.10.5
Compiling clap_builder v4.4.1
Compiling ciborium-ll v0.2.1
Compiling unicode-normalization v0.1.22
Compiling is-terminal v0.4.9
Compiling regex-automata v0.4.3
Compiling idna v0.4.0
Compiling criterion-plot v0.5.0
Compiling url v2.4.1
Compiling clap v4.4.1
Compiling ciborium v0.2.1
Compiling regex v1.10.2
Compiling tinytemplate v1.2.1
Compiling criterion v0.5.1
Finished bench [optimized] target(s) in 9.15s
[2024-03-16T23:51:22Z INFO cargo_pgo::pgo::instrument] PGO instrumentation build finished successfully.
Running unittests src/lib.rs (target/x86_64-unknown-linux-gnu/release/deps/ada_url-adb87120f91501d1)
running 11 tests
test idna::tests::ascii_should_work ... ignored
test idna::tests::unicode_should_work ... ignored
test test::can_parse_simple_url ... ignored
test test::scheme_types ... ignored
test test::should_clone ... ignored
test test::should_compare_urls ... ignored
test test::should_display_serialization ... ignored
test test::should_order_alphabetically ... ignored
test test::should_parse_simple_url ... ignored
test test::try_from_err ... ignored
test test::try_from_ok ... ignored
test result: ok. 0 passed; 0 failed; 11 ignored; 0 measured; 0 filtered out; finished in 0.00s
Running bench/parse.rs (target/x86_64-unknown-linux-gnu/release/deps/parse-8c2517cab43aef8c)
Benchmarking parse/ada_url
Benchmarking parse/ada_url: Warming up for 3.0000 s
Benchmarking parse/ada_url: Collecting 100 samples in estimated 5.0041 s (2.0M iterations)
Benchmarking parse/ada_url: Analyzing
parse/ada_url time: [2.5412 µs 2.5421 µs 2.5428 µs]
thrpt: [303.04 MiB/s 303.13 MiB/s 303.23 MiB/s]
change:
time: [+6.7397% +6.8218% +6.9044%] (p = 0.00 < 0.05)
thrpt: [-6.4585% -6.3862% -6.3141%]
Performance has regressed.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
Benchmarking parse/url
Benchmarking parse/url: Warming up for 3.0000 s
Benchmarking parse/url: Collecting 100 samples in estimated 5.0161 s (288k iterations)
Benchmarking parse/url: Analyzing
parse/url time: [17.412 µs 17.417 µs 17.423 µs]
thrpt: [44.227 MiB/s 44.241 MiB/s 44.255 MiB/s]
change:
time: [+96.334% +96.430% +96.524%] (p = 0.00 < 0.05)
thrpt: [-49.116% -49.091% -49.066%]
Performance has regressed.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment