Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(695)

Side by Side Diff: tools/perf/page_sets/tough_scheduling_cases/generate_second_batch_js.sh

Issue 1000203002: Add second batch JS benchmark and code generator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
5
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"
30
31 function generate {
32 local generator="./second_batch_js_generator.py"
33 cat << EOF
34 // Generated with $generator $@
35 //
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;
41 }
42
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
OLDNEW
« no previous file with comments | « tools/perf/page_sets/tough_scheduling_cases.py ('k') | tools/perf/page_sets/tough_scheduling_cases/second_batch_js.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698