Separate Simple Backend creation from initialization.
[chromium-blink-merge.git] / tools / perf / test-throughput.sh
blobd58a4e970889cb9549be006002f20e370f27bbe3
1 #!/bin/bash
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.
6 if [ -z "$1" ]
7 then
8 echo 'usage: test-throughput path/to/tests.json [0..n test_index]'
9 echo ' run in the same directory as performance_browser_tests'
10 exit -1
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'
19 if [ -z "$2" ]
20 then
21 for (( i=0; i<$num_tests; i++ ))
23 ./performance_browser_tests $args1 $args2 --extra-chrome-flags=$1:$i
24 done
25 else
26 ./performance_browser_tests $args1 $args2 --extra-chrome-flags=$1:$2