Test 2

Benchmark created on


Description

Test btoa

Setup

const object = {
    "name": "service",
    "event": "event123412314",
    "args": {
        "id": 1,
        "key": "1239840128340192384",
        "userIsNotHuman": "NONE",
        "userSuperPower": "NONE",
        "userNote": "",
        "userStatus": "NONE",
        "status": "ONLINE"
    },
    "superHeroId": "batman&robin"
}

Test runner

Ready to run.

Testing in
TestOps/sec
Stringify
JSON.stringify(object)
ready
Encoding with Base 64
btoa(object)
ready
Encoding with Base 64 reverse
btoa(object).split("").reverse().join("")
ready

Revisions

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