Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CPU Score #126

Open
elsbrock opened this issue Feb 2, 2025 · 0 comments
Open

CPU Score #126

elsbrock opened this issue Feb 2, 2025 · 0 comments

Comments

@elsbrock
Copy link
Owner

elsbrock commented Feb 2, 2025

WITH device_data AS (
  SELECT 
    device.name AS cpu_name,
    device.score,
    device.multicore_score
  FROM (
    SELECT unnest(devices) AS device
    FROM read_json('https://browser.geekbench.com/processor-benchmarks.json')
  )
)
SELECT s.cpu, d.score, d.multicore_score
FROM server s
JOIN device_data d ON LEFT(s.cpu, 3) = LEFT(d.cpu_name, 3)
WHERE levenshtein(lower(s.cpu), lower(d.cpu_name)) <= 3
ORDER BY levenshtein(lower(s.cpu), lower(d.cpu_name))
LIMIT 1;

Need to research on the terms of the data.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant