Code runs via new Function(). Each snippet is called N times and timed with performance.now().
工具說明
Online JS benchmark tool — enter two code snippets, run them thousands of times, and compare ops/sec (operations per second) to determine which is faster.
benchmark性能javascriptperformanceops测试