Important Changes
- Index signature for attributes was removed by default. You now need to add
all-types to your types.
- Reduced the amount of characters needed to be escaped at attributes.
- Improved performance.
- Fixed missing register file.
- Improved package and security documentation.
Benchmark
- 2023-09-14T20:06:09.655Z
- Node: v18.15.0
- V8: 10.2.154.26-node.25
- OS: linux
- Arch: x64
Hello World
| Runs |
@kitajs/html |
typed-html |
+ |
.compile() |
+ / @kitajs/html |
+ / typed-html |
| 10 |
0.0088ms |
0.0177ms |
2.02x |
0.0066ms |
1.33x |
2.68x |
| 10000 |
0.9501ms |
3.2714ms |
3.44x |
0.6968ms |
1.36x |
4.7x |
| 100000 |
12.2114ms |
19.6453ms |
1.61x |
2.7776ms |
4.4x |
7.07x |
Many Props
| Runs |
@kitajs/html |
typed-html |
+ |
.compile() |
+ / @kitajs/html |
+ / typed-html |
| 10 |
0.2479ms |
1.3757ms |
5.55x |
0.0031ms |
79.8x |
442.91x |
| 10000 |
240.6256ms |
982.6665ms |
4.08x |
0.7723ms |
311.56x |
1272.37x |
| 100000 |
2436.4599ms |
10844.2049ms |
4.45x |
4.4179ms |
551.49x |
2454.59x |
Many Components
| Runs |
@kitajs/html |
typed-html |
+ |
.compile() |
+ / @kitajs/html |
+ / typed-html |
| 10 |
0.2174ms |
0.5805ms |
2.67x |
0.0058ms |
37.43x |
99.91x |
| 10000 |
169.6069ms |
665.6724ms |
3.92x |
1.5865ms |
106.91x |
419.6x |
| 100000 |
1747.2244ms |
5227.3891ms |
2.99x |
7.5666ms |
230.91x |
690.85x |
Big Component
| Runs |
@kitajs/html |
typed-html |
+ |
.compile() |
+ / @kitajs/html |
+ / typed-html |
| 10 |
0.2235ms |
0.8053ms |
3.6x |
0.0048ms |
46.53x |
167.64x |
| 10000 |
175.1073ms |
735.6298ms |
4.2x |
0.9891ms |
177.03x |
743.7x |
| 100000 |
1841.2463ms |
7872.5854ms |
4.28x |
5.1064ms |
360.58x |
1541.72x |
Full Changelog: v2.1.2...v2.2.0