charAt vs index (v11)

Revision 11 of this benchmark created by Joshua Wise on


Test runner

Ready to run.

Testing in
TestOps/sec
charAt
var s = 'string'.charAt(5);
ready
index
var s = 'string'[5];
ready
whole string
var s = 'string';
ready

Revisions

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