|
| 1 | +# Next.js Benchmarking Test |
| 2 | + |
| 3 | +## Test source files and URLs |
| 4 | + |
| 5 | +| Test | Source Code | URL | |
| 6 | +| --- | --- | --- | |
| 7 | +| [JSON Serialization][] | [`app/json/route.ts`][] | http://localhost:3000/json | |
| 8 | +| [Single Database Query][] | [`app/db/route.ts`][] | http://localhost:3000/db | |
| 9 | +| [Multiple Database Queries][] | [`app/queries/route.ts`][] | http://localhost:3000/queries?queries= | |
| 10 | +| [Fortunes][] | [`app/fortunes/page.tsx`][] | http://localhost:3000/fortunes | |
| 11 | +| [Database Updates][] | [`app/updates/route.ts`][] | http://localhost:3000/updates?queries= | |
| 12 | +| [Plaintext][] | [`app/plaintext/route.ts`][] | http://localhost:3000/plaintext | |
| 13 | +| [Caching][] | [`app/cached-queries/route.ts`][] | http://localhost:3000/cached-queries?queries= | |
| 14 | + |
| 15 | +[JSON Serialization]: https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Project-Information-Framework-Tests-Overview#json-serialization |
| 16 | +[Single Database Query]: https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Project-Information-Framework-Tests-Overview#single-database-query |
| 17 | +[Multiple Database Queries]: https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Project-Information-Framework-Tests-Overview#multiple-database-queries |
| 18 | +[Fortunes]: https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Project-Information-Framework-Tests-Overview#fortunes |
| 19 | +[Database Updates]: https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Project-Information-Framework-Tests-Overview#database-updates |
| 20 | +[Plaintext]: https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Project-Information-Framework-Tests-Overview#plaintext |
| 21 | +[Caching]: https://github.com/TechEmpower/FrameworkBenchmarks/wiki/Project-Information-Framework-Tests-Overview#caching |
| 22 | + |
| 23 | +[`app/json/route.ts`]: ./app/json/route.ts |
| 24 | +[`app/db/route.ts`]: ./app/db/route.ts |
| 25 | +[`app/queries/route.ts`]: ./app/queries/route.ts |
| 26 | +[`app/fortunes/page.tsx`]: ./app/fortunes/page.tsx |
| 27 | +[`app/updates/route.ts`]: ./app/updates/route.ts |
| 28 | +[`app/plaintext/route.ts`]: ./app/plaintext/route.ts |
| 29 | +[`app/cached-queries/route.ts`]: ./app/cached-queries/route.ts |
| 30 | + |
| 31 | +## TODO |
| 32 | + |
| 33 | +The Fortunes test is currently disabled because the benchmark expects exact HTML output — see [TechEmpower/FrameworkBenchmarks#9505](https://github.com/TechEmpower/FrameworkBenchmarks/pull/9505). After that issue is resolved, the Fortunes test can be re-enabled by applying the following diff: |
| 34 | + |
| 35 | +```diff |
| 36 | +--- a/frameworks/TypeScript/nextjs/benchmark_config.json |
| 37 | ++++ b/frameworks/TypeScript/nextjs/benchmark_config.json |
| 38 | +@@ -20,7 +20,7 @@ |
| 39 | + "json_url": "/json", |
| 40 | + "db_url": "/db", |
| 41 | + "query_url": "/queries?queries=", |
| 42 | +- "TEMPORARILY DISABLED fortune_url": "/fortunes", |
| 43 | ++ "fortune_url": "/fortunes", |
| 44 | + "update_url": "/updates?queries=", |
| 45 | + "plaintext_url": "/plaintext", |
| 46 | + "cached_query_url": "/cached-queries?queries=" |
| 47 | +``` |
0 commit comments