LoginSignup
1
2

More than 3 years have passed since last update.

怠け者のためのUnixBenchインストールガイド

Last updated at Posted at 2020-04-25

だいたい自分用。

追記(2020/10/26)

怠け者のための、などと抜かしながらスクリプト配布でないのが申し訳ないです。
代わりといってはなんですが、実行する行数を減らしてみました。実行するコマンドは一切変わってません。

注意

・CentOS 7、CentOS 8、Ubuntu 18.04、Ubuntu 20.04でのみ検証しています。
・検証したVPS(Linode)以外では追加のパッケージインストールが必要になるかもしれません。
・実験環境のため、rootユーザでの作業です。一般ユーザで作業する場合は適宜sudoを付け加えてください。

CentOS 7

# yum update -y && yum install make gcc gcc-c++ -y
# curl -O https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/byte-unixbench/UnixBench5.1.3.tgz
# tar xvf UnixBench5.1.3.tgz && rm UnixBench5.1.3.tgz && cd UnixBench && make
# ./Run -i 1

CentOS 8

# dnf update -y && dnf install make gcc gcc-c++ perl tar -y
# curl -O https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/byte-unixbench/UnixBench5.1.3.tgz
# tar xvf UnixBench5.1.3.tgz && rm UnixBench5.1.3.tgz && cd UnixBench && make
# ./Run -i 1

Ubuntu 18.04 / 20.04 (共通)

# apt update && apt install make gcc g++ -y
# wget https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/byte-unixbench/UnixBench5.1.3.tgz
# tar xvf UnixBench5.1.3.tgz && rm UnixBench5.1.3.tgz && cd UnixBench && make
# ./Run -i 1

結果

LinodeのNanodeマシンは割り当てられるCPUが固定なので比較・検証がしやすいです。

CPU メモリ(GB) SSD(GB)
Intel Xeon E5-2697 v4 @ 2.3GHz x1 1.0 25
OS 平均Score
CentOS 7 740
CentOS 8 800
Ubuntu 18.04 835
Ubuntu 20.04 835
1
2
1

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
2