致力于为用户提供真实的
主机测评数据及优惠信息

用yabs跑出来的geekbench5分数 普遍比官网的记录高10--15%

网友 花花** 说:

用yabs跑出来的geekbench5分数  普遍比官网的记录高10–15%

网友 nmdw** 说:

虚拟化会损失一些性能,还可能超售

网友 表妹 说:

普遍高10–15%?你能不能用数据说话或者用代码说话?
https://github.com/masonr/yet-another-bench-sc**pt/blob/******/yabs.sh#L756

  1.         if [[ $VERSION == *5* ]]; then # Geekbench v5
  2.                 if [[ $ARCH = *x86* && $GEEKBENCH_4 == *False* ]]; then # don’t run Geekbench 5 if on 32-bit arch
  3.                         echo -e &*uot;\nGeekbench 5 cannot run on 32-bit architect**es. Re-run with -4 flag to use&*uot;
  4.                         echo -e &*uot;Geekbench 4, which can support 32-bit architect**es. Skipping Geekbench 5.&*uot;
  5.                 elif [[ $ARCH = *x86* && $GEEKBENCH_4 == *True* ]]; then
  6.                         echo -e &*uot;\nGeekbench 5 cannot run on 32-bit architect**es. Skipping ****.&*uot;
  7.                 else
  8.                         echo -en &*uot;\nRunning GB5 benchmark ****… *cue elevator music*&*uot;
  9.                         # download the la**** Geekbench 5 tarball and extract to geekbench temp directory
  10.                         if [[ $ARCH = *aarch*** || $ARCH = *arm* ]]; then
  11.                                 $DL_**D https://cdn.geekbench.com/Geekbench-5.4.4-LinuxARMPreview.tar.gz  | tar xz –st**p-components=1 -C $GEEKBENCH_PATH &>/dev/null
  12.                         else
  13.                                 $DL_**D https://cdn.geekbench.com/Geekbench-5.4.4-Linux.tar.gz | tar xz –st**p-components=1 -C $GEEKBENCH_PATH &>/dev/null
  14.                         fi
  15.                         # check if geekbench file exists
  16.                         if **** -f &*uot;geekbench.license&*uot;; then
  17.                                 $GEEKBENCH_PATH/geekbench5 –unlock `cat geekbench.license` > /dev/null 2>&1
  18.                         fi
  19.                         GEEKBENCH_TEST=$($GEEKBENCH_PATH/geekbench5 –upload 2>/dev/null | grep &*uot;https://b**wser&*uot;)
  20.                 fi
  21.         fi
  22.         # ens**e the **** ran succe**fully
  23.         if [ -z &*uot;$GEEKBENCH_TEST&*uot; ]; then
  24.                 if [[ -z &*uot;$IPV4_CHECK&*uot; ]]; then
  25.                         # Geekbench **** failed to download bec**se host lacks IPv4 (cdn.geekbench.com = IPv4 only)
  26.                         echo -e &*uot;\r\033[0KGeekbench releases can only be downloaded over IPv4. FTP the Geekbench files and run manually.&*uot;
  27.                 elif [[ $ARCH != *x86* ]]; then
  28.                         # if the Geekbench **** failed for any reason, exit cleanly and p**nt er**r me**age
  29.                         echo -e &*uot;\r\033[0KGeekbench $VERSION **** failed. Run manually to determine c**se.&*uot;
  30.                 fi
  31.         else
  32.                 # if the Geekbench **** succeeded, parse the **** results **L
  33.                 GEEKBENCH_**L=$(echo -e $GEEKBENCH_TEST | head -1)
  34.                 GEEKBENCH_**L_CLAIM=$(echo $GEEKBENCH_**L | awk ‘{ p**nt $2 }’)
  35.                 GEEKBENCH_**L=$(echo $GEEKBENCH_**L | awk ‘{ p**nt $1 }’)
  36.                 # sleep a bit to wait for results to be made available on the geekbench website
  37.                 sleep 20
  38.                 # parse the public results page for the single and multi core geekbench scores
  39.                 [[ $VERSION == *5* ]] && GEEKBENCH_SCORES=$($DL_**D $GEEKBENCH_**L | grep &*uot;div cla**=’score’&*uot;) ||
  40.                         GEEKBENCH_SCORES=$($DL_**D $GEEKBENCH_**L | grep &*uot;span cla**=’score’&*uot;)
  41.                 GEEKBENCH_SCORES_SINGLE=$(echo $GEEKBENCH_SCORES | awk -v FS=&*uot;(>|<)&*uot; ‘{ p**nt $3 }’)
  42.                 GEEKBENCH_SCORES_MULTI=$(echo $GEEKBENCH_SCORES | awk -v FS=&*uot;(>|<)&*uot; ‘{ p**nt $7 }’)
  43.        
  44.                 # p**nt the Geekbench results
  45.                 echo -en &*uot;\r\033[0K&*uot;
  46.                 echo -e &*uot;Geekbench $VERSION Benchmark ****:&*uot;
  47.                 echo -e &*uot;———————————&*uot;
  48.                 p**ntf &*uot;%-15s | %-30s\n&*uot; &*uot;****&*uot; &*uot;Value&*uot;
  49.                 p**ntf &*uot;%-15s | %-30s\n&*uot;
  50.                 p**ntf &*uot;%-15s | %-30s\n&*uot; &*uot;Single Core&*uot; &*uot;$GEEKBENCH_SCORES_SINGLE&*uot;
  51.                 p**ntf &*uot;%-15s | %-30s\n&*uot; &*uot;Multi Core&*uot; &*uot;$GEEKBENCH_SCORES_MULTI&*uot;
  52.                 p**ntf &*uot;%-15s | %-30s\n&*uot; &*uot;Full ****&*uot; &*uot;$GEEKBENCH_**L&*uot;
  53.                 # w**te the geekbench claim **L to a file so the user can add the results to their p**file (if desired)
  54.                 [ ! -z &*uot;$GEEKBENCH_**L_CLAIM&*uot; ] && echo -e &*uot;$GEEKBENCH_**L_CLAIM&*uot; >> geekbench_claim.**l 2> /dev/null
  55.         fi
  56. }
  57. # if the skip geekbench flag was set, skip the ****** performance ****, otherwise **** ****** performance
  58. if [ -z &*uot;$SKIP_GEEKBENCH&*uot; ]; then
  59.         if [[ $GEEKBENCH_4 == *True* ]]; then
  60.                 l**nch_geekbench 4
  61.         fi
  62.         if [[ $GEEKBENCH_5 == *True* ]]; then
  63.                 l**nch_geekbench 5
  64.         fi
  65. fi
赞(0) 打赏
未经允许不得转载:爱主机 » 用yabs跑出来的geekbench5分数 普遍比官网的记录高10--15%
分享到: 更多 (0)

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址