字符串连接

Benchmark created on


Setup

var arr = new Array(100).fill(1).map((item, index) => index);

Test runner

Ready to run.

Testing in
TestOps/sec
join
var ans = arr.join('_')
ready
stringify
var ans = JSON.stringify(arr)
ready

Revisions

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