Skip to content

Commit d1ccdb2

Browse files
authored
Merge pull request #229 from 404Setup/bolt/avx2-offset5-1225911123532623525
⚡ Bolt: Optimize decompression for offset 5 using AVX2
2 parents f144779 + 2d5bc7b commit d1ccdb2

3 files changed

Lines changed: 304 additions & 1464 deletions

File tree

bench_output.txt

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
Finished `bench` profile [optimized] target(s) in 0.06s
2+
Running benches/bench_main.rs (target/release/deps/bench_main-c40c548458fc7066)
3+
Gnuplot not found, using plotters backend
4+
Benchmarking Decompress offset5/libdeflate-rs offset5
5+
Benchmarking Decompress offset5/libdeflate-rs offset5: Warming up for 3.0000 s
6+
Benchmarking Decompress offset5/libdeflate-rs offset5: Collecting 100 samples in estimated 5.2872 s (56k iterations)
7+
Benchmarking Decompress offset5/libdeflate-rs offset5: Analyzing
8+
Decompress offset5/libdeflate-rs offset5
9+
time: [94.263 µs 94.473 µs 94.704 µs]
10+
thrpt: [10.312 GiB/s 10.337 GiB/s 10.360 GiB/s]
11+
Found 13 outliers among 100 measurements (13.00%)
12+
5 (5.00%) high mild
13+
8 (8.00%) high severe

bench_result.txt

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
warning: unused import: `HUFFDEC_END_OF_BLOCK`
2+
--> src/decompress/x86.rs:3:5
3+
|
4+
3 | HUFFDEC_END_OF_BLOCK, HUFFDEC_EXCEPTIONAL, HUFFDEC_LITERAL, HUFFDEC_SUBTABLE_POINTER,
5+
| ^^^^^^^^^^^^^^^^^^^^
6+
|
7+
= note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
8+
9+
warning: constant `OFFSET12_MASKS` is never used
10+
--> src/decompress/x86.rs:70:7
11+
|
12+
70 | const OFFSET12_MASKS: [u8; 48] = [
13+
| ^^^^^^^^^^^^^^
14+
|
15+
= note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
16+
17+
warning: constant `OFFSET10_MASKS` is never used
18+
--> src/decompress/x86.rs:76:7
19+
|
20+
76 | const OFFSET10_MASKS: [u8; 80] = [
21+
| ^^^^^^^^^^^^^^
22+
23+
warning: constant `OFFSET14_MASKS` is never used
24+
--> src/decompress/x86.rs:106:7
25+
|
26+
106 | const OFFSET14_MASKS: [u8; 112] = [
27+
| ^^^^^^^^^^^^^^
28+
29+
warning: `libdeflate` (lib) generated 4 warnings (run `cargo fix --lib -p libdeflate` to apply 1 suggestion)
30+
Finished `bench` profile [optimized] target(s) in 0.08s
31+
Running benches/bench_main.rs (target/release/deps/bench_main-c40c548458fc7066)
32+
Gnuplot not found, using plotters backend
33+
Benchmarking Decompress offset5/libdeflate-rs offset5
34+
Benchmarking Decompress offset5/libdeflate-rs offset5: Warming up for 3.0000 s

0 commit comments

Comments
 (0)