{"id":21480438,"url":"https://github.com/jsnell/zlib-bench","last_synced_at":"2025-07-15T12:31:57.634Z","repository":{"id":19298568,"uuid":"22535967","full_name":"jsnell/zlib-bench","owner":"jsnell","description":"Benchmark script for comparing different versions of zlib","archived":false,"fork":false,"pushed_at":"2017-07-18T23:33:32.000Z","size":6253,"stargazers_count":11,"open_issues_count":1,"forks_count":6,"subscribers_count":5,"default_branch":"master","last_synced_at":"2023-03-12T07:37:37.936Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jsnell.png","metadata":{"files":{"readme":"README.org","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-02T01:47:00.000Z","updated_at":"2022-03-30T11:43:17.000Z","dependencies_parsed_at":"2022-09-01T19:31:29.875Z","dependency_job_id":null,"html_url":"https://github.com/jsnell/zlib-bench","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsnell%2Fzlib-bench","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsnell%2Fzlib-bench/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsnell%2Fzlib-bench/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jsnell%2Fzlib-bench/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jsnell","download_url":"https://codeload.github.com/jsnell/zlib-bench/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":226038783,"owners_count":17564046,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-23T12:15:09.206Z","updated_at":"2024-11-23T12:15:09.936Z","avatar_url":"https://github.com/jsnell.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"#+TITLE: README\n#+AUTHOR: Juho Snellman\n#+EMAIL: jsnell@iki.fi\n\nA small benchmark suite for testing the compression / decompression speed and\ncompression ratios of different versions of zlib.\n\n** Usage\n\n*** Running the benchmark\n\nRun the benchmark with a command like the following:\n\n#+BEGIN_EXAMPLE\n  perl bench.pl --output-format=json --output-file=results.json\n#+END_EXAMPLE\n\nThis will store the results in a json file for later analysis. \n\n*** Pretty-print the results\n\nTo pretty-print the results of an earlier run stored in a json file, use\nthe =--read-json= flag.\n\n#+BEGIN_EXAMPLE\n  perl bench.pl --read-json=results.json\n#+END_EXAMPLE\n\n*** Changing which versions are tested against\n\nTo change the versions which are tested against, you need to edit the\n=@versions= variable in the source code (either the git repository urls\nor the version hashes). Note that if you change the definition of existing\nentries under versions (or if you e.g. upgrade the compiler), you'll probably\nwant to run with the =--recompile= flag the next time.\n\n*** Adding new input files to the benchmark \n\nAny files starting with a small letter in the corpus/ directory will\nbe used as inputs, each one creating a new benchmark family\n(decompression, compression at each specified compression level). The\nname of the file is used as the benchmark id in reports.\n\n*** Full options\n\n#+BEGIN_EXAMPLE\n  --help                 Print a help message\n  --compress-iters=...   Number of times each file is compressed in one\n                         benchmark run\n  --compress-levels=...  Comma-separated list of compression levels to use\n  --decompress-iters=... Number of times each file is compressed in one\n                         benchmark run\n  --output-file=...      File (- for stdout) where results are printed to\n  --output-format=...    Format to output results in (pretty, json)\n  --read-json=...        Don't run benchmarks, but read results from this file\n  --recompile            If passed, recompile all zlib versions before test\n  --runs=...             Number of runs for each benchmark\n  --quiet                Don't print progress reports to STDERR\n#+END_EXAMPLE\n\n** Example output\n\n#+BEGIN_EXAMPLE\n                     baseline               cloudflare             intel                  \ncompress executable -5 (x 10)\n  Compression ratio:  0.33                   0.33                   0.34                  \n Execution time [s]:  2.66 ± 0.02 (100.00%)  2.17 ± 0.02 ( 81.70%)  1.49 ± 0.01 ( 56.07%) \ncompress html -5 (x 10)\n  Compression ratio:  0.34                   0.34                   0.33                  \n Execution time [s]:  1.62 ± 0.01 (100.00%)  1.31 ± 0.02 ( 81.18%)  0.85 ± 0.01 ( 52.81%) \ncompress jpeg -5 (x 10)\n  Compression ratio:  1.00                   1.00                   1.00                  \n Execution time [s]:  0.93 ± 0.01 (100.00%)  0.91 ± 0.01 ( 97.45%)  1.08 ± 0.01 (115.38%) \ndecompress executable (x 50)\n Execution time [s]:  1.96 ± 0.00 (100.00%)  1.96 ± 0.01 (100.17%)  1.93 ± 0.01 ( 98.56%) \ndecompress html (x 50)\n Execution time [s]:  1.13 ± 0.00 (100.00%)  1.13 ± 0.00 ( 99.96%)  1.11 ± 0.01 ( 97.56%) \ndecompress jpeg (x 50)\n Execution time [s]:  0.29 ± 0.00 (100.00%)  0.29 ± 0.00 (102.03%)  0.29 ± 0.00 (103.15%) \n#+END_EXAMPLE\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsnell%2Fzlib-bench","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjsnell%2Fzlib-bench","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjsnell%2Fzlib-bench/lists"}