| Index: tools/perf/page_sets/tough_scheduling_cases/generate_second_batch_js.sh
|
| diff --git a/tools/perf/page_sets/tough_scheduling_cases/generate_second_batch_js.sh b/tools/perf/page_sets/tough_scheduling_cases/generate_second_batch_js.sh
|
| new file mode 100755
|
| index 0000000000000000000000000000000000000000..7fe7f12d37fc41fe79052ab50a377821c24b3dc6
|
| --- /dev/null
|
| +++ b/tools/perf/page_sets/tough_scheduling_cases/generate_second_batch_js.sh
|
| @@ -0,0 +1,45 @@
|
| +#!/bin/sh
|
| +# Copyright 2015 The Chromium Authors. All rights reserved.
|
| +# Use of this source code is governed by a BSD-style license that can be
|
| +# found in the LICENSE file.
|
| +
|
| +readonly LIGHT_OPTS="\
|
| + --closure-count=10 \
|
| + --function-count=10 \
|
| + --inner-function-count=10 \
|
| + --function-call-count=1 \
|
| + --closure-call-count=1 \
|
| + --inner-function-line-count=1 \
|
| + --loop-count=5"
|
| +readonly MEDIUM_OPTS="\
|
| + --closure-count=50 \
|
| + --function-count=50 \
|
| + --inner-function-count=20 \
|
| + --function-call-count=5 \
|
| + --closure-call-count=5 \
|
| + --inner-function-line-count=2 \
|
| + --loop-count=5"
|
| +readonly HEAVY_OPTS="\
|
| + --closure-count=200 \
|
| + --function-count=200 \
|
| + --inner-function-count=40 \
|
| + --function-call-count=10 \
|
| + --closure-call-count=10 \
|
| + --inner-function-line-count=3 \
|
| + --loop-count=5"
|
| +
|
| +function generate {
|
| + local generator="./second_batch_js_generator.py"
|
| + cat << EOF
|
| +// Generated with $generator $@
|
| +//
|
| +// Copyright 2015 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +EOF
|
| + $generator $@ | yui-compressor --type js;
|
| +}
|
| +
|
| +generate $LIGHT_OPTS > second_batch_js_light.min.js
|
| +generate $MEDIUM_OPTS > second_batch_js_medium.min.js
|
| +generate $HEAVY_OPTS > second_batch_js_heavy.min.js
|
|
|