Script Preparation code:
x
 
const variable = document.createElement("div")
const array = [document.createElement("div")]
function setVariable() {
    variable.setAttribute("style", `transform: translate3d(${Math.random()}px, ${Math.random()}px, ${Math.random()}px)`)
}
function setArray() {
    array.forEach((elem)=>{ elem.setAttribute("style", `transform: translate3d(${Math.random()}px, ${Math.random()}px, ${Math.random()}px)`) })
}
Tests:
  • Single element in variable

     
    setVariable()
  • Single element in array

     
    setArray()
Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results

Experimental features:

  • Test case name Result
    Single element in variable
    Single element in array

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: one month ago)
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/133.0.0.0 Safari/537.36
Chrome 133 on Linux
View result in a separate tab
Test name Executions per second
Single element in variable 930289.1 Ops/sec
Single element in array 952574.5 Ops/sec