mirror of
https://github.com/vercel/next.js.git
synced 2026-09-20 02:25:18 +08:00
663c9151cf
## Summary Benchmark infrastructure for measuring render pipeline performance. - **render-pipeline benchmark** (`bench/render-pipeline/`): `benchmark.ts` for profiling render paths, `analyze-profiles.ts` for CPU profile analysis - **Stress routes** (`bench/basic-app/app/streaming/`): light, medium, heavy, bulk, wide, chunkstorm variants for different streaming load profiles - **Basic app harness**: `benchmark.sh` runner script, `next.config.js` - **Minimal server**: `bench/next-minimal-server/bin/minimal-server.js` - **Docs**: `bench/BENCHMARKING.md` guide - **Config**: eslint exclusion for bench paths, package.json bench scripts ## Test plan - [ ] No runtime behavior changes - [ ] Benchmark scripts are standalone tooling --------- Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
22 lines
386 B
JavaScript
22 lines
386 B
JavaScript
import React from 'react'
|
|
|
|
export const dynamic = 'force-dynamic'
|
|
|
|
const ROWS = 2500
|
|
const PAYLOAD = 'x'.repeat(384)
|
|
const DATA = Array.from(
|
|
{ length: ROWS },
|
|
(_, index) => `row-${index}-${PAYLOAD}`
|
|
)
|
|
|
|
export default function Page() {
|
|
return (
|
|
<main>
|
|
<h1>stream-bulk</h1>
|
|
{DATA.map((line, index) => (
|
|
<p key={index}>{line}</p>
|
|
))}
|
|
</main>
|
|
)
|
|
}
|