Tests:
  • Using the spread operator

  • Well-known Keys, Create new object while copying, [] accessor

  • Well-known Keys, Manually copying properties, [] accessor

  • Object.entries() + map

  • Object.keys() + map

  • Well-Known Numbered Keynames w/Known Length

  • Well-Known Keys, for..in

  • Well-Known Keys, for..of

  • Well-Known Keys, forEach

  • Object Assign pre-created

  • Well-known Keys, extract and create new object while copying, . accessor

  • structuredClone

  • Iterable

  • Iterate Copy - Object.entries() + for..of

  • Iterate Copy - Object.keys().forEach

  • Iterate Copy - for..in

  • Iterate Copy - Object.entries()

  • Statically create new same object from scratch

  • Well-known Keys, Create new object while copying

  • Well-known Keys, Manually copying properties

  • Using Object.assign

  • JSON Copy

  • Well-known Keys, extract and create new object while copying, [] accessor

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    Using the spread operator
    Well-known Keys, Create new object while copying, [] accessor
    Well-known Keys, Manually copying properties, [] accessor
    Object.entries() + map
    Object.keys() + map
    Well-Known Numbered Keynames w/Known Length
    Well-Known Keys, for..in
    Well-Known Keys, for..of
    Well-Known Keys, forEach
    Object Assign pre-created
    Well-known Keys, extract and create new object while copying, . accessor
    structuredClone
    Iterable
    Iterate Copy - Object.entries() + for..of
    Iterate Copy - Object.keys().forEach
    Iterate Copy - for..in
    Iterate Copy - Object.entries()
    Statically create new same object from scratch
    Well-known Keys, Create new object while copying
    Well-known Keys, Manually copying properties
    Using Object.assign
    JSON Copy
    Well-known Keys, extract and create new object while copying, [] accessor

    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!