concat/join-with-push/join-without-push-j3ekir2 (v195)

Revision 195 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
array conversation
const img = "https://techolay.net/sosyal/data/avatars/s/7/7281.jpg?1724126434";
const imgArr = Array.from(img);
imgArr[41] = "o";
const res = imgArr.join("");
ready
slice
const img = "https://techolay.net/sosyal/data/avatars/s/7/7281.jpg?1724126434";
const res = img.slice(0, 41) + "o" + img.slice(42);
ready
slice template literal
const img = "https://techolay.net/sosyal/data/avatars/s/7/7281.jpg?1724126434";
const res = `${img.slice(0, 41)}o${img.slice(42)}`;
ready
substring
const img = "https://techolay.net/sosyal/data/avatars/s/7/7281.jpg?1724126434";
const res = img.substring(0, 41) + "o" + img.substring(42);
ready
substring template literal
const img = "https://techolay.net/sosyal/data/avatars/s/7/7281.jpg?1724126434";
const res = `${img.substring(0, 41)}o${img.substring(42)}`;
ready
regex
const img = "https://techolay.net/sosyal/data/avatars/s/7/7281.jpg?1724126434";
const res = img.replace(/\/[sml]\//, "/o/");
ready

Revisions

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