Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ikpil committed Nov 11, 2023
1 parent e9b34f2 commit 4a80dad
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,19 @@
[![CodeQL](https://github.com/ikpil/DotCompressorBenchmark/actions/workflows/codeql.yml/badge.svg)](https://github.com/ikpil/DotCompressorBenchmark/actions/workflows/codeql.yml)
![Repo Size](https://img.shields.io/github/repo-size/ikpil/DotCompressorBenchmark.svg?colorB=lightgray)
![Languages](https://img.shields.io/github/languages/top/ikpil/DotCompressorBenchmark)

## Introduction
dcbench is an in-memory benchmark of .net compressors

## Benchmark
| Name | Filename | File kB | Comp. MB/s | Decomp. MB/s | Rate |
|-----------------------|-------------|-----------|------------|--------------|--------|
| memcpy | silesia.tar | 206981.00 | 9404.70 | 16149.18 | 100.00 |
| K4os.LZ LL00_FAST | silesia.tar | 206981.00 | 165.00 | 2445.48 | 47.60 |
| K4os.LZ LL12_MAX | silesia.tar | 206981.00 | 3.41 | 2405.24 | 36.45 |
| K4os.LZ LL09_HC | silesia.tar | 206981.00 | 9.90 | 2362.17 | 36.75 |
| K4os.LZ LL03_HC | silesia.tar | 206981.00 | 26.25 | 2272.51 | 38.38 |
| DotFastLZ L2 | silesia.tar | 206981.00 | 73.32 | 382.16 | 47.25 |
| DotFastLZ L1 | silesia.tar | 206981.00 | 71.67 | 380.81 | 49.00 |
| System.Io.Zip Fastest | silesia.tar | 206981.00 | 33.11 | 375.40 | 35.80 |
| System.Io.Zip Optimal | silesia.tar | 206981.00 | 13.51 | 390.04 | 32.25 |
2 changes: 1 addition & 1 deletion src/DotCompressorBenchmark.Tools/Benchmarks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public static BenchmarkResult Roundtrip(string name, string filename, byte[] src
{
var result = new BenchmarkResult();
result.Name = name;
result.FileName = filename;
result.FileName = Path.GetFileName(filename);
result.Times = 5;
result.SourceByteLength = srcBytes.Length;
result.Compression.ElapsedWatch = new Stopwatch();
Expand Down

0 comments on commit 4a80dad

Please sign in to comment.