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>
34 lines
880 B
JavaScript
34 lines
880 B
JavaScript
import { defineConfig } from 'eslint/config'
|
|
import baseConfig from './eslint.config.mjs'
|
|
|
|
export default defineConfig([
|
|
{
|
|
extends: [baseConfig],
|
|
},
|
|
{
|
|
files: ['**/*.ts', '**/*.tsx'],
|
|
// This override adds type-checked rules.
|
|
// Linting with type-checked rules is very slow and needs a lot of memory,
|
|
// so we exclude non-essential files.
|
|
ignores: [
|
|
'bench/**/*',
|
|
'examples/**/*',
|
|
'test/**/*',
|
|
'**/*.d.ts',
|
|
'turbopack/**/*',
|
|
],
|
|
languageOptions: {
|
|
parserOptions: {
|
|
project: true,
|
|
},
|
|
},
|
|
// These rules are added on top of the rules that are declared in
|
|
// the base config for the matching files.
|
|
rules: {
|
|
// TODO: enable in follow-up PR
|
|
'@typescript-eslint/no-floating-promises': 'off',
|
|
'@typescript-eslint/switch-exhaustiveness-check': 'error',
|
|
},
|
|
},
|
|
])
|