MCPcopy Index your code
hub / github.com/developit/htm / go

Function go

test/perf.test.mjs:24–35  ·  view source on GitHub ↗
(count)

Source from the content-addressed store, hash-verified

22 const Foo = ({ name }) => html`<div class="foo">${name}</div>`;
23 let count = 0;
24 function go(count) {
25 const statics = [
26 '\n<div id=app'+(++count)+' data-loading="true">\n\t<h1>Hello World</h1>\n\t<ul class="items" id=', '>\n\t',
27 '\n\t</ul>\n\t\n\t<', ' name="foo" />\n\t<', ' name="other">content<//>\n\n</div>'
28 ];
29 return html(
30 statics,
31 `id${count}`,
32 html`<li data-id="${'i' + count}">${'some text #' + count}</li>`,
33 Foo, Foo
34 );
35 }
36 let now = performance.now();
37 const start = now;
38 while ((now = performance.now()) < start+1000) {

Callers 1

perf.test.mjsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected