Skip to content

Commit b2c33f5

Browse files
Copilotthomhurst
andauthored
Remove benchmark calculator references (#3742)
* Initial plan * Remove benchmark calculator references from documentation Co-authored-by: thomhurst <30480171+thomhurst@users.noreply.github.com> * Remove remaining calculator references from scripts and components Co-authored-by: thomhurst <30480171+thomhurst@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: thomhurst <30480171+thomhurst@users.noreply.github.com>
1 parent d018c76 commit b2c33f5

File tree

4 files changed

+2
-53
lines changed

4 files changed

+2
-53
lines changed

.github/scripts/process-benchmarks.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -340,10 +340,6 @@ The benchmarks measure real-world testing patterns:
340340
341341
All benchmark source code is available in the [\`tools/speed-comparison\`](https://github.com/thomhurst/TUnit/tree/main/tools/speed-comparison) directory.
342342
343-
### Interactive Comparison
344-
345-
Want to estimate performance for your test suite? Try the [Benchmark Calculator](/docs/benchmarks/calculator) to see potential time savings.
346-
347343
---
348344
349345
:::note Continuous Benchmarking

docs/BENCHMARKS_IMPLEMENTATION.md

Lines changed: 2 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,6 @@ Auto-generated page featuring:
7979
- Methodology explanation
8080
- Links to interactive tools
8181

82-
#### Calculator Page
83-
**File:** `docs/docs/benchmarks/calculator.md`
84-
85-
Interactive page for users to:
86-
- Input their test count
87-
- Select current framework
88-
- Calculate potential time savings
89-
- See annual productivity gains
90-
- Understand ROI of migration
91-
9282
#### Methodology Page
9383
**File:** `docs/docs/benchmarks/methodology.md`
9484

@@ -127,29 +117,6 @@ import BenchmarkChart from '@site/src/components/BenchmarkChart';
127117

128118
---
129119

130-
#### 2. BenchmarkCalculator Component
131-
**Files:**
132-
- `docs/src/components/BenchmarkCalculator/index.tsx`
133-
- `docs/src/components/BenchmarkCalculator/styles.module.css`
134-
135-
**Features:**
136-
- Input fields for test count, current framework, runs per day
137-
- Real-time calculations using actual benchmark data
138-
- Displays current vs TUnit vs TUnit AOT times
139-
- Shows daily and annual time savings
140-
- Calculates team-level impact
141-
- Responsive card-based layout
142-
- Gradient highlights for AOT results
143-
144-
**Usage:**
145-
```tsx
146-
import BenchmarkCalculator from '@site/src/components/BenchmarkCalculator';
147-
148-
<BenchmarkCalculator />
149-
```
150-
151-
---
152-
153120
#### 3. BenchmarkHighlight Component (Homepage)
154121
**Files:**
155122
- `docs/src/components/BenchmarkHighlight/index.tsx`
@@ -161,7 +128,7 @@ import BenchmarkCalculator from '@site/src/components/BenchmarkCalculator';
161128
- Auto-loads real benchmark data from JSON
162129
- Fallback data for initial rendering
163130
- Feature checkmarks (source-generated, parallel, AOT)
164-
- Call-to-action buttons to detailed benchmarks and calculator
131+
- Call-to-action buttons to detailed benchmarks
165132
- Methodology link
166133
- Gradient backgrounds and animations
167134
- Fully responsive
@@ -182,7 +149,6 @@ import BenchmarkCalculator from '@site/src/components/BenchmarkCalculator';
182149

183150
Added new "Benchmarks" section with:
184151
- Main benchmarks page (index)
185-
- Calculator page
186152
- Methodology page
187153

188154
Positioned between "Examples & Use Cases" and "Reference" for optimal discoverability.
@@ -266,17 +232,13 @@ TUnit/
266232
│ ├── docs/
267233
│ │ └── benchmarks/
268234
│ │ ├── index.md [AUTO-GENERATED]
269-
│ │ ├── calculator.md [NEW]
270235
│ │ └── methodology.md [NEW]
271236
│ │
272237
│ ├── src/
273238
│ │ ├── components/
274239
│ │ │ ├── BenchmarkChart/
275240
│ │ │ │ ├── index.tsx [NEW]
276241
│ │ │ │ └── styles.module.css [NEW]
277-
│ │ │ ├── BenchmarkCalculator/
278-
│ │ │ │ ├── index.tsx [NEW]
279-
│ │ │ │ └── styles.module.css [NEW]
280242
│ │ │ └── BenchmarkHighlight/
281243
│ │ │ ├── index.tsx [NEW]
282244
│ │ │ └── styles.module.css [NEW]
@@ -308,7 +270,6 @@ npm start
308270
Visit:
309271
- http://localhost:3000 (homepage with benchmark section)
310272
- http://localhost:3000/docs/benchmarks (detailed benchmarks)
311-
- http://localhost:3000/docs/benchmarks/calculator (calculator)
312273
- http://localhost:3000/docs/benchmarks/methodology (methodology)
313274

314275
### After First CI Run
@@ -332,7 +293,6 @@ Visit:
332293
- Visit the deployed site after merge
333294
- Homepage shows real speedup numbers
334295
- Benchmarks page shows all test categories
335-
- Calculator uses real data
336296
- Charts render correctly
337297

338298
**Note:** You can review the PRs if desired, but they will merge automatically without intervention.
@@ -353,7 +313,7 @@ matrix:
353313
The system automatically:
354314
- Processes new results
355315
- Adds new sections to documentation
356-
- Includes in charts and calculator
316+
- Includes in charts
357317
358318
### Styling Customization
359319

docs/docs/benchmarks/index.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -104,10 +104,6 @@ The benchmarks measure real-world testing patterns:
104104

105105
All benchmark source code is available in the [`tools/speed-comparison`](https://github.com/thomhurst/TUnit/tree/main/tools/speed-comparison) directory.
106106

107-
### Interactive Comparison
108-
109-
Want to estimate performance for your test suite? Try the [Benchmark Calculator](/docs/benchmarks/calculator) to see potential time savings.
110-
111107
---
112108

113109
:::note Continuous Benchmarking

docs/src/components/BenchmarkHighlight/index.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,6 @@ export default function BenchmarkHighlight(): JSX.Element {
9090
<Link to="/docs/benchmarks" className={styles.primaryLink}>
9191
View Detailed Benchmarks →
9292
</Link>
93-
<Link to="/docs/benchmarks/calculator" className={styles.secondaryLink}>
94-
Calculate Your Savings
95-
</Link>
9693
</div>
9794

9895
<div className={styles.benchmarkNote}>

0 commit comments

Comments
 (0)