Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions .github/scripts/process-benchmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
44 changes: 2 additions & 42 deletions docs/BENCHMARKS_IMPLEMENTATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`

Expand Down Expand Up @@ -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';

<BenchmarkCalculator />
```

---

#### 3. BenchmarkHighlight Component (Homepage)
**Files:**
- `docs/src/components/BenchmarkHighlight/index.tsx`
Expand All @@ -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
Expand All @@ -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.
Expand Down Expand Up @@ -266,17 +232,13 @@ TUnit/
│ ├── docs/
│ │ └── benchmarks/
│ │ ├── index.md [AUTO-GENERATED]
│ │ ├── calculator.md [NEW]
│ │ └── methodology.md [NEW]
│ │
│ ├── src/
│ │ ├── components/
│ │ │ ├── BenchmarkChart/
│ │ │ │ ├── index.tsx [NEW]
│ │ │ │ └── styles.module.css [NEW]
│ │ │ ├── BenchmarkCalculator/
│ │ │ │ ├── index.tsx [NEW]
│ │ │ │ └── styles.module.css [NEW]
│ │ │ └── BenchmarkHighlight/
│ │ │ ├── index.tsx [NEW]
│ │ │ └── styles.module.css [NEW]
Expand Down Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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

Expand Down
4 changes: 0 additions & 4 deletions docs/docs/benchmarks/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions docs/src/components/BenchmarkHighlight/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,9 +90,6 @@ export default function BenchmarkHighlight(): JSX.Element {
<Link to="/docs/benchmarks" className={styles.primaryLink}>
View Detailed Benchmarks →
</Link>
<Link to="/docs/benchmarks/calculator" className={styles.secondaryLink}>
Calculate Your Savings
</Link>
</div>

<div className={styles.benchmarkNote}>
Expand Down