-
-
Notifications
You must be signed in to change notification settings - Fork 99
Expand file tree
/
Copy pathindex.js
More file actions
19 lines (18 loc) · 583 Bytes
/
index.js
File metadata and controls
19 lines (18 loc) · 583 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import { h } from 'preact';
import Suite from 'benchmarkjs-pretty';
import { renderToString } from '../src/index';
import TextApp from './text';
// import StackApp from './stack';
import { App as IsomorphicSearchResults } from './isomorphic-ui-search-results';
new Suite('Bench')
.add('Text', () => {
return renderToString(<TextApp />);
})
.add('SearchResults', () => {
return renderToString(<IsomorphicSearchResults />);
})
// TODO: Enable this once we switched away from recursion
// .add('Stack Depth', () => {
// return renderToString(<StackApp />);
// })
.run();