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

Side by Side Diff: src/example/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 | « no previous file | src/example/benchmark.js » ('j') | src/example/benchmark.js » ('J')
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 27 matching lines...) Expand all
38 <script> 38 <script>
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 numSockets: getIntFromInput('numsockets'), 45 numSockets: getIntFromInput('numsockets'),
46 // Initial size of messages. 46 // Initial size of messages.
47 numIterations: getIntFromInput('numiterations'), 47 numIterations: getIntFromInput('numiterations'),
48 numWarmUpIterations: getIntFromInput('numwarmupiterations'),
48 startSize: getIntFromInput('startsize'), 49 startSize: getIntFromInput('startsize'),
49 // Stops benchmark when the size of message exceeds this threshold. 50 // Stops benchmark when the size of message exceeds this threshold.
50 stopThreshold: getIntFromInput('stopthreshold'), 51 stopThreshold: getIntFromInput('stopthreshold'),
51 // If the size of each message is small, send/receive multiple messages 52 // If the size of each message is small, send/receive multiple messages
52 // until the sum of sizes reaches this threshold. 53 // until the sum of sizes reaches this threshold.
53 minTotal: getIntFromInput('mintotal'), 54 minTotal: getIntFromInput('mintotal'),
54 multipliers: getIntArrayFromInput('multipliers'), 55 multipliers: getIntArrayFromInput('multipliers'),
55 verifyData: getBoolFromCheckBox('verifydata') 56 verifyData: getBoolFromCheckBox('verifydata')
56 }; 57 };
57 } 58 }
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 Parameters: 154 Parameters:
154 155
155 <br/> 156 <br/>
156 157
157 <table> 158 <table>
158 <tr> 159 <tr>
159 <td>Num sockets</td> 160 <td>Num sockets</td>
160 <td><input type="text" id="numsockets" value="1"></td> 161 <td><input type="text" id="numsockets" value="1"></td>
161 </tr> 162 </tr>
162 <tr> 163 <tr>
163 <td>Number of Iterations</td> 164 <td>Number of Iterations</td>
tyoshino (chromium.org) 2014/09/26 13:36:10 please also fix this to "iterations"
164 <td><input type="text" id="numiterations" value="1"></td> 165 <td><input type="text" id="numiterations" value="1"></td>
165 </tr> 166 </tr>
166 <tr> 167 <tr>
168 <td>Number of Warm-up Iterations</td>
tyoshino (chromium.org) 2014/09/26 13:36:10 use small letter for warm-up and iterations.
169 <td><input type="text" id="numwarmupiterations" value="0"></td>
170 </tr>
171 <tr>
167 <td>Start size</td> 172 <td>Start size</td>
168 <td><input type="text" id="startsize" value="10240"></td> 173 <td><input type="text" id="startsize" value="10240"></td>
169 </tr> 174 </tr>
170 <tr> 175 <tr>
171 <td>Stop threshold</td> 176 <td>Stop threshold</td>
172 <td><input type="text" id="stopthreshold" value="102400000"></td> 177 <td><input type="text" id="stopthreshold" value="102400000"></td>
173 </tr> 178 </tr>
174 <tr> 179 <tr>
175 <td>Minimum total</td> 180 <td>Minimum total</td>
176 <td><input type="text" id="mintotal" value="102400000"></td> 181 <td><input type="text" id="mintotal" value="102400000"></td>
(...skipping 12 matching lines...) Expand all
189 <div id="summary_div"> 194 <div id="summary_div">
190 Summary 195 Summary
191 <textarea 196 <textarea
192 id="summary" rows="20" style="width: 100%" readonly></textarea> 197 id="summary" rows="20" style="width: 100%" readonly></textarea>
193 </div> 198 </div>
194 199
195 Note: Effect of RTT is not eliminated. 200 Note: Effect of RTT is not eliminated.
196 201
197 </body> 202 </body>
198 </html> 203 </html>
OLDNEW
« no previous file with comments | « no previous file | src/example/benchmark.js » ('j') | src/example/benchmark.js » ('J')

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