diff --git a/.github/scripts/process-benchmarks.js b/.github/scripts/process-benchmarks.js index ccde9896f5..1a58bb5282 100644 --- a/.github/scripts/process-benchmarks.js +++ b/.github/scripts/process-benchmarks.js @@ -340,10 +340,6 @@ The benchmarks measure real-world testing patterns: All benchmark source code is available in the [\`tools/speed-comparison\`](https://github.com/thomhurst/TUnit/tree/main/tools/speed-comparison) directory. -### Interactive Comparison - -Want to estimate performance for your test suite? Try the [Benchmark Calculator](/docs/benchmarks/calculator) to see potential time savings. - --- :::note Continuous Benchmarking diff --git a/docs/BENCHMARKS_IMPLEMENTATION.md b/docs/BENCHMARKS_IMPLEMENTATION.md index 6a647828b1..67fbe67cfa 100644 --- a/docs/BENCHMARKS_IMPLEMENTATION.md +++ b/docs/BENCHMARKS_IMPLEMENTATION.md @@ -79,16 +79,6 @@ Auto-generated page featuring: - Methodology explanation - Links to interactive tools -#### Calculator Page -**File:** `docs/docs/benchmarks/calculator.md` - -Interactive page for users to: -- Input their test count -- Select current framework -- Calculate potential time savings -- See annual productivity gains -- Understand ROI of migration - #### Methodology Page **File:** `docs/docs/benchmarks/methodology.md` @@ -127,29 +117,6 @@ import BenchmarkChart from '@site/src/components/BenchmarkChart'; --- -#### 2. BenchmarkCalculator Component -**Files:** -- `docs/src/components/BenchmarkCalculator/index.tsx` -- `docs/src/components/BenchmarkCalculator/styles.module.css` - -**Features:** -- Input fields for test count, current framework, runs per day -- Real-time calculations using actual benchmark data -- Displays current vs TUnit vs TUnit AOT times -- Shows daily and annual time savings -- Calculates team-level impact -- Responsive card-based layout -- Gradient highlights for AOT results - -**Usage:** -```tsx -import BenchmarkCalculator from '@site/src/components/BenchmarkCalculator'; - - -``` - ---- - #### 3. BenchmarkHighlight Component (Homepage) **Files:** - `docs/src/components/BenchmarkHighlight/index.tsx` @@ -161,7 +128,7 @@ import BenchmarkCalculator from '@site/src/components/BenchmarkCalculator'; - Auto-loads real benchmark data from JSON - Fallback data for initial rendering - Feature checkmarks (source-generated, parallel, AOT) -- Call-to-action buttons to detailed benchmarks and calculator +- Call-to-action buttons to detailed benchmarks - Methodology link - Gradient backgrounds and animations - Fully responsive @@ -182,7 +149,6 @@ import BenchmarkCalculator from '@site/src/components/BenchmarkCalculator'; Added new "Benchmarks" section with: - Main benchmarks page (index) -- Calculator page - Methodology page Positioned between "Examples & Use Cases" and "Reference" for optimal discoverability. @@ -266,7 +232,6 @@ TUnit/ │ ├── docs/ │ │ └── benchmarks/ │ │ ├── index.md [AUTO-GENERATED] -│ │ ├── calculator.md [NEW] │ │ └── methodology.md [NEW] │ │ │ ├── src/ @@ -274,9 +239,6 @@ TUnit/ │ │ │ ├── BenchmarkChart/ │ │ │ │ ├── index.tsx [NEW] │ │ │ │ └── styles.module.css [NEW] -│ │ │ ├── BenchmarkCalculator/ -│ │ │ │ ├── index.tsx [NEW] -│ │ │ │ └── styles.module.css [NEW] │ │ │ └── BenchmarkHighlight/ │ │ │ ├── index.tsx [NEW] │ │ │ └── styles.module.css [NEW] @@ -308,7 +270,6 @@ npm start Visit: - http://localhost:3000 (homepage with benchmark section) - http://localhost:3000/docs/benchmarks (detailed benchmarks) -- http://localhost:3000/docs/benchmarks/calculator (calculator) - http://localhost:3000/docs/benchmarks/methodology (methodology) ### After First CI Run @@ -332,7 +293,6 @@ Visit: - Visit the deployed site after merge - Homepage shows real speedup numbers - Benchmarks page shows all test categories - - Calculator uses real data - Charts render correctly **Note:** You can review the PRs if desired, but they will merge automatically without intervention. @@ -353,7 +313,7 @@ matrix: The system automatically: - Processes new results - Adds new sections to documentation -- Includes in charts and calculator +- Includes in charts ### Styling Customization diff --git a/docs/docs/benchmarks/index.md b/docs/docs/benchmarks/index.md index fb1a5110cd..2c5b59a725 100644 --- a/docs/docs/benchmarks/index.md +++ b/docs/docs/benchmarks/index.md @@ -104,10 +104,6 @@ The benchmarks measure real-world testing patterns: All benchmark source code is available in the [`tools/speed-comparison`](https://github.com/thomhurst/TUnit/tree/main/tools/speed-comparison) directory. -### Interactive Comparison - -Want to estimate performance for your test suite? Try the [Benchmark Calculator](/docs/benchmarks/calculator) to see potential time savings. - --- :::note Continuous Benchmarking diff --git a/docs/src/components/BenchmarkHighlight/index.tsx b/docs/src/components/BenchmarkHighlight/index.tsx index 3ee30f764f..dfa636e0f3 100644 --- a/docs/src/components/BenchmarkHighlight/index.tsx +++ b/docs/src/components/BenchmarkHighlight/index.tsx @@ -90,9 +90,6 @@ export default function BenchmarkHighlight(): JSX.Element { View Detailed Benchmarks → - - Calculate Your Savings -