Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
cpu cache test
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/136.0.0.0 Safari/537.36
Browser:
Chrome 136
Operating system:
Windows
Device Platform:
Desktop
Date tested:
one year ago
Test name
Executions per second
i,j
18696.7 Ops/sec
j,i
18334.6 Ops/sec
i,j pre-optimized
93315.5 Ops/sec
HTML Preparation code:
<!--your preparation HTML code goes here-->
Script Preparation code:
const createSubArray = () => Array(100).fill(Math.random()); var src = Array(100).fill(createSubArray()) var dest = Array(100).fill(createSubArray())
Tests:
i,j
for(let i=0; i<100; i++){ for(let j=0; j<100; j++){ dest[i][j] = src[i][j]; } }
j,i
for(let i=0; i<100; i++){ for(let j=0; j<100; j++){ dest[j][i] = src[j][i]; // 添え字の順番が逆 } }
i,j pre-optimized
for(let i=0; i<100; i++){ const dest_i = dest[i] const src_i = src[i] for(let j=0; j<100; j++){ dest_i[j] = src_i[j]; } }