Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Unified Diff: third_party/WebKit/PerformanceTests/Bindings/sequence-conversion-array.html

Issue 2821493002: bindings: Add performance test for JS->WebIDL sequence conversions. (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698