Skip to content

Commit 21794fa

Browse files
YifanYuan3facebook-github-bot
authored andcommitted
fix lzbench (#222)
Summary: Pull Request resolved: #222 as titled Reviewed By: charles-typ Differential Revision: D82341883 fbshipit-source-id: b331b16e80dea62628fca2f40da304165237465a
1 parent b71e24f commit 21794fa

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

packages/wdl_bench/install_wdl_bench.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ declare -A REPOS=(
1818
declare -A TAGS=(
1919
['folly']='v2025.05.12.00'
2020
['fbthrift']='v2025.08.18.00'
21-
['lzbench']='d138844ea56b36ff1c1c43b259c866069deb64ad'
21+
['lzbench']='v2.1'
2222
['openssl']='openssl-3.3.1'
2323
['vdso']='main'
2424
)

packages/wdl_bench/parse_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def parse_line(f, sum_c):
8484

8585
def parse_line_lzbench(f, sum_c):
8686
for line in f:
87-
if re.search("silesia", line):
87+
if re.search("datasets", line):
8888
elements = line.split()
8989
idx_time = 0
9090
for i in range(len(elements)):

packages/wdl_bench/run.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ run_allcore()
4545
for i in $(seq "$nprocs")
4646
do
4747
if [ "$1" = "lzbench" ]; then
48-
numactl -C "$((i-1))" ./lzbench -e"$2" "${WDL_DATASETS}"/silesia.tar > output_file_$((i-1)) &
48+
numactl -C "$((i-1))" ./lzbench -v -e"$2" "${WDL_DATASETS}"/silesia.tar > output_file_$((i-1)) &
4949
else
5050
numactl -C "$((i-1))" "./$1" > output_file_$((i-1)) &
5151
fi
@@ -137,7 +137,7 @@ main() {
137137
elif [ "$name" = "lzbench" ]; then
138138
run_list=$name
139139
if [ "$run_type" = "single_core" ]; then
140-
./lzbench -e"${algo}" "${WDL_DATASETS}/silesia.tar" > "out_${name}".txt
140+
./lzbench -v -e"${algo}" "${WDL_DATASETS}/silesia.tar" > "out_${name}".txt
141141
elif [ "$run_type" = "all_core" ]; then
142142
run_allcore "$name" "$algo"
143143
fi

0 commit comments

Comments
 (0)