aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/tools/benchmark/README.md11
-rwxr-xr-xtools/genrule/genrule-setup.sh14
2 files changed, 25 insertions, 0 deletions
diff --git a/src/tools/benchmark/README.md b/src/tools/benchmark/README.md
new file mode 100644
index 0000000000..0646dfc46e
--- /dev/null
+++ b/src/tools/benchmark/README.md
@@ -0,0 +1,11 @@
+# Benchmark
+
+This benchmark is for comparing performance (elapsed time) between several bazel commits.
+It requires bazel and git installed.
+
+To Run the benchmark:
+1. `bazel build //src/tools/benchmark/java/com/google/devtools/build/benchmark:benchmark`
+2. run the built binary and follow the argument instruction
+3. put the benchmark result as `<name>.json` into `src/tools/benchmark/webapp/data`
+4. put the string `<name>.json` into `src/tools/benchmark/webapp/file_list`
+5. start an http server there and open `/index.html`
diff --git a/tools/genrule/genrule-setup.sh b/tools/genrule/genrule-setup.sh
index c1d938e60f..2fe352fa54 100755
--- a/tools/genrule/genrule-setup.sh
+++ b/tools/genrule/genrule-setup.sh
@@ -1,3 +1,17 @@
+# Copyright 2017 The Bazel Authors. All rights reserved.
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
# exit immediately if a command or pipeline fails, unless it is in a test expression
set -e