Skip to content

Commit cffc724

Browse files
committed
Rename SANDMARK_CUSTOM_NAME to VARIANT_NAME
1 parent 4ee800c commit cffc724

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

Makefile

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ blah:
210210
@echo ${PACKAGES}
211211

212212
ocaml-versions/%.bench: depend override_packages/% log_sandmark_hash ocaml-versions/%.json .FORCE
213-
$(eval SANDMARK_CUSTOM_NAME ?= $*)
213+
$(eval VARIANT_NAME ?= $*)
214214
$(eval CONFIG_SWITCH_NAME = $*)
215215
$(eval CONFIG_OPTIONS = $(shell jq -r '.configure // empty' ocaml-versions/$*.json))
216216
$(eval CONFIG_RUN_PARAMS = $(shell jq -r '.runparams // empty' ocaml-versions/$*.json))
@@ -240,12 +240,12 @@ ocaml-versions/%.bench: depend override_packages/% log_sandmark_hash ocaml-versi
240240
fi; \
241241
done; \
242242
header_entry=`jo -p $${s} | jq -c`; \
243-
echo "$${header_entry}" > _results/$(SANDMARK_CUSTOM_NAME)_$$i.$(WRAPPER).summary.bench; \
244-
find _build/$(CONFIG_SWITCH_NAME)_$$i -name '*.$(WRAPPER).bench' | xargs cat >> _results/$(SANDMARK_CUSTOM_NAME)_$$i.$(WRAPPER).summary.bench; \
245-
done; \
246-
exit $$ex; \
247-
else \
248-
exit 0; \
243+
echo "$${header_entry}" > _results/$(VARIANT_NAME)_$$i.$(WRAPPER).summary.bench; \
244+
find _build/$(CONFIG_SWITCH_NAME)_$$i -name '*.$(WRAPPER).bench' | xargs cat >> _results/$(VARIANT_NAME)_$$i.$(WRAPPER).summary.bench; \
245+
done; \
246+
exit $$ex; \
247+
else \
248+
exit 0; \
249249
fi };
250250

251251
json:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ benchmarks in byte mode:
210210

211211
```bash
212212
$ opam install dune.2.9.0
213-
$ USE_SYS_DUNE_HACK=1 SANDMARK_CUSTOM_NAME=5.0.0 BUILD_BENCH_TARGET=bytebench \
213+
$ USE_SYS_DUNE_HACK=1 VARIANT_NAME=5.0.0 BUILD_BENCH_TARGET=bytebench \
214214
RUN_CONFIG_JSON=run_config_byte.json make ocaml-versions/5.0.0+stable.bench
215215
```
216216

@@ -369,11 +369,11 @@ work on OS X is to install GNU sed with homebrew and then update the
369369
| PRE_BENCH_EXEC | Any specific commands that needed to be executed before the benchmark. For eg. `PRE_BENCH_EXEC='taskset --cpu-list 3 setarch uname -m --addr-no-randomize'` | null string | executing benchmark | RUN_BENCH_TARGET | The executable to be used to run the benchmarks | `run_orun` | executing benchmark |
370370
| RUN_BENCH_TARGET | The executable to be used to run the benchmarks | `run_orun` | executing benchmark |
371371
| RUN_CONFIG_JSON | Input file selection that contains the list of benchmarks | `run_config.json` | executing benchmark |
372-
| SANDMARK_CUSTOM_NAME | Custom name to use for the bench output file | variant from the `ocaml-version/<variant>.json` file name | executing benchmark |
373372
| SANDMARK_DUNE_VERSION | Default dune version to be used | 2.9.0 | building compiler and its dependencies |
374373
| SANDMARK_OVERRIDE_PACKAGES | A list of dependency packages with versions that can be overrided (optional) | "" | building compiler and its dependencies |
375374
| SANDMARK_REMOVE_PACKAGES | A list of dependency packages to be dynamically removed (optional) | "" | building compiler and its dependencies |
376375
| SANDMARK_URL | OCaml compiler source code URL used to build the benchmarks | "" | building compiler and its dependencies |
377376
| SYS_DUNE_BASE_DIR | Function that returns the path of the system installed dune for use with benchmarking | dune package present in the local opam switch | building compiler and its dependencies |
378377
| USE_SYS_DUNE_HACK | If the value is 1 then use system installed dune | 0 | building compiler and its dependencies |
378+
| VARIANT_NAME | Custom name to use for the bench output file | variant from the `ocaml-version/<variant>.json` file name | executing benchmark |
379379
| WRAPPER | Function to get the wrapper out of `run_<wrapper-name>` | run_orun | executing benchmark |

run_all_custom.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ while [ $i -lt ${COUNT} ]; do
127127
ENVIRONMENT="`echo ${CONFIG_ENVIRONMENT}`" \
128128
OCAML_CONFIG_OPTION="`echo ${CONFIG_OPTIONS}`" \
129129
OCAML_RUN_PARAM="`echo ${CONFIG_RUN_PARAMS}`" \
130-
SANDMARK_CUSTOM_NAME="`echo ${CONFIG_NAME}`" \
130+
VARIANT_NAME="`echo ${CONFIG_NAME}`" \
131131
SANDMARK_OVERRIDE_PACKAGES="`echo ${CONFIG_OVERRIDE_PACKAGES}`" \
132132
SANDMARK_REMOVE_PACKAGES="`echo ${CONFIG_REMOVE_PACKAGES}`" \
133133
make ocaml-versions/5.1.0+stable.bench > "${RESULTS_DIR}/${CONFIG_NAME}.${TIMESTAMP}.${COMMIT}.log" 2>&1
@@ -137,7 +137,7 @@ while [ $i -lt ${COUNT} ]; do
137137
ENVIRONMENT="`echo ${CONFIG_ENVIRONMENT}`" \
138138
OCAML_CONFIG_OPTION="`echo ${CONFIG_OPTIONS}`" \
139139
OCAML_RUN_PARAM="`echo ${CONFIG_RUN_PARAMS}`" \
140-
SANDMARK_CUSTOM_NAME="`echo ${CONFIG_NAME}`" \
140+
VARIANT_NAME="`echo ${CONFIG_NAME}`" \
141141
SANDMARK_OVERRIDE_PACKAGES="`echo ${CONFIG_OVERRIDE_PACKAGES}`" \
142142
SANDMARK_REMOVE_PACKAGES="`echo ${CONFIG_REMOVE_PACKAGES}`" \
143143
RUN_BENCH_TARGET=run_orunchrt \

0 commit comments

Comments
 (0)