-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbench_artifacts.sh
executable file
·43 lines (30 loc) · 1.13 KB
/
bench_artifacts.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#! /bin/bash
source ./sources.sh
source ./log.sh
source ./config-parser.sh
# Save current working directory
SCWD=$(pwd)
SERVO_BENCH_DIR="${BASE_PATH}/servo-step-no-mpk"
SERVO_TARGET_DIR="$SERVO_BENCH_DIR/target/release"
BENCH_RESULTS_DEFAULT="$BASE_PATH/bench-results"
# All artifacts will be benched in the same directory to make access to mach scripts easier
cp ${SERVO_TARGET_DIR}/servo ${SERVO_BENCH_DIR}/.
# Copy and test Vanilla
cp ${ARTIFACTS_DIR}/servo-vanilla ${SERVO_TARGET_DIR}/servo
# Run benchmarking script for alloc(no-mpk)
${SOURCES}/run_artifacts.sh -t alloc
mv ${BENCH_RESULTS_DEFAULT} $BASE_PATH/vanilla-bench-results
# Copy and test MPK
cp ${ARTIFACTS_DIR}/servo-step ${SERVO_TARGET_DIR}/servo
# Run benchmarking script for mpk
${SOURCES}/run_artifacts.sh -t alloc
mv ${BENCH_RESULTS_DEFAULT} $BASE_PATH/mpk-bench-results
# Copy and test No-MPK
cp ${ARTIFACTS_DIR}/servo-step-no-mpk ${SERVO_TARGET_DIR}/servo
# Run benchmarking script for mpk
${SOURCES}/run_artifacts.sh -t alloc
mv ${BENCH_RESULTS_DEFAULT} $BASE_PATH/no-mpk-bench-results
# Cleanup
mv ${SERVO_BENCH_DIR}/servo ${SERVO_TARGET_DIR}/.
# Return to SCWD
cd $SCWD