Toggle navigation
MeasureThat.net
Create a benchmark
Tools
Feedback
FAQ
Register
Log In
Test c vs t
(version: 1)
Comparing performance of:
concat vs template
Created:
4 months ago
by:
Guest
Jump to the latest result
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)); }
Rendered benchmark preparation results:
Suite status:
<idle, ready to run>
Run tests (2)
Previous results
Fork
Test case name
Result
concat
template
Fastest:
N/A
Slowest:
N/A
Latest run results:
Run details:
(Test run date:
4 months ago
)
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/OS:
Chrome 142 on Mac OS X 10.15.7
View result in a separate tab
Embed
Embed Benchmark Result
Test name
Executions per second
concat
179762.8 Ops/sec
template
179175.3 Ops/sec
Related benchmarks:
reduce vs loop
reduce vs loop
Pojo vs functions
Math.imul vs. polyfill
lambdas2
Test shitty shit
prepared lambda
prepared lambda2
loop vs raw fn
Comments
Confirm delete:
Do you really want to delete benchmark?