parse vs eval

Benchmark created on


Setup

let foo = '[-0.005633954890072346, -0.009736019186675549, 0.018042273819446564, -0.029630178585648537, -0.03344288468360901, 0.034259893000125885, -0.010389626026153564, -0.021392008289694786, -0.02268560416996479, -0.03543093800544739, 0.0364113487303257, 0.02308049239218235, -0.010090055875480175, -0.020602233707904816, -0.02367963269352913, -0.010655153542757034, 0.015999751165509224, -0.0320267379283905, 0.018287375569343567, -0.010553027503192425, 0.008891777135431767, -0.0014672112883999944, -0.041912540793418884, 0.014324883930385113]'

Test runner

Ready to run.

Testing in
TestOps/sec
parse
let bar = JSON.parse(foo)
ready
eval
let bar = eval(foo)
ready

Revisions

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