Chromium Code Reviews| Index: third_party/WebKit/PerformanceTests/Bindings/sequence-conversion-array.html |
| diff --git a/third_party/WebKit/PerformanceTests/Bindings/sequence-conversion-array.html b/third_party/WebKit/PerformanceTests/Bindings/sequence-conversion-array.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c988f6ee33fb06e355283728bb96d6a8c2380b29 |
| --- /dev/null |
| +++ b/third_party/WebKit/PerformanceTests/Bindings/sequence-conversion-array.html |
| @@ -0,0 +1,17 @@ |
| +<!DOCTYPE html> |
| +<html> |
| +<body> |
| +<script src="../resources/runner.js"></script> |
| +<script> |
| +let dataArray = []; |
| +for (let i = 0; i < 100000; i++) |
| + dataArray.push('abcdefg foo bar baz'); |
|
Yuki
2017/04/14 07:50:44
Will this v8::String be converted to blink::String
Raphael Kubo da Costa (rakuco)
2017/04/14 08:09:10
Since the string conversion is still going to happ
Yuki
2017/04/14 08:27:58
An empty string makes sense to me.
|
| + |
| +PerfTestRunner.measureRunsPerSecond({ |
| + description: "This benchmark measures the overhead of converting JavaScript objects into WebIDL sequences (fast path for arrays)", |
| + run: function() { |
| + new Blob(dataArray); |
| + }}); |
| +</script> |
| +</body> |
| +</html> |