Commit 74dc3bfe authored by Vse Mozhet Byt's avatar Vse Mozhet Byt Committed by James M Snell
Browse files

benchmark: replace [].join() with ''.repeat()

Also add a benchmark to compare both ways to create strings.

PR-URL: https://github.com/nodejs/node/pull/12170


Reviewed-By: default avatarLuigi Pinca <luigipinca@gmail.com>
Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
parent 9348f31c
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment