Crazy mad task (v2)

Revision 2 of this benchmark created by Paul Grenier on


Description

Make a one-liner that makes a string of given length filled with given character.

Test runner

Ready to run.

Testing in
TestOps/sec
Recursion
(function f(c, l) { return (!l || l === 1) ? c : f(c += c[0], --l) })('=', 10000)
ready
Array
Array(14534).join('=')
ready
Array.prototype
Array.prototype.join.call({length:14534}, "=");
ready

Revisions

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

  • Revision 1: published by false on
  • Revision 2: published by Paul Grenier on