2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
8 echo 'usage: test-throughput path/to/tests.json [0..n test_index]'
9 echo ' run in the same directory as performance_browser_tests'
13 num_tests
=$
(grep -o '\"url\"' $1 |
wc -l)
14 filter
='*ThroughputTest*TestURL'
16 args1
='--gtest_filter='$filter' --gtest_also_run_disabled_tests'
17 args2
='--window-size=1400,1100 --window-position=0,0 --enable-gpu'
21 for (( i
=0; i
<$num_tests; i
++ ))
23 .
/performance_browser_tests
$args1 $args2 --extra-chrome-flags=$1:$i
26 .
/performance_browser_tests
$args1 $args2 --extra-chrome-flags=$1:$2