Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/famous-days-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"preact-render-to-string": patch
---

Performance enhancements
7 changes: 5 additions & 2 deletions benchmarks/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
import { h } from 'preact';
import Suite from 'benchmarkjs-pretty';
import renderToStringBaseline from './lib/render-to-string';
import renderToString from '../src/index';
// import renderToString from '../src/index';
import renderToString from '../dist/index.mjs';
import TextApp from './text';
// import StackApp from './stack';
import { App as IsomorphicSearchResults } from './isomorphic-ui-search-results';
import { App as IsomorphicSearchResults } from './isomorphic-ui/search-results/index';
import { App as ColorPicker } from './isomorphic-ui/color-picker';

function suite(name, Root) {
return new Suite(name)
Expand All @@ -16,6 +18,7 @@ function suite(name, Root) {
(async () => {
await suite('Text', TextApp);
await suite('SearchResults', IsomorphicSearchResults);
await suite('ColorPicker', ColorPicker);
// TODO: Enable this once we switched away from recursion
// await suite('Stack Depth', StackApp);
})();
Loading