Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const tolerance = 14
- const tasks = 8
- const cores = 8
- const hz_min = 1
- const hz_max = 2000
- const inc = 20
- const cycles = tasks / cores
- for (let hz = hz_min; hz < hz_max + 1; hz += inc) {
- const ms = cycles * 1000 / hz
- if (ms > tolerance)
- continue
- console.log(`${hz}hz → ${ms}ms`)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement