aboutsummaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2025-07-31 18:16:10 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2025-07-31 18:16:10 +0100
commitabe1f21f84df5864e8a7781864d9e32436bde2d4 (patch)
treee2b8100bc9e6523db4ade4746d98bd33d1ead513 /src/ui
parentbccbcc12c72f5edde605601a311646d1ca96d7e1 (diff)
downloadjs-raytracer-abe1f21f84df5864e8a7781864d9e32436bde2d4.tar.xz
js-raytracer-abe1f21f84df5864e8a7781864d9e32436bde2d4.zip
Add more reference benchmark scores. Update readme
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/benchmarkCharts.ts21
1 files changed, 18 insertions, 3 deletions
diff --git a/src/ui/benchmarkCharts.ts b/src/ui/benchmarkCharts.ts
index 85513c2..b4ebc87 100644
--- a/src/ui/benchmarkCharts.ts
+++ b/src/ui/benchmarkCharts.ts
@@ -5,6 +5,8 @@ let scoreChart: EChartsType;
const userDeviceLabel = 'Your device';
let deviceScores = [
+ { device: 'AMD Ryzen 9\n7950X\n(16c/32t)', multiCoreScore: 1294, singleCoreScore: 121 },
+ { device: 'AMD Ryzen 7\n5700X\n(8c/16t)', multiCoreScore: 663, singleCoreScore: 104 },
{ device: 'AMD Ryzen 7\n3700X\n(8c/16t)', multiCoreScore: 416, singleCoreScore: 74 },
{ device: 'Intel 11th Gen\ni5-1145G7\n(4c/8t)', multiCoreScore: 294, singleCoreScore: 73 },
{ device: 'Intel 8th Gen\ni7-8550U\n(4c/8t)', multiCoreScore: 221, singleCoreScore: 53 },
@@ -20,7 +22,18 @@ let scoreDataset = {
const option: EChartsOption = {
legend: {},
dataset: scoreDataset,
- xAxis: { type: 'value' },
+ xAxis: {
+ type: 'value',
+ max: deviceScores[0].multiCoreScore,
+ axisLabel: {
+ showMaxLabel: false,
+ showMinLabel: false
+ },
+ splitLine: {
+ show: true,
+ showMaxLine: false,
+ },
+ },
yAxis: {
type: 'category',
inverse: true,
@@ -45,14 +58,16 @@ const option: EChartsOption = {
name: 'Multi-core',
type: 'bar',
label: {
- show: true
+ show: true,
+ position: "right"
},
},
{
name: 'Single core',
type: 'bar',
label: {
- show: true
+ show: true,
+ position: "right"
},
}
],