Skip to content

Commit 53f90ac

Browse files
committed
Reorganize output json
1 parent 469b94f commit 53f90ac

3 files changed

Lines changed: 9 additions & 6 deletions

File tree

benchmarks/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,10 @@ If you examine the output directory:
127127
└── metrics.json
128128
```
129129

130-
All of the `*.log` files contain the output from the individual tests. The `metrics.json` file contains all the recorded metrics.
130+
- The `run.json` file contains the run metadata.
131+
- The `run.log` file contains the full run log.
132+
- All of the `target-host/*.log` files contain the output from the individual tests.
133+
- The `target-host/metrics.json` file contains all the recorded metrics.
131134

132135
## Examples
133136
### Basic Local Benchmark

benchmarks/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ scripts:
207207
- for-each: ITERATION ${{=[...Array(${{config.num_iterations}}).keys()]}}
208208
then:
209209
- script: sync-drop-fs-cache
210-
- sh: /usr/bin/time -p ${{RUNTIME.buildCmd}} 2>&1 >${{REPO_DIR}}/logs/build-times-${{RUNTIME.name}}-${{ITERATION}}.log | grep real | awk '{ print $2}'
210+
- sh: /usr/bin/time -p ${{RUNTIME.buildCmd}} 2>&1 >${{REPO_DIR}}/logs/build-times-${{RUNTIME.name}}-${{ITERATION}}.log | grep real | awk '{print $2}'
211211
- set-state: BUILD_TIME
212212
- script: state-array-push
213213
with:
@@ -444,6 +444,7 @@ roles:
444444
- detect-os
445445
- capture-os-info
446446
- start-timestamp
447+
- cleanup-env
447448
- config-env
448449
- ensure-requirements
449450
- clone-repo
@@ -455,5 +456,5 @@ roles:
455456
- stop-timestamp
456457
- download-metrics
457458
- stop-test-services
458-
- cleanup-env
459+
# - cleanup-env
459460
# - remove-installed-packages

benchmarks/run-benchmarks.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ run_benchmarks() {
124124

125125
# print_values
126126

127-
jbang qDup@hyperfoil \
127+
jbang qDup@hyperfoil --trace="target" \
128128
-C \
129129
-b /tmp/ \
130130
-ix \
@@ -152,8 +152,7 @@ run_benchmarks() {
152152
-S RUNTIMES="$(make_json_array ${RUNTIMES})" \
153153
-S PAUSE_TIME=${WAIT_TIME} \
154154
-S TESTS="$(make_json_array ${TESTS_TO_RUN})" \
155-
-S DROP_OS_FILESYSTEM_CACHES=${DROP_OS_FILESYSTEM_CACHES} \
156-
--stream-logging
155+
-S DROP_OS_FILESYSTEM_CACHES=${DROP_OS_FILESYSTEM_CACHES}
157156
}
158157

159158
# Define defaults

0 commit comments

Comments
 (0)