asdfsdafdsf

Benchmark created on


Setup

const safeDict = [
    ['.', '+'],
    ['_', '/'],
    ['-', '='],
];

Test runner

Ready to run.

Testing in
TestOps/sec
Reduce
safeDict.reduce((a, v) => a.replaceAll(v[0], v[1]), "bj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-ter");
ready
Just replace alls
"bj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-terbj.vhns_rui-ter".replaceAll(".", "+").replaceAll("_", "/").replaceAll("-", "=")
ready

Revisions

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