Script Preparation code:
Tests:
  • Reduce + spread

  • Loop (for...in) with .keys()

  • Loop (for...in) with .entries()

  • Reduce + mutate

  • Reduce + mutate with entries()

  • Map with fromEntries

  • Loop (for...in) with mutate

  • Loop (for...in) with mutate (Object.assign)

  • Loop (for...in) with mutate (save object[key])

  • Loop (for...in) with unsafe mutate

  • Object.fromEntries with map

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Reduce + spread
    Loop (for...in) with .keys()
    Loop (for...in) with .entries()
    Reduce + mutate
    Reduce + mutate with entries()
    Map with fromEntries
    Loop (for...in) with mutate
    Loop (for...in) with mutate (Object.assign)
    Loop (for...in) with mutate (save object[key])
    Loop (for...in) with unsafe mutate
    Object.fromEntries with map

    Fastest: N/A

    Slowest: N/A

Latest run results:

No previous run results

This benchmark does not have any results yet. Be the first one to run it!