注意:部分文章发布时间较长,可能存在未知因素,购买时建议在本站搜索商家名称,先充分了解商家动态。
交流:唯一投稿邮箱:hostvps@88.com。
网友 花花** 说:
用yabs跑出来的geekbench5分数 普遍比官网的记录高10–15%
网友 花花** 说:
表妹 发表于 2022-7-21 20:48
普遍高10–15%?你能不能用数据说话或者用代码说话?
https://github.com/masonr/yet-another-bench-sc**pt …
网友 表妹 说:
普遍高10–15%?你能不能用数据说话或者用代码说话?
https://github.com/masonr/yet-another-bench-sc**pt/blob/******/yabs.sh#L756
if [[ $VERSION == *5* ]]; then # Geekbench v5
if [[ $ARCH = *x86* && $GEEKBENCH_4 == *False* ]]; then # don’t run Geekbench 5 if on 32-bit arch
echo -e &*uot;\nGeekbench 5 cannot run on 32-bit architect**es. Re-run with -4 flag to use&*uot;
echo -e &*uot;Geekbench 4, which can support 32-bit architect**es. Skipping Geekbench 5.&*uot;
elif [[ $ARCH = *x86* && $GEEKBENCH_4 == *True* ]]; then
echo -e &*uot;\nGeekbench 5 cannot run on 32-bit architect**es. Skipping ****.&*uot;
else
echo -en &*uot;\nRunning GB5 benchmark ****… *cue elevator music*&*uot;
# download the la**** Geekbench 5 tarball and extract to geekbench temp directory
if [[ $ARCH = *aarch*** || $ARCH = *arm* ]]; then
$DL_**D https://cdn.geekbench.com/Geekbench-5.4.4-LinuxARMPreview.tar.gz | tar xz –st**p-components=1 -C $GEEKBENCH_PATH &>/dev/null
else
$DL_**D https://cdn.geekbench.com/Geekbench-5.4.4-Linux.tar.gz | tar xz –st**p-components=1 -C $GEEKBENCH_PATH &>/dev/null
fi
# check if geekbench file exists
if **** -f &*uot;geekbench.license&*uot;; then
$GEEKBENCH_PATH/geekbench5 –unlock `cat geekbench.license` > /dev/null 2>&1
fi
GEEKBENCH_TEST=$($GEEKBENCH_PATH/geekbench5 –upload 2>/dev/null | grep &*uot;https://b**wser&*uot;)
fi
fi
# ens**e the **** ran succe**fully
if [ -z &*uot;$GEEKBENCH_TEST&*uot; ]; then
if [[ -z &*uot;$IPV4_CHECK&*uot; ]]; then
# Geekbench **** failed to download bec**se host lacks IPv4 (cdn.geekbench.com = IPv4 only)
echo -e &*uot;\r\033[0KGeekbench releases can only be downloaded over IPv4. FTP the Geekbench files and run manually.&*uot;
elif [[ $ARCH != *x86* ]]; then
# if the Geekbench **** failed for any reason, exit cleanly and p**nt er**r me**age
echo -e &*uot;\r\033[0KGeekbench $VERSION **** failed. Run manually to determine c**se.&*uot;
fi
else
# if the Geekbench **** succeeded, parse the **** results **L
GEEKBENCH_**L=$(echo -e $GEEKBENCH_TEST | head -1)
GEEKBENCH_**L_CLAIM=$(echo $GEEKBENCH_**L | awk ‘{ p**nt $2 }’)
GEEKBENCH_**L=$(echo $GEEKBENCH_**L | awk ‘{ p**nt $1 }’)
# sleep a bit to wait for results to be made available on the geekbench website
sleep 20
# parse the public results page for the single and multi core geekbench scores
[[ $VERSION == *5* ]] && GEEKBENCH_SCORES=$($DL_**D $GEEKBENCH_**L | grep &*uot;div cla**=’score’&*uot;) ||
GEEKBENCH_SCORES=$($DL_**D $GEEKBENCH_**L | grep &*uot;span cla**=’score’&*uot;)
GEEKBENCH_SCORES_SINGLE=$(echo $GEEKBENCH_SCORES | awk -v FS=&*uot;(>|<)&*uot; ‘{ p**nt $3 }’)
GEEKBENCH_SCORES_MULTI=$(echo $GEEKBENCH_SCORES | awk -v FS=&*uot;(>|<)&*uot; ‘{ p**nt $7 }’)
# p**nt the Geekbench results
echo -en &*uot;\r\033[0K&*uot;
echo -e &*uot;Geekbench $VERSION Benchmark ****:&*uot;
echo -e &*uot;———————————&*uot;
p**ntf &*uot;%-15s | %-30s\n&*uot; &*uot;****&*uot; &*uot;Value&*uot;
p**ntf &*uot;%-15s | %-30s\n&*uot;
p**ntf &*uot;%-15s | %-30s\n&*uot; &*uot;Single Core&*uot; &*uot;$GEEKBENCH_SCORES_SINGLE&*uot;
p**ntf &*uot;%-15s | %-30s\n&*uot; &*uot;Multi Core&*uot; &*uot;$GEEKBENCH_SCORES_MULTI&*uot;
p**ntf &*uot;%-15s | %-30s\n&*uot; &*uot;Full ****&*uot; &*uot;$GEEKBENCH_**L&*uot;
# w**te the geekbench claim **L to a file so the user can add the results to their p**file (if desired)
[ ! -z &*uot;$GEEKBENCH_**L_CLAIM&*uot; ] && echo -e &*uot;$GEEKBENCH_**L_CLAIM&*uot; >> geekbench_claim.**l 2> /dev/null
fi
}
# if the skip geekbench flag was set, skip the ****** performance ****, otherwise **** ****** performance
if [ -z &*uot;$SKIP_GEEKBENCH&*uot; ]; then
if [[ $GEEKBENCH_4 == *True* ]]; then
l**nch_geekbench 4
fi
if [[ $GEEKBENCH_5 == *True* ]]; then
l**nch_geekbench 5
fi
fi
网友 nmdw** 说:
虚拟化会损失一些性能,还可能超售
网友 花花** 说:
nmdw** 发表于 2022-7-21 20:41
虚拟化会损失一些性能,还可能超售
网友 realspir 说:
花花** 发表于 2022-7-21 21:09
贴个别人的代码 有个*意义啊。。。
我测了6台不同cpu都高出不少,才来说这个现象, 你贴个别人的代码就 …
网友 ***i 说:
过于弱.智.
网友 lenchanlhc 说:
确实
同意2楼
网友 lsin 说:
啥叫官网的记录?
网友 花花** 说:
lsin 发表于 2022-7-21 22:35
啥叫官网的记录?
网友 DogeLee2 说:
体质啊,散热啊,还有其他的各种因素
跑分看看就行了
贝壳主机网

