Reflect.ownKeys vs Object.keys

Benchmark created on


Setup

var obj ={"id":1,"title":"iPhone 9","description":"An apple mobile which is nothing like apple","price":549,"discountPercentage":12.96,"rating":4.69,"stock":94,"brand":"Apple","category":"smartphones","thumbnail":"https://cdn.dummyjson.com/product-images/1/thumbnail.jpg","images":["https://cdn.dummyjson.com/product-images/1/1.jpg","https://cdn.dummyjson.com/product-images/1/2.jpg","https://cdn.dummyjson.com/product-images/1/3.jpg","https://cdn.dummyjson.com/product-images/1/4.jpg","https://cdn.dummyjson.com/product-images/1/thumbnail.jpg"]}

Test runner

Ready to run.

Testing in
TestOps/sec
Reflect.ownKeys
Reflect.ownKeys(obj)
ready
Object.keys
Object.keys(obj)
ready

Revisions

You can edit these tests or add more tests to this page by appending /edit to the URL.