Javascript parsing performance I am using some string which contains an html. As follows

var pagerHtml = '&lt;span&gt;No.Of Records&lt;/span&gt;&lt;select class="rmselect" id="records" &gt;&lt;option value="10"&gt;10&lt;/option&gt;&lt;option value="20"&gt;20&lt;/option&gt;&lt;option value="40"&gt;40&lt;/option&gt;&lt;option value="80"&gt;80&lt;/option&gt;&lt;option value="100"&gt;100&lt;/option&gt;&lt;/select&gt;';


Another is with " and escape sequence \" for " in the html as follows

var pagerHtml = "&lt;span&gt;No.Of Records&lt;/span&gt;&lt;select class=\"rmselect\" id=\"records\" &gt;&lt;option value=\"10\"&gt;10&lt;/option&gt;&lt;option value=\"20\"&gt;20&lt;/option&gt;&lt;option value=\"40\"&gt;40&lt;/option&gt;&lt;option value=\"80\"&gt;80&lt;/option&gt;&lt;option value=\"100\"&gt;100&lt;/option&gt;&lt;/select&gt;";


And I am writing this html to a div using jquery

Which one gives the better performance while parsing?

Is there any performance difference on parsing escape sequence?
According to this jsperf test, there is no consistent difference between parsing a string literal with and without escape sequences.

There are differences depending on what browser you use, but they are quite small, and Chrome even seems to parse strings with escape sequences faster than strings without.