Get string from array

Benchmark created on


Preparation HTML

<script>
const strArray = [{value: "a"}];
</script>

Test runner

Ready to run.

Testing in
TestOps/sec
charCodeAt
const char = String.fromCharCode(0 + "a".charCodeAt(0));
ready
Array index
const char = strArray[0].value;
ready

Revisions

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