Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
SolidJS: html vs h
(version: 1)
Comparing performance of:
html vs h
Created:
one year ago
by:
Registered User
Jump to the latest result
HTML Preparation code:
<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>
Run tests (2)
Previous results
Fork
Test case name
Result
html
h
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
one year ago
)
User agent:
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
Browser/OS:
Chrome 131 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
html
98242.5 Ops/sec
h
104410.4 Ops/sec
Related benchmarks:
DOM api vs innerHTML
frag vs append document
Example
Vanilla JS VS JQuery DOM perfomance Loop
ssssdsaddffvfggggff
ssssdsaddffvfggggfffdssff
display vs position benchmark
innerHTML vs insertAdjacentHTML vs appendChild vs append vs insertAdjacentElement
createElement vs innerHTML for creating elements in DOM
Comments
Confirm delete:
Do you really want to delete benchmark?