[Session restore] Rename group name Enabled to Restore.
[chromium-blink-merge.git] / tools / perf / page_sets / tough_scheduling_cases / generate_second_batch_js.sh
blob7fe7f12d37fc41fe79052ab50a377821c24b3dc6
1 #!/bin/sh
2 # Copyright 2015 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 readonly LIGHT_OPTS="\
7 --closure-count=10 \
8 --function-count=10 \
9 --inner-function-count=10 \
10 --function-call-count=1 \
11 --closure-call-count=1 \
12 --inner-function-line-count=1 \
13 --loop-count=5"
14 readonly MEDIUM_OPTS="\
15 --closure-count=50 \
16 --function-count=50 \
17 --inner-function-count=20 \
18 --function-call-count=5 \
19 --closure-call-count=5 \
20 --inner-function-line-count=2 \
21 --loop-count=5"
22 readonly HEAVY_OPTS="\
23 --closure-count=200 \
24 --function-count=200 \
25 --inner-function-count=40 \
26 --function-call-count=10 \
27 --closure-call-count=10 \
28 --inner-function-line-count=3 \
29 --loop-count=5"
31 function generate {
32 local generator="./second_batch_js_generator.py"
33 cat << EOF
34 // Generated with $generator $@
36 // Copyright 2015 The Chromium Authors. All rights reserved.
37 // Use of this source code is governed by a BSD-style license that can be
38 // found in the LICENSE file.
39 EOF
40 $generator $@ | yui-compressor --type js;
43 generate $LIGHT_OPTS > second_batch_js_light.min.js
44 generate $MEDIUM_OPTS > second_batch_js_medium.min.js
45 generate $HEAVY_OPTS > second_batch_js_heavy.min.js