Object destructuring

Benchmark created on


Setup

var obj = {"a": 1,"b": 2,"c": 3,"d": 4,"e": 5,"f": 6,"g": 7,"h": 8,"i": 9,"j": 10,"k": 11,"l": 12,"m": 13,"n": 14,"o": 15,"p": 16,"q": 17,"r": 18,"s": 19,"t": 20,"u": 21,"v": 22,"w": 23,"x": 24,"y": 25,"z": 26}

Test runner

Ready to run.

Testing in
TestOps/sec
Object desctructuring
let {a,b,c,d,e,f,g,h,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z} = obj;
ready
Classic property accessing
let a = obj.a,b = obj.b,c = obj.c,d = obj.d,e = obj.e,f = obj.f,g = obj.g,h = obj.h,i = obj.i,j = obj.j,k = obj.k,l = obj.l,m = obj.m,n = obj.n,o = obj.o,p = obj.p,q = obj.q,r = obj.r,s = obj.s,t = obj.t,u = obj.u,v = obj.v,w = obj.w,x = obj.x,y = obj.y,z = obj.z;
ready

Revisions

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