6 ms·
The performance seriously decreases. I haven't measure how much, but I guess it'd only work for very very small scripts.
by alcuadrado 12y ago
The performance seriously decreases. I haven't measure how much, but I guess it'd only work for very very small scripts.
- xxs 12y agoonce the eval() invocation is complete and the code generated/compiled the performance should be the same as the code normally written. Basically it's only compiler from []{}!+ to javascript.
- calibwam 12y agoHowever, your js files would get really big, and download latency could actually be a performance drop.
- xxs 12y agoTrue, however they should be very well compressible by 'deflate' too, the main concern is the initial parsing grok by the JIT. Yet, on runtime the scripts will be good as any.
- SaturateDK 12y agohttp://jsperf.com/jsfuck-test http://jsperf.com/jsfuck-test