Skip to content

Commit c25ad6a

Browse files
committed
gold_benchmark: better variable names
1 parent aab1d38 commit c25ad6a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

linker/gold_benchmark/bench-all

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ for params in \
1515
./bench "${params}.log"
1616
cat "${params}.log" >> "$result_log"
1717
echo >> "$result_log"
18+
echo
1819
done

linker/gold_benchmark/generate-objects

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ set -eu
44
# CLI args.
55

66
# Each of those files contains n_ints_per_file ints.
7-
n_int_file_is="${1:-10}"
7+
n_int_files="${1:-10}"
88
n_ints_per_file="${2:-10}"
99

1010
# Each function adds all ints from all files.
11-
# This leads to n_int_file_is x n_ints_per_file x n_funcs relocations.
11+
# This leads to n_int_files x n_ints_per_file x n_funcs relocations.
1212
n_funcs="${3:-10}"
1313

1414
# Do a debug build, since it is for debug builds that link time matters the most,
@@ -22,7 +22,7 @@ echo "Generate i_*.c, ints.h and int_sum.h"
2222
rm -f ints.h
2323
echo 'return' > int_sum.h
2424
int_file_i=0
25-
while [ "$int_file_i" -lt "$n_int_file_is" ]; do
25+
while [ "$int_file_i" -lt "$n_int_files" ]; do
2626
int_i=0
2727
int_file="${int_file_i}.c"
2828
rm -f "$int_file"

0 commit comments

Comments
 (0)