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

Unified Diff: third_party/WebKit/PerformanceTests/Pywebsocket/resources/util_performance_test.js

Issue 2844633002: Remove blink_perf.pywebsocket tests (Closed)
Patch Set: Rebase 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 | « third_party/WebKit/PerformanceTests/Pywebsocket/resources/generate.py ('k') | tools/perf/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/PerformanceTests/Pywebsocket/resources/util_performance_test.js
diff --git a/third_party/WebKit/PerformanceTests/Pywebsocket/resources/util_performance_test.js b/third_party/WebKit/PerformanceTests/Pywebsocket/resources/util_performance_test.js
deleted file mode 100644
index 8ad9c87ce57c60cdc5b8cdf4dbbd8b26747b0c9b..0000000000000000000000000000000000000000
--- a/third_party/WebKit/PerformanceTests/Pywebsocket/resources/util_performance_test.js
+++ /dev/null
@@ -1,48 +0,0 @@
-const numIterations = 10;
-const numWarmUpIterations = 5;
-
-function startPerformanceTest(connectionType, benchmarkName,
- dataType, isWorker, async, verifyData){
- var iframe = document.createElement('iframe');
- if (connectionType === 'WebSocket') {
- iframe.src = "http://localhost:8001/performance_test_iframe.html";
- } else if (connectionType === 'XHR') {
- iframe.src = "http://localhost:8001/xhr_performance_test_iframe.html";
- } else {
- iframe.src = "http://localhost:8001/fetch_performance_test_iframe.html";
- }
- iframe.onload = function() {
- var child = iframe.contentWindow;
- PerfTestRunner.prepareToMeasureValuesAsync({
- done: function() {
- child.postMessage({'command': 'stop'},
- 'http://localhost:8001');
- },
- unit: 'ms',
- iterationCount: numIterations
- });
-
- child.postMessage({'command': 'start',
- 'connectionType': connectionType,
- 'benchmarkName': benchmarkName,
- 'dataType': dataType,
- 'isWorker': isWorker,
- 'async': async,
- 'verifyData': verifyData,
- 'numIterations': numIterations,
- 'numWarmUpIterations': numWarmUpIterations},
- 'http://localhost:8001');
- };
- document.body.appendChild(iframe);
-}
-
-onmessage = function(message) {
- if (message.data.command === 'log') {
- PerfTestRunner.log(message.data.value);
- } else if (message.data.command === 'measureValue') {
- PerfTestRunner.measureValueAsync(message.data.value);
- PerfTestRunner.gc();
- } else if (message.data.command === 'notifyAbort') {
- PerfTestRunner.logFatalError("benchmark aborted");
- }
-};
« no previous file with comments | « third_party/WebKit/PerformanceTests/Pywebsocket/resources/generate.py ('k') | tools/perf/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698