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
24 changes: 15 additions & 9 deletions packages/app-void/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ The production server runs on `PORT`, defaulting to 3000. The benchmark harness
starts `dist/ssr/index.js` for HTTP and browser tests, and imports
`dist/ssr/app.js` for in-process request-handler throughput.

| Route | Workload |
| ----------------------------------- | ------------------------------------------------------ |
| `/server-side-rendered` | 1,000 server-rendered rows with Void `Link` components |
| `/server-side-rendered-plain-links` | The same loader and table with ordinary anchors |
| `/server-side-rendered/:id` | Server-rendered detail destination |
| `/ssr-throughput` | 1,000 server-rendered rows without links |
| `/client-side-rendered` | 1,000 rows generated and rendered in the browser |
| `/client-side-rendered/:id` | Client-rendered detail destination |
| `/initial-load` | The shared landing-page copy, markup, and CSS |
| Route | Workload |

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a heads up I may remove this I think maybe having one consolidated route list in the methodology would be a good idea or the main apps readme/setup

| ----------------------------------- | --------------------------------------------------------- |
| `/server-side-rendered` | 1,000 server-rendered rows with Void `Link` components |
| `/server-side-rendered-plain-links` | The same loader and table with ordinary anchors |
| `/server-side-rendered/:id` | Server-rendered detail destination |
| `/ssr-throughput` | 1,000 server-rendered rows without links |
| `/client-side-rendered` | 1,000 rows generated and rendered in the browser |
| `/client-side-rendered/:id` | Client-rendered detail destination |
| `/initial-load` | The shared landing-page copy, markup, and CSS |
| `/ssr-img-jpeg` | Three server-rendered JPEG images using native `img` tags |
| `/ssr-img-webp` | The same three images as WebP using native `img` tags |

Server-rendered tables use `testData()` from `../testdata/src/ssr.ts`. Rows are
created once per module instance and loaded through its zero-delay timer on
Expand All @@ -40,3 +42,7 @@ for production-server and in-process-handler wiring, and
rendering workloads and paired plain-anchor/router-link routes. The initial-load
page follows the shared example added in
[#735](https://github.com/e18e/framework-performance/pull/735).

The image routes follow [the baseline image routes (#874)](https://github.com/e18e/framework-performance/pull/874),
using the same poster files, dimensions, fetch priority, and shared CSS. Both
pages use on-demand SSR with the default React hydration behavior.
27 changes: 27 additions & 0 deletions packages/app-void/pages/ssr-img-jpeg.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import '../../testdata/src/ssr-images.css'

export default function SSRImagePage() {
return (
<main className="ssr-image-gallery">
<img
src="/ssr-images/BTTF1.jpg"
alt="Back to the Future poster"
width={667}
height={987}
/>
<img
src="/ssr-images/BTTF2.jpg"
alt="Back to the Future Part II poster"
width={667}
height={1000}
fetchPriority="high"
/>
<img
src="/ssr-images/BTTF3.jpg"
alt="Back to the Future Part III poster"
width={667}
height={999}
/>
</main>
)
}
27 changes: 27 additions & 0 deletions packages/app-void/pages/ssr-img-webp.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
import '../../testdata/src/ssr-images.css'

export default function SSRImagePage() {
return (
<main className="ssr-image-gallery">
<img
src="/ssr-images/BTTF1.webp"
alt="Back to the Future poster"
width={667}
height={987}
/>
<img
src="/ssr-images/BTTF2.webp"
alt="Back to the Future Part II poster"
width={667}
height={1000}
fetchPriority="high"
/>
<img
src="/ssr-images/BTTF3.webp"
alt="Back to the Future Part III poster"
width={667}
height={999}
/>
</main>
)
}
Binary file added packages/app-void/public/ssr-images/BTTF1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/app-void/public/ssr-images/BTTF2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added packages/app-void/public/ssr-images/BTTF3.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading