Skip to content

Commit 29f7d2d

Browse files
committed
Update graph script
1 parent 585d1fa commit 29f7d2d

26 files changed

+188
-400
lines changed

README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ The benchmark is lots of build tests and runtime tests that ran on the same mach
2727

2828
Pictured results:
2929

30-
| Server | VPS | Local machine |
31-
|------------------------------|-----------------------------|-------------------------------|
32-
| Results | ![](./output/graph_vps.png) | ![](./output/graph_local.png) |
33-
| Number of build benchmarks | 2199 | 118 |
34-
| Number of runtime benchmarks | 367 | 13 |
30+
| Server | VPS | Local machine | Another VPS |
31+
|------------------------------|-----------------------------|-------------------------------|--------------------------------|
32+
| Results | ![](./output/graph_vps.png) | ![](./output/graph_local.png) | ![](./output/graph_server.png) |
33+
| Number of build benchmarks | 2199 | 118 | 5638 |
34+
| Number of runtime benchmarks | 367 | 13 | 5638 |
3535

3636
## How to reproduce
3737

bench_it_all.bash

100755100644
+18-19
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ CWD=$(realpath "$(dirname "${BASH_SOURCE[0]}")")
44

55
cd "$CWD"
66

7-
#
8-
# Display functions
9-
#
7+
##
8+
## Display functions
9+
##
1010

1111
info() {
1212
printf " %s" "$1"
@@ -30,9 +30,9 @@ end_info_line_with_error() {
3030
printf "\r \033[32m%s\033[0m\n" ""
3131
}
3232

33-
#
34-
# Env loading
35-
#
33+
##
34+
## Env loading
35+
##
3636

3737
if [[ "${SHELL}" == "/bin/bash" ]]; then
3838
[[ -f "${HOME}/.bashrc" ]] && . "${HOME}/.bashrc" && info "Sourced .bashrc" && end_info_line_with_ok
@@ -42,9 +42,9 @@ if [[ "${SHELL}" == "/usr/bin/zsh" ]]; then
4242
[[ -f "${HOME}/.zshrc" ]] && . "${HOME}/.zshrc" && info "Sourced .zshrc" && end_info_line_with_ok
4343
fi
4444

45-
#
46-
# Input & dependencies checks
47-
#
45+
##
46+
## Input & dependencies checks
47+
##
4848

4949
if [[ -z "${OUTPUT_DIR}" ]]; then
5050
OUTPUT_DIR=$1
@@ -105,9 +105,9 @@ end_info_line_with_ok
105105

106106
set -eu
107107

108-
#
109-
# Helpers vars & functions
110-
#
108+
##
109+
## Helpers vars & functions
110+
##
111111

112112
processtime=$(which processtime)
113113
yarn=$(which yarn)
@@ -149,9 +149,9 @@ save_value_to_csv() {
149149
echo "$value" >> "$filename"
150150
}
151151

152-
#
153-
# Processing functions
154-
#
152+
##
153+
## Processing functions
154+
##
155155

156156
remove_colors_regex="s/\x1B\[([0-9]{1,3}(;[0-9]{1,2};?)?)?[mGK]//g"
157157

@@ -216,12 +216,11 @@ process() {
216216
"install_time;build_time;deps_with_duplicates;deps_without_duplicates;build_size;$e2e_headers"
217217
}
218218

219-
#
220-
# Processing
221-
#
219+
##
220+
## Processing
221+
##
222222

223223
apps_directories=$(cd "${CWD}/apps" && for f in *; do if [ -d "$f" ]; then echo "$f" ; fi ; done)
224-
# shellcheck disable=SC2206
225224
apps_directories_array=($apps_directories)
226225
227226
shift # Drops first element of arguments

bin/processtime

100755100644
File mode changed.

generate_graph.bash

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ set -e
66

77
cd "$CWD"
88

9-
#
10-
# Display functions
11-
#
9+
##
10+
## Display functions
11+
##
1212

1313
info_ln() {
1414
printf "\033[32m%s\033[0m ${1}\n" "[INFO]"

0 commit comments

Comments
 (0)