Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(675)

Side by Side Diff: src/example/xhr_benchmark.html

Issue 147190043: [benchmark] Add warm-up iteration config (Closed) Base URL: http://pywebsocket.googlecode.com/svn/trunk/
Patch Set: Created 11 years, 1 month ago
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/example/benchmark.js ('k') | src/example/xhr_benchmark.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!-- 1 <!--
2 Copyright 2013, Google Inc. 2 Copyright 2013, Google Inc.
3 All rights reserved. 3 All rights reserved.
4 4
5 Redistribution and use in source and binary forms, with or without 5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are 6 modification, are permitted provided that the following conditions are
7 met: 7 met:
8 8
9 * Redistributions of source code must retain the above copyright 9 * Redistributions of source code must retain the above copyright
10 notice, this list of conditions and the following disclaimer. 10 notice, this list of conditions and the following disclaimer.
(...skipping 28 matching lines...) Expand all
39 var addressBox = null; 39 var addressBox = null;
40 40
41 function getConfig() { 41 function getConfig() {
42 return { 42 return {
43 prefixUrl: addressBox.value, 43 prefixUrl: addressBox.value,
44 printSize: getBoolFromCheckBox('printsize'), 44 printSize: getBoolFromCheckBox('printsize'),
45 numXHRs: getIntFromInput('numXHRs'), 45 numXHRs: getIntFromInput('numXHRs'),
46 async: getBoolFromCheckBox('async'), 46 async: getBoolFromCheckBox('async'),
47 // Initial size of messages. 47 // Initial size of messages.
48 numIterations: getIntFromInput('numiterations'), 48 numIterations: getIntFromInput('numiterations'),
49 numWarmUpIterations: getIntFromInput('numwarmupiterations'),
49 startSize: getIntFromInput('startsize'), 50 startSize: getIntFromInput('startsize'),
50 // Stops benchmark when the size of message exceeds this threshold. 51 // Stops benchmark when the size of message exceeds this threshold.
51 stopThreshold: getIntFromInput('stopthreshold'), 52 stopThreshold: getIntFromInput('stopthreshold'),
52 // If the size of each message is small, send/receive multiple messages 53 // If the size of each message is small, send/receive multiple messages
53 // until the sum of sizes reaches this threshold. 54 // until the sum of sizes reaches this threshold.
54 // minTotal: getIntFromInput('mintotal'), 55 // minTotal: getIntFromInput('mintotal'),
55 // minTotal is not yet implemented on XHR benchmark 56 // minTotal is not yet implemented on XHR benchmark
56 multipliers: getIntArrayFromInput('multipliers'), 57 multipliers: getIntArrayFromInput('multipliers'),
57 verifyData: getBoolFromCheckBox('verifydata') 58 verifyData: getBoolFromCheckBox('verifydata')
58 }; 59 };
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 Parameters: 156 Parameters:
156 157
157 <br/> 158 <br/>
158 159
159 <table> 160 <table>
160 <tr> 161 <tr>
161 <td>Num XHRs</td> 162 <td>Num XHRs</td>
162 <td><input type="text" id="numXHRs" value="1"></td> 163 <td><input type="text" id="numXHRs" value="1"></td>
163 </tr> 164 </tr>
164 <tr> 165 <tr>
165 <td>Number of Iterations</td> 166 <td>Number of iterations</td>
166 <td><input type="text" id="numiterations" value="1"></td> 167 <td><input type="text" id="numiterations" value="1"></td>
167 </tr> 168 </tr>
168 <tr> 169 <tr>
170 <td>Number of warm-up iterations</td>
171 <td><input type="text" id="numwarmupiterations" value="0"></td>
172 </tr>
173 <tr>
169 <td>Start size</td> 174 <td>Start size</td>
170 <td><input type="text" id="startsize" value="10240"></td> 175 <td><input type="text" id="startsize" value="10240"></td>
171 </tr> 176 </tr>
172 <tr> 177 <tr>
173 <td>Stop threshold</td> 178 <td>Stop threshold</td>
174 <td><input type="text" id="stopthreshold" value="102400000"></td> 179 <td><input type="text" id="stopthreshold" value="102400000"></td>
175 </tr> 180 </tr>
176 <tr> 181 <tr>
177 <td>Minimum total</td> 182 <td>Minimum total</td>
178 <td><input type="text" id="mintotal" value="102400000"></td> 183 <td><input type="text" id="mintotal" value="102400000"></td>
(...skipping 29 matching lines...) Expand all
208 <div id="summary_div"> 213 <div id="summary_div">
209 Summary 214 Summary
210 <textarea 215 <textarea
211 id="summary" rows="20" style="width: 100%" readonly></textarea> 216 id="summary" rows="20" style="width: 100%" readonly></textarea>
212 </div> 217 </div>
213 218
214 Note: Effect of RTT and time spent for ArrayBuffer creation in receive benchmark s are not eliminated. 219 Note: Effect of RTT and time spent for ArrayBuffer creation in receive benchmark s are not eliminated.
215 220
216 </body> 221 </body>
217 </html> 222 </html>
OLDNEW
« no previous file with comments | « src/example/benchmark.js ('k') | src/example/xhr_benchmark.js » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b