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

Side by Side Diff: PerformanceTests/XMLHttpRequest/send.html

Issue 177983010: Add a performance test for sending a batch of XMLHttpRequests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <script src="../resources/runner.js"></script>
3 <script>
4 // Use measureTime instead of runsPerSecond to avoid a ridiculous number of requ ests in flight.
5 // 100 is realistic, 1000 is plausible, but 10000 is crazy.
6 PerfTestRunner.measureTime({
7 description: "Measure the time it takes to create, open, and send 1000 async XMLHttpRequests",
8 run: function() {
9 var xhrs = [];
10 for (var i = 0; i < 1000; ++i) {
11 var xhr = new XMLHttpRequest();
12 xhr.open("GET", "file" + i + ".txt", true);
13 xhr.send();
14 xhrs.push(xhr);
15 }
16 },
17 });
18 </script>
OLDNEW
« 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