Commit d4fa701
committed
fix(ci): use Benchmark.js instead of Vitest Bench for CI/CD
- Switch from Vitest Bench to Benchmark.js for GitHub Actions
- Install and build benchmarks in CI workflow
- Extract JSON results from Benchmark.js output
- Add PR comments with benchmark results
- Upload both JSON and text results as artifacts
- Only push to gh-pages on main branch (not PRs)
Fixes:
- ENOENT error for bench-results.json
- Vitest Bench doesn't generate JSON output automatically
- Use industry-standard Benchmark.js for consistent results
Benefits:
- More accurate performance measurements
- Consistent with README documentation
- Better integration with github-action-benchmark
- Automatic PR comments with results1 parent 0721e32 commit d4fa701
1 file changed
Lines changed: 56 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
42 | 60 | | |
43 | 61 | | |
44 | 62 | | |
| 63 | + | |
45 | 64 | | |
46 | | - | |
| 65 | + | |
47 | 66 | | |
48 | 67 | | |
49 | 68 | | |
| |||
60 | 79 | | |
61 | 80 | | |
62 | 81 | | |
63 | | - | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
64 | 86 | | |
65 | 87 | | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
0 commit comments