single vs double quote (v3)

Revision 3 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
single
for (var i = 1; i < 1e4; i++) {

 var a, b, c
 a = 'kala'
 b = ''
 c = 'hello "world" with \'escape'
 a = 'kala' + ' mees'
 b = '' + ''
 c = 'hello "world" with \'escape' + ' end'
 a = 'kala'
 b = ''
 c = 'hello "world" with \'escape'
 a = 'kala' + ' mees'
 b = '' + ''
 c = 'hello "world" with \'escape' + ' end'
 a = 'kala'
 b = ''
 c = 'hello "world" with \'escape'
 a = 'kala' + ' mees'
 b = '' + ''
 c = 'hello "world" with \'escape' + ' end'

}
ready
double
for (var i = 1; i < 1e4; i++) {

 var a, b, c
 a = "kala"
 b = ""
 c = "hello 'world' with \"escape"
 a = "kala" + " mees"
 b = "" + ""
 c = "hello 'world' with \"escape" + " end"
 a = "kala"
 b = ""
 c = "hello 'world' with \"escape"
 a = "kala" + " mees"
 b = "" + ""
 c = "hello 'world' with \"escape" + " end"
 a = "kala"
 b = ""
 c = "hello 'world' with \"escape"
 a = "kala" + " mees"
 b = "" + ""
 c = "hello 'world' with \"escape" + " end"

}
ready

Revisions

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