Skip to content

Commit 2d5ca74

Browse files
authored
More perf improvements (#232)
1 parent 43689d3 commit 2d5ca74

19 files changed

+1630
-800
lines changed

.changeset/famous-days-invite.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"preact-render-to-string": patch
3+
---
4+
5+
Performance enhancements

benchmarks/index.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import { h } from 'preact';
22
import Suite from 'benchmarkjs-pretty';
33
import renderToStringBaseline from './lib/render-to-string';
4-
import renderToString from '../src/index';
4+
// import renderToString from '../src/index';
5+
import renderToString from '../dist/index.mjs';
56
import TextApp from './text';
67
// import StackApp from './stack';
7-
import { App as IsomorphicSearchResults } from './isomorphic-ui-search-results';
8+
import { App as IsomorphicSearchResults } from './isomorphic-ui/search-results/index';
9+
import { App as ColorPicker } from './isomorphic-ui/color-picker';
810

911
function suite(name, Root) {
1012
return new Suite(name)
@@ -16,6 +18,7 @@ function suite(name, Root) {
1618
(async () => {
1719
await suite('Text', TextApp);
1820
await suite('SearchResults', IsomorphicSearchResults);
21+
await suite('ColorPicker', ColorPicker);
1922
// TODO: Enable this once we switched away from recursion
2023
// await suite('Stack Depth', StackApp);
2124
})();

0 commit comments

Comments
 (0)