You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,13 @@ As of version 2.0.0, all notable changes to HTML Minifier Next (HMN) are documen
4
4
5
5
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and the project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
7
+
## [5.0.4] - 2026-02-06
8
+
9
+
### Internal
10
+
11
+
* Outsourced benchmarks (now handled [in separate repository](https://github.com/j9t/minifier-benchmarks)) and refactored backtest
Copy file name to clipboardExpand all lines: README.md
+3-55Lines changed: 3 additions & 55 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -397,47 +397,7 @@ Available options:
397
397
398
398
## Minification comparison
399
399
400
-
How does HTML Minifier Next compare to other minifiers? (All minification with the most aggressive settings—though without [hyper-optimization](https://meiert.com/blog/the-ways-of-writing-html/#toc-hyper-optimized)—and against a wide range of pages.)
401
-
402
-
<!-- Auto-generated benchmarks, don’t edit -->
403
-
| Site | Original Size (KB) | [HTML Minifier Next](https://github.com/j9t/html-minifier-next) ([config](https://github.com/j9t/html-minifier-next/blob/main/benchmarks/html-minifier.json))<br>[](https://socket.dev/npm/package/html-minifier-next) | [htmlnano](https://github.com/posthtml/htmlnano)<br>[](https://socket.dev/npm/package/htmlnano) | [@swc/html](https://github.com/swc-project/swc)<br>[](https://socket.dev/npm/package/@swc/html) | [minify-html](https://github.com/wilsonzlin/minify-html)<br>[](https://socket.dev/npm/package/@minify-html/node) | [minimize](https://github.com/Swaagie/minimize)<br>[](https://socket.dev/npm/package/minimize) | [htmlcompressor.com](https://htmlcompressor.com/) |
|**Average processing time**|| 78 ms (30/30) | 169 ms (29/30) | 47 ms (30/30) |**15 ms (30/30)**| 276 ms (30/30) | 1296 ms (24/30) |
436
-
437
-
(Last updated: Feb 4, 2026)
438
-
<!-- End auto-generated -->
439
-
440
-
Notes: Minimize does not minify CSS and JS. [HTML Minifier Terser](https://github.com/terser/html-minifier-terser) is currently not included due to issues around whitespace collapsing and removal of code using modern CSS features, issues which appeared to distort the data.
400
+
Please see [**the Minifier Benchmarks project**](https://github.com/j9t/minifier-benchmarks) for details on how HMN compares to other minifiers.
441
401
442
402
## Examples
443
403
@@ -641,27 +601,15 @@ For CLI usage, using a config file is strongly recommended to avoid complex shel
641
601
npm run serve
642
602
```
643
603
644
-
### Benchmarks
645
-
646
-
Benchmarks for minified HTML:
647
-
648
-
```shell
649
-
cd benchmarks;
650
-
npm i;
651
-
npm run benchmarks
652
-
```
653
-
654
-
(In case of dependency conflicts, run `npm i` with the `--legacy-peer-deps` flag.)
655
-
656
604
### Regression tests
657
605
658
606
```shell
659
-
cdbenchmarks;
607
+
cdbacktest;
660
608
npm i;
661
609
npm run backtest
662
610
```
663
611
664
-
The backtest tool tracks minification performance across Git history. Results are saved in `benchmarks/backtest/` as CSV and JSON files.
612
+
The backtest tool tracks minification performance across Git history. Results are saved in the backtest folder as CSV and JSON files.
0 commit comments