3 ms·
I set up a jsperf to do some benchmarking: http://jsperf.com/noisy http://jsperf.com/noisy If you can help out by running the tests, it'll be great to compare
by zbanks 16y ago
I set up a jsperf to do some benchmarking:
http://jsperf.com/noisy http://jsperf.com/noisy
If you can help out by running the tests, it'll be great to compare browsers.
This isn't exactly the perfect tool for the job, but it's close enough.
- flat20 16y agoI moved this line out of the for loop which made it slightly faster: var numPixels = options.intensity * Math.pow(options.size, 2); http://jsperf.com/noisy/2 http://jsperf.com/noisy/2