Enum v.s. Normal JSON

Benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Enum
var NormalEnum;
(function (NormalEnum) {
    NormalEnum["MemberA"] = "MemberA";
    NormalEnum["MemberB"] = "MemberB";
    NormalEnum["MemberC"] = "MemberC";
})(NormalEnum || (NormalEnum = {}));
ready
Normal JSON
const JSONObject = {
    MemberA: 'MemberA',
    MemberB: 'MemberB',
    MemberC: 'MemberC'
};
ready

Revisions

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