Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Run results for:
Test c vs t
Go to the benchmark
Embed
Embed Benchmark Result
Run details:
User agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/142.0.0.0 Safari/537.36
Browser:
Chrome 142
Operating system:
Mac OS X 10.15.7
Device Platform:
Desktop
Date tested:
6 months ago
Test name
Executions per second
concat
179762.8 Ops/sec
template
179175.3 Ops/sec
Script Preparation code:
const get_c = (x,y,s) => { return "translate(" + x + "px," + y + "px) scale(" + s + ")" } const get_t = (x,y,s) => { return `translate(${x}px,${y}px) scale(${s})` }
Tests:
concat
let nums = []; for(let i = 0; i < 240; ++i) { nums.push(get_c(i * 520,i * 540,8)); }
template
let nums = []; for(let i = 0; i < 240; ++i) { nums.push(get_t(i * 520,i * 540,8)); }