这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@folkertdev
Copy link
Member

another small step, which in my machine reaches parity with zlib-ng and zlib-chromium

Benchmark 1 (156 runs): ./uncompress-baseline rs silesia-small.tar.gz
  measurement          mean ± σ            min … max           outliers         delta
  wall_time          32.1ms ±  347us    31.3ms … 33.3ms          2 ( 1%)        0%
  peak_rss           24.1MB ± 57.9KB    24.0MB … 24.1MB          0 ( 0%)        0%
  cpu_cycles         92.6M  ±  475K     92.2M  … 95.9M          16 (10%)        0%
  instructions        291M  ±  334       291M  …  291M           3 ( 2%)        0%
  cache_references   2.13M  ± 25.3K     2.09M  … 2.24M           1 ( 1%)        0%
  cache_misses       45.2K  ± 2.40K     38.4K  … 52.8K           8 ( 5%)        0%
  branch_misses       953K  ± 1.01K      951K  …  959K           9 ( 6%)        0%
Benchmark 2 (158 runs): ./target/release/examples/blogpost-uncompress rs silesia-small.tar.gz
  measurement          mean ± σ            min … max           outliers         delta
  wall_time          31.6ms ±  322us    30.8ms … 32.7ms          1 ( 1%)        ⚡-  1.5% ±  0.2%
  peak_rss           24.1MB ± 64.9KB    23.9MB … 24.1MB          0 ( 0%)          -  0.1% ±  0.1%
  cpu_cycles         90.9M  ±  385K     90.5M  … 93.1M          11 ( 7%)        ⚡-  1.9% ±  0.1%
  instructions        279M  ±  275       279M  …  279M           0 ( 0%)        ⚡-  4.0% ±  0.0%
  cache_references   2.10M  ± 21.4K     2.06M  … 2.18M           2 ( 1%)        ⚡-  1.6% ±  0.2%
  cache_misses       33.4K  ± 2.22K     29.0K  … 46.8K           2 ( 1%)        ⚡- 26.2% ±  1.1%
  branch_misses       953K  ±  598       952K  …  957K           4 ( 3%)          -  0.0% ±  0.0%

@folkertdev folkertdev force-pushed the inflate-custom-writer branch from 677a06d to d8d44c1 Compare September 14, 2024 21:33
@folkertdev folkertdev merged commit 19691b3 into main Sep 15, 2024
@folkertdev folkertdev deleted the inflate-custom-writer branch September 15, 2024 13:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants