https://github.com/abordage/html-min-benchmark
https://github.com/abordage/html-min-benchmark
benchmark html-minification html-minifier html-minify
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/abordage/html-min-benchmark
- Owner: abordage
- Created: 2022-06-12T14:00:57.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-07-08T01:17:28.000Z (almost 2 years ago)
- Last Synced: 2024-07-08T02:34:09.566Z (almost 2 years ago)
- Topics: benchmark, html-minification, html-minifier, html-minify
- Language: HTML
- Homepage: https://github.com/abordage/html-min
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HtmlMin Benchmark
Please, suggest other packages to compare!
## Comparison [abordage/html-min](https://github.com/abordage/html-min) with [voku/html-min](https://github.com/voku/HtmlMin)
| benchmark | subject | revs | its | mode | mem_peak |
|-------------------|----------------------|------| --- |--------------|----------|
| TimeConsumerBench | benchAbordageHtmlMin | 100 | 3 | **0.221ms** | 1.535mb |
| TimeConsumerBench | benchAbordageHtmlMin | 100 | 3 | **0.223ms** | 1.535mb |
| TimeConsumerBench | benchAbordageHtmlMin | 100 | 3 | **0.220ms** | 1.535mb |
| TimeConsumerBench | benchVokuHtmlMin | 100 | 3 | **18.362ms** | 2.404mb |
| TimeConsumerBench | benchVokuHtmlMin | 100 | 3 | **18.325ms** | 2.404mb |
| TimeConsumerBench | benchVokuHtmlMin | 100 | 3 | **18.395ms** | 2.404mb |
With almost the same compression level, the speed is orders of magnitude higher.
```bash
# Comparison of Consumed Time
composer test:phpbench
#Comparison of Compression Sizes
composer test:test:run-all-minifiers
```