0a450d2963
- The desktop measured: Horizon v2026.10.22.13 against vanilla 26.3 at render distance 12 and 32, 3 runs each, 1280x720, VSync off, in a headless sway on the RTX 4080 (never on its screen). Replaces the "not yet measured" note. - /benchmarks shows each players' group's hardware split (RAM, VRAM, drive, system, GPU kind) and, once the telemetry server has some, a "Players' hardware" table from /v1/aggregate's breakdowns. Hidden without data. - The picker takes the memory too. Players' groups whose installs have neither the picked RAM nor the GPU's VRAM class count as further away, and the result says what they had and when a game's peak memory is a large share of the RAM. - Each GPU in the spec table has its memory (0: shared). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
89 lines
6.7 KiB
JavaScript
89 lines
6.7 KiB
JavaScript
// The hardware the Benchmarks page can estimate for, from specifications only (our own table, no benchmark
|
|
// database): each GPU's FP32 shader throughput in TFLOPS and its memory bandwidth in GB/s as its maker states them,
|
|
// its own memory in GB (vram_gb; 0 for a GPU that shares the system's: integrated, Apple silicon),
|
|
// and each CPU's single-thread score = its top boost clock (GHz) x our rough per-generation factor (instructions per
|
|
// clock, Zen 4 = 1). The factors are round numbers, so estimates are ranges, and the page says so.
|
|
// `match` finds a reported name (the GPU and CPU strings in benchmark reports) in this table.
|
|
|
|
export const GPUS = [
|
|
{ name: "NVIDIA GeForce RTX 4090", tflops: 82.6, gbps: 1008, vram_gb: 24, match: /RTX 4090/i },
|
|
{ name: "NVIDIA GeForce RTX 4080", tflops: 48.7, gbps: 717, vram_gb: 16, match: /RTX 4080(?! SUPER)/i },
|
|
{ name: "NVIDIA GeForce RTX 4070 Ti", tflops: 40.1, gbps: 504, vram_gb: 12, match: /RTX 4070 Ti/i },
|
|
{ name: "NVIDIA GeForce RTX 4070", tflops: 29.1, gbps: 504, vram_gb: 12, match: /RTX 4070(?! Ti)/i },
|
|
{ name: "NVIDIA GeForce RTX 4060 Ti", tflops: 22.1, gbps: 288, vram_gb: 8, match: /RTX 4060 Ti/i },
|
|
{ name: "NVIDIA GeForce RTX 4060", tflops: 15.1, gbps: 272, vram_gb: 8, match: /RTX 4060(?! Ti)/i },
|
|
{ name: "NVIDIA GeForce RTX 3080", tflops: 29.8, gbps: 760, vram_gb: 10, match: /RTX 3080(?! Ti)/i },
|
|
{ name: "NVIDIA GeForce RTX 3070", tflops: 20.3, gbps: 448, vram_gb: 8, match: /RTX 3070(?! Ti)/i },
|
|
{ name: "NVIDIA GeForce RTX 3060", tflops: 12.7, gbps: 360, vram_gb: 12, match: /RTX 3060(?! Ti)/i },
|
|
{ name: "NVIDIA GeForce RTX 3050", tflops: 9.1, gbps: 224, vram_gb: 8, match: /RTX 3050/i },
|
|
{ name: "NVIDIA GeForce RTX 2060", tflops: 6.5, gbps: 336, vram_gb: 6, match: /RTX 2060(?! SUPER)/i },
|
|
{ name: "NVIDIA GeForce GTX 1660 SUPER", tflops: 5.0, gbps: 336, vram_gb: 6, match: /GTX 1660 SUPER/i },
|
|
{ name: "NVIDIA GeForce GTX 1060 6GB", tflops: 4.4, gbps: 192, vram_gb: 6, match: /GTX 1060/i },
|
|
{ name: "NVIDIA GeForce GTX 1050 Ti", tflops: 2.1, gbps: 112, vram_gb: 4, match: /GTX 1050 Ti/i },
|
|
{ name: "AMD Radeon RX 7900 XTX", tflops: 61.4, gbps: 960, vram_gb: 24, match: /RX 7900 XTX/i },
|
|
{ name: "AMD Radeon RX 7800 XT", tflops: 37.3, gbps: 624, vram_gb: 16, match: /RX 7800 XT/i },
|
|
{ name: "AMD Radeon RX 7600", tflops: 21.8, gbps: 288, vram_gb: 8, match: /RX 7600(?! XT)/i },
|
|
{ name: "AMD Radeon RX 6700 XT", tflops: 13.2, gbps: 384, vram_gb: 12, match: /RX 6700 XT/i },
|
|
{ name: "AMD Radeon RX 6600", tflops: 8.9, gbps: 224, vram_gb: 8, match: /RX 6600(?! XT)/i },
|
|
{ name: "AMD Radeon RX 580", tflops: 6.2, gbps: 256, vram_gb: 8, match: /RX 580/i },
|
|
{ name: "AMD Radeon 780M (integrated)", tflops: 8.6, gbps: 89, vram_gb: 0, match: /780M/i },
|
|
{ name: "Steam Deck (AMD Van Gogh)", tflops: 1.6, gbps: 88, vram_gb: 0, match: /VanGogh|Van Gogh|Custom GPU 0405/i },
|
|
{ name: "Intel Arc A770", tflops: 19.7, gbps: 560, vram_gb: 16, match: /Arc.*A770/i },
|
|
{ name: "Intel Iris Xe Graphics (96 EU)", tflops: 2.1, gbps: 68, vram_gb: 0, match: /Iris\(?R?\)? Xe/i },
|
|
{ name: "Intel HD Graphics 620", tflops: 0.4, gbps: 34, vram_gb: 0, match: /\bU?HD Graphics 620\b/i },
|
|
{ name: "Apple M1", tflops: 2.6, gbps: 68, vram_gb: 0, match: /^Apple M1$/i },
|
|
{ name: "Apple M2", tflops: 3.6, gbps: 100, vram_gb: 0, match: /^Apple M2$/i },
|
|
{ name: "Apple M3", tflops: 4.1, gbps: 100, vram_gb: 0, match: /^Apple M3$/i },
|
|
{ name: "Apple M4", tflops: 4.3, gbps: 120, vram_gb: 0, match: /^Apple M4$/i },
|
|
{ name: "Apple M1 Pro (16-core GPU)", tflops: 5.2, gbps: 200, vram_gb: 0, match: /^Apple M1 Pro$/i },
|
|
{ name: "Apple M4 Pro (20-core GPU)", tflops: 8.5, gbps: 273, vram_gb: 0, match: /^Apple M4 Pro$/i },
|
|
{ name: "Apple M4 Max (40-core GPU)", tflops: 17.0, gbps: 546, vram_gb: 0, match: /^Apple M4 Max$/i },
|
|
];
|
|
|
|
// ghz: top single-core boost clock; ipc: our per-generation factor (Zen 4 = 1).
|
|
export const CPUS = [
|
|
{ name: "Intel Core i7-7500U", ghz: 3.5, ipc: 0.62, match: /i7-7500U/i },
|
|
{ name: "Intel Core i5-7200U", ghz: 3.1, ipc: 0.62, match: /i5-7200U/i },
|
|
{ name: "Intel Core i5-8250U", ghz: 3.4, ipc: 0.62, match: /i5-8250U/i },
|
|
{ name: "Intel Core i5-9400F", ghz: 4.1, ipc: 0.62, match: /i5-9400/i },
|
|
{ name: "Intel Core i7-9700K", ghz: 4.9, ipc: 0.62, match: /i7-9700K/i },
|
|
{ name: "Intel Core i5-10400", ghz: 4.3, ipc: 0.62, match: /i5-10400/i },
|
|
{ name: "Intel Core i5-1135G7", ghz: 4.2, ipc: 0.78, match: /i5-1135G7/i },
|
|
{ name: "Intel Core i5-12400", ghz: 4.4, ipc: 0.95, match: /i5-12400/i },
|
|
{ name: "Intel Core i5-13600K", ghz: 5.1, ipc: 0.95, match: /i5-13600K/i },
|
|
{ name: "Intel Core i7-13700K / KF", ghz: 5.4, ipc: 0.95, match: /i7-13700K/i },
|
|
{ name: "Intel Core i9-14900K", ghz: 6.0, ipc: 0.95, match: /i9-14900K/i },
|
|
{ name: "AMD Ryzen 5 3600", ghz: 4.2, ipc: 0.72, match: /Ryzen 5 3600/i },
|
|
{ name: "AMD Ryzen 5 5600X", ghz: 4.6, ipc: 0.88, match: /Ryzen 5 5600X?\b/i },
|
|
{ name: "AMD Ryzen 7 5800X3D", ghz: 4.5, ipc: 0.88, match: /5800X3D/i },
|
|
{ name: "AMD Ryzen 5 7600X", ghz: 5.3, ipc: 1.0, match: /Ryzen 5 7600/i },
|
|
{ name: "AMD Ryzen 7 7800X3D", ghz: 5.0, ipc: 1.0, match: /7800X3D/i },
|
|
{ name: "AMD Ryzen 9 7950X", ghz: 5.7, ipc: 1.0, match: /Ryzen 9 7950X(?!3D)/i },
|
|
{ name: "AMD Ryzen 7 9700X", ghz: 5.5, ipc: 1.12, match: /Ryzen 7 9700X/i },
|
|
{ name: "AMD Ryzen 7 7840U / HS", ghz: 5.1, ipc: 1.0, match: /7840(U|HS)/i },
|
|
{ name: "Steam Deck (AMD Zen 2, 4 cores)", ghz: 3.5, ipc: 0.72, match: /AMD Custom APU 0405|Van ?Gogh/i },
|
|
{ name: "Apple M1", ghz: 3.2, ipc: 1.25, match: /^Apple M1$/i },
|
|
{ name: "Apple M2", ghz: 3.5, ipc: 1.28, match: /^Apple M2$/i },
|
|
{ name: "Apple M3", ghz: 4.05, ipc: 1.38, match: /^Apple M3$/i },
|
|
{ name: "Apple M4", ghz: 4.4, ipc: 1.5, match: /^Apple M4$/i },
|
|
{ name: "Apple M4 Pro", ghz: 4.5, ipc: 1.5, match: /^Apple M4 Pro$/i },
|
|
];
|
|
|
|
export const singleThread = (cpu) => cpu.ghz * cpu.ipc;
|
|
export const findGpu = (name) => GPUS.find((g) => g.name === name || g.match.test(name || "")) || null;
|
|
export const findCpu = (name) => CPUS.find((c) => c.name === name || c.match.test(name || "")) || null;
|
|
|
|
// The telemetry server's hardware classes (crates/horizon-telemetry-server/src/classes.rs), which players'
|
|
// results are broken down by: memory and a GPU's own memory in coarse steps.
|
|
export function ramClass(gb) {
|
|
if (!(gb > 0)) return null;
|
|
return gb <= 5 ? "4 GB or less" : gb <= 10 ? "8 GB" : gb <= 20 ? "16 GB" : gb <= 40 ? "32 GB" : "64 GB or more";
|
|
}
|
|
export function vramClass(gpu) {
|
|
if (!gpu) return null;
|
|
if (!gpu.vram_gb) return "shared";
|
|
const mb = gpu.vram_gb * 1024;
|
|
for (const [max, name] of [[2560, "2 GB or less"], [4608, "4 GB"], [6656, "6 GB"], [8704, "8 GB"], [12800, "12 GB"], [16896, "16 GB"]]) if (mb <= max) return name;
|
|
return "more than 16 GB";
|
|
}
|