Skip to content

Commit eeb80ae

Browse files
committed
couple more benchmark formatting fixes
1 parent 6af57b4 commit eeb80ae

File tree

3 files changed

+26
-21
lines changed

3 files changed

+26
-21
lines changed

benchmarks/elementwise-math/README.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,17 @@ The scripts scale the number of samples via `ELM_POINTS` (default
2424
### Elementwise Math Perf Sweep (points)
2525
| points | RunMat (ms) | PyTorch (ms) | NumPy (ms) | NumPy ÷ RunMat | PyTorch ÷ RunMat |
2626
|---|---:|---:|---:|---:|---:|
27-
| 1,000,000 | 145.15 | 856.41 | 72.39 | 0.50× | 5.90× |
28-
| 2,000,000 | 149.75 | 901.05 | 79.49 | 0.53× | 6.02× |
29-
| 5,000,000 | 145.14 | 1111.16 | 119.45 | 0.82× | 7.66× |
30-
| 10,000,000 | 143.39 | 1377.43 | 154.38 | 1.08× | 9.61× |
31-
| 100,000,000 | 144.81 | 16,404.22 | 1,073.09 | 7.41× | 113.28× |
32-
| 200,000,000 | 156.94 | 16,558.98 | 2,114.66 | 13.47× | 105.51× |
33-
| 500,000,000 | 137.58 | 17,882.11 | 5,026.94 | 36.54× | 129.97× |
34-
| 1,000,000,000 | 144.40 | 20,841.42 | 11,931.93 | 82.63× | 144.34× |
27+
| 1M | 145.15 | 856.41 | 72.39 | 0.50× | 5.90× |
28+
| 2M | 149.75 | 901.05 | 79.49 | 0.53× | 6.02× |
29+
| 5M | 145.14 | 1111.16 | 119.45 | 0.82× | 7.66× |
30+
| 10M | 143.39 | 1377.43 | 154.38 | 1.08× | 9.61× |
31+
| 100M | 144.81 | 16,404.22 | 1,073.09 | 7.41× | 113.28× |
32+
| 200M | 156.94 | 16,558.98 | 2,114.66 | 13.47× | 105.51× |
33+
| 500M | 137.58 | 17,882.11 | 5,026.94 | 36.54× | 129.97× |
34+
| 1B | 144.40 | 20,841.42 | 11,931.93 | 82.63× | 144.34× |
35+
36+
*M = 10⁶ elements, B = 10⁹ elements.*
37+
3538

3639
---
3740

benchmarks/monte-carlo-analysis/README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ price = mean(payoff) · exp(−μ T Δt)
1616

1717
![RunMat is up to 131x faster than NumPy](https://web.runmatstatic.com/monte-carlo-analysis_speedup-b.svg)
1818

19-
### Monte Carlo Perf Sweep (M = paths)
20-
| M | RunMat (ms) | PyTorch (ms) | NumPy (ms) | NumPy ÷ RunMat | PyTorch ÷ RunMat |
21-
|---|---:|---:|---:|---:|---:|
22-
| 250,000 | 108.58 | 824.42 | 4065.87 | 37.44× | 7.59× |
23-
| 500,000 | 136.10 | 900.11 | 8206.56 | 60.30× | 6.61× |
24-
| 1,000,000 | 188.00 | 894.32 | 16,092.49 | 85.60× | 4.76× |
25-
| 2,000,000 | 297.65 | 1108.80 | 32,304.64 | 108.53× | 3.73× |
26-
| 5,000,000 | 607.36 | 1697.59 | 79,894.98 | 131.55× | 2.80× |
19+
### Monte Carlo Perf Sweep
20+
| Paths (simulations) | RunMat (ms) | PyTorch (ms) | NumPy (ms) | NumPy ÷ RunMat | PyTorch ÷ RunMat |
21+
|--------------------:|-----------:|-------------:|-----------:|---------------:|-----------------:|
22+
| 250k | 108.58 | 824.42 | 4,065.87 | 37.44× | 7.59× |
23+
| 500k | 136.10 | 900.11 | 8,206.56 | 60.30× | 6.61× |
24+
| 1M | 188.00 | 894.32 | 16,092.49 | 85.60× | 4.76× |
25+
| 2M | 297.65 | 1,108.80 | 32,304.64 |108.53× | 3.73× |
26+
| 5M | 607.36 | 1,697.59 | 79,894.98 |131.55× | 2.80× |
27+
28+
*250k = 250,000 paths, 1M = 1,000,000 paths, etc.*
2729

2830
---
2931

website/components/benchmarks/BenchmarkSweepCarousel.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import MonteCarloSweep from "./MonteCarloSweep";
77
import ElementwiseMathSweep from "./ElementwiseMathSweep";
88

99
const slides = [
10-
{ id: "4k", component: FourKImagePipelineSweep },
11-
{ id: "monte-carlo", component: MonteCarloSweep },
12-
{ id: "elementwise", component: ElementwiseMathSweep },
10+
{ id: "4k", component: FourKImagePipelineSweep, href: "/benchmarks/4k-image-processing" },
11+
{ id: "monte-carlo", component: MonteCarloSweep, href: "/benchmarks/monte-carlo-analysis" },
12+
{ id: "elementwise", component: ElementwiseMathSweep, href: "/benchmarks/elementwise-math" },
1313
];
1414

1515
export default function BenchmarkSweepCarousel() {
@@ -31,9 +31,9 @@ export default function BenchmarkSweepCarousel() {
3131
>
3232
3333
</button>
34-
<div className="w-full max-w-[42rem]">
34+
<a className="w-full max-w-[42rem]" href={activeSlide.href}>
3535
<Component />
36-
</div>
36+
</a>
3737
<button
3838
type="button"
3939
onClick={goNext}

0 commit comments

Comments
 (0)