es6-模板字符串 (v2)

Revision 2 of this benchmark created on


Setup

const data = 100

Test runner

Ready to run.

Testing in
TestOps/sec
es6-模板字符串
const str = `${data}abc${data}`
ready
es6-普通字符串
const str = data + 'abc' + data
ready
es6-模板字符串(通过babel转译es5)
"use strict";

var str = "".concat(data, "abc").concat(data);
ready

Revisions

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