literalconcat

JavaScript performance comparison

Test case created by Dan Rzeppa

Test runner

Warning! For accurate results, please disable Firebug before running the tests. (Why?)

Java applet disabled.

Testing in CCBot 2.0.0 / Other 0.0.0
Test Ops/sec
single
var xml = "<?xml version='1.0' encoding='utf-8'?> <soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xsd='http://www.w3.org/2001/XMLSchema'><soap:Body><Retrieve xmlns='http://schemas.mything.com/xxx/yyyy/something'></Retrieve></soap:Body></soap:Envelope>"
pending…
concat
var xml = "<?xml version='1.0' encoding='utf-8'?>" + "<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/'" + " xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'" + " xmlns:xsd='http://www.w3.org/2001/XMLSchema'>" + "<soap:Body>" + "<Retrieve xmlns='http://schemas.mything.com/xxx/yyyy/something'>" + "</Retrieve>" + "</soap:Body>" + "</soap:Envelope>"
pending…
linecont
var xml = "<?xml version='1.0' encoding='utf-8'?> \
	<soap:Envelope xmlns:soap='http://schemas.xmlsoap.org/soap/envelope/' \
	xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' \
	xmlns:xsd='http://www.w3.org/2001/XMLSchema'> \
	<soap:Body> \
	<Retrieve xmlns='http://schemas.mything.com/xxx/yyyy/something'> \
	</Retrieve> \
	</soap:Body> \
	</soap:Envelope>"
pending…

Compare results of other browsers

Revisions

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

0 Comments