ES6 Template Literals vs. String (v28)

Revision 28 of this benchmark created on


Test runner

Ready to run.

Testing in
TestOps/sec
Template Literals
var test = `<body>
  <article>
    <time datetime="Date().now()">测试文本</time>
  </article>
</body>`;
ready
String
var test = "<body><article><time datetime=\"Date().now()\">测试文本</time></article></body>";
ready

Revisions

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