Skip to content

v2.1.2

Compare
Choose a tag to compare
@arthurfiorette arthurfiorette released this 11 Sep 18:30
· 492 commits to master since this release

Important Changes

  • Improved performance of toKebabCase and escapeHtml up to 3x. See benchmark.

Benchmark

  • 2023-09-11T18:08:10.527Z
  • Node: v20.6.0
  • V8: 11.3.244.8-node.14
  • OS: linux
  • Arch: x64

Hello World

Runs @kitajs/html typed-html + .compile() + / @kitajs/html + / typed-html
10 0.0105ms 0.0154ms 1.47x 0.0067ms 1.57x 2.3x
10000 0.9791ms 3.285ms 3.36x 0.5294ms 1.85x 6.21x
100000 10.3421ms 34.3962ms 3.33x 3.539ms 2.92x 9.72x

Many Props

Runs @kitajs/html typed-html + .compile() + / @kitajs/html + / typed-html
10 0.6015ms 3.128ms 5.2x 0.0047ms 127.98x 665.53x
10000 434.7339ms 1408.6933ms 3.24x 0.94ms 462.48x 1498.61x
100000 4323.8703ms 13815.1441ms 3.2x 4.7838ms 903.86x 2887.9x

Big Component

Runs @kitajs/html typed-html + .compile() + / @kitajs/html + / typed-html
10 0.3384ms 1.0461ms 3.09x 0.0049ms 69.06x 213.49x
10000 277.77ms 1003.0324ms 3.61x 1.1829ms 234.82x 847.94x
100000 2721.9826ms 9898.4646ms 3.64x 5.6384ms 482.76x 1755.55x

Full Changelog: v2.1.1...v2.1.2