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

Unified 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 side-by-side diff with in-line comments
Download patch
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
« 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