split v. json

Benchmark created on


Setup

const value_string = 'TD3qKTHzqN37N3gsPciaZRQQnHCWxdDDdD::TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t';
const value_json = '["TD3qKTHzqN37N3gsPciaZRQQnHCWxdDDdD","TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t"]'

Test runner

Ready to run.

Testing in
TestOps/sec
split
const [ a, b ] = value_string.split('::');
ready
json
const [ a, b ] = JSON.parse(value_json);
ready

Revisions

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