HTML Preparation code:
AخA
 
1
<script src="https://raw.githack.com/solidjs-web/SolidJS-Web/5e863b29b7c6153b8466900bd9f66d5c9386e0b1/dist/solid-js-dev.js"></script>
Tests:
  • html

     
          const { createSignal, html, render } = SolidJS;
          const App = () => {
            const [counter, setCounter] = createSignal(0);
            setInterval(() => setCounter(c => c + 1), 1000);
            return html`<div>${() => counter()}</div>`;
          }
          App();
  • h

     
          const { createSignal, h, render } = SolidJS;
          const App = () => {
            const [counter, setCounter] = createSignal(0);
            setInterval(() => setCounter(c => c + 1), 1000);
            return h('div', () => counter());
          }
          App();
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    html
    h

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 5 months ago)
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
Test name Executions per second
html 98242.5 Ops/sec
h 104410.4 Ops/sec