Crazy mad task

Benchmark created by false 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

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