GNU/Linux >> Belajar Linux >  >> Linux

UnixBench – Rangkaian Tolok Ukur Untuk Sistem mirip Unix

Beberapa waktu yang lalu, Kami telah meninjau Phoronix , platform pengujian dan benchmarking open source. Dalam panduan ini, kita akan melihat rangkaian benchmark lain yang disebut UnixBench . Ini adalah rangkaian benchmark BYTE UNIX asli, diperbarui dan direvisi oleh banyak orang selama bertahun-tahun. Tujuan utama dari alat ini adalah untuk memberikan indikator dasar kinerja sistem operasi mirip Unix. UnixBench dapat digunakan untuk mengevaluasi kinerja sistem Anda saat menjalankan satu atau beberapa tugas. Harap perhatikan bahwa ini adalah alat tolok ukur sistem, bukan hanya alat tolok ukur CPU, RAM, atau disk. Hasilnya tidak hanya bergantung pada perangkat keras Anda, tetapi juga pada sistem operasi, perpustakaan, dan bahkan kompiler Anda.

Unixbench akan melakukan tes benchmark berikut pada sistem Anda.

  • Batu kering - Digunakan untuk mengukur dan membandingkan kinerja komputer.
  • Batu asah - Digunakan untuk mengukur kecepatan dan efisiensi operasi floating-point.
  • execl Throughput - Digunakan untuk mengukur jumlah panggilan eksekutif yang dapat dilakukan per detik.
  • Salinan File - Digunakan untuk mengukur kecepatan transfer data dari satu file ke file lainnya.
  • Troughput Pipa - berapa kali (per detik) suatu proses dapat menulis 512 byte ke pipa dan membacanya kembali.
  • Pengalihan Konteks Berbasis Pipa - Digunakan untuk mengukur berapa kali dua proses dapat bertukar bilangan bulat yang meningkat melalui pipa.
  • Proses Pembuatan - Digunakan untuk mengukur berapa kali suatu proses dapat bercabang dan menuai anak yang segera keluar.
  • Skrip Shell - Digunakan untuk mengukur berapa kali per menit suatu proses dapat memulai dan menuai satu set delapan salinan bersamaan dari skrip shell di mana skrip shell menerapkan serangkaian transformasi ke file data.
  • Operasi Panggilan Sistem - Digunakan untuk memperkirakan biaya masuk dan keluar dari kernel sistem operasi.
  • Tes Grafis - Digunakan untuk memberikan gambaran tentang kinerja grafis 2D dan 3D sistem.
Unduh - EBuku Gratis:"Lembar Cheat Vim""

Menginstal dan menggunakan Unixbench di Linux

UnixBench tersedia dalam AUR, sehingga Anda dapat menginstalnya di Arch Linux dan turunannya seperti Manjaro Linux, Antergos menggunakan pembantu AUR.

Menggunakan Yay :

$ yay -S unixbench

Pada distribusi Linux lainnya, Anda perlu mengkompilasi dan menginstal UnixBench secara manual seperti yang ditunjukkan di bawah ini.

Di CentOS, RHEL, Fedora:

$ sudo yum -y install gcc gcc-c++ make libXext-devel perl perl-Time-HiRes git
$ sudo yum -y groupinstall "Development Tools"
$ sudo yum -y install libX11-devel mesa-libGL-devel perl-Time-HiRes

Di Debian, Ubuntu, Linux Mint:

$ sudo apt-get install libx11-dev libgl1-mesa-dev libxext-dev perl perl-modules make git

Setelah menginstal prasyarat yang diperlukan, git clone repositori UnixBench menggunakan perintah:

$ git clone https://github.com/kdlucas/byte-unixbench.git

Buka direktori unixbench:

$ cd byte-unixbench/UnixBench/

Kemudian, jalankan perintah berikut untuk mulai membandingkan sistem Anda.

$ ./Run

Jika Anda telah menginstal UnixBench dari AUR di Arch Linux, jalankan perintah berikut untuk meluncurkannya.

$ ubench

Contoh keluarannya adalah:

Version 5.1.3 Based on the Byte Magazine Unix Benchmark

Multi-CPU version Version 5 revisions by Ian Smith,
 Sunnyvale, CA, USA
 January 13, 2011 johantheghost at yahoo period com

1 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 10

1 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 10

1 x Execl Throughput 1 2 3

1 x File Copy 1024 bufsize 2000 maxblocks 1 2 3

1 x File Copy 256 bufsize 500 maxblocks 1 2 3

1 x File Copy 4096 bufsize 8000 maxblocks 1 2 3

1 x Pipe Throughput 1 2 3 4 5 6 7 8 9 10

1 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 10

1 x Process Creation 1 2 3

1 x System Call Overhead 1 2 3 4 5 6 7 8 9 10

1 x Shell Scripts (1 concurrent) 1 2 3

1 x Shell Scripts (8 concurrent) 1 2 3

4 x Dhrystone 2 using register variables 1 2 3 4 5 6 7 8 9 10

4 x Double-Precision Whetstone 1 2 3 4 5 6 7 8 9 10

4 x Execl Throughput 1 2 3

4 x File Copy 1024 bufsize 2000 maxblocks 1 2 3

4 x File Copy 256 bufsize 500 maxblocks 1 2 3

4 x File Copy 4096 bufsize 8000 maxblocks 1 2 3

4 x Pipe Throughput 1 2 3 4 5 6 7 8 9 10

4 x Pipe-based Context Switching 1 2 3 4 5 6 7 8 9 10

4 x Process Creation 1 2 3

4 x System Call Overhead 1 2 3 4 5 6 7 8 9 10

4 x Shell Scripts (1 concurrent) 1 2 3

4 x Shell Scripts (8 concurrent) 1 2 3

========================================================================
 BYTE UNIX Benchmarks (Version 5.1.3)

System: sk: GNU/Linux
 OS: GNU/Linux -- 4.10.10-1-ARCH -- #1 SMP PREEMPT Wed Apr 12 18:50:28 CEST 2017
 Machine: x86_64 (unknown)
 Language: en_US.utf8 (charmap="UTF-8", collate="UTF-8")
 CPU 0: Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz (4591.9 bogomips)
 Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
 CPU 1: Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz (4592.1 bogomips)
 Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
 CPU 2: Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz (4593.8 bogomips)
 Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
 CPU 3: Intel(R) Core(TM) i3-2350M CPU @ 2.30GHz (4592.2 bogomips)
 Hyper-Threading, x86-64, MMX, Physical Address Ext, SYSENTER/SYSEXIT, SYSCALL/SYSRET, Intel virtualization
 13:09:04 up 1:56, 1 user, load average: 0.55, 0.37, 0.42; runlevel unknown

------------------------------------------------------------------------
Benchmark Run: Wed Apr 19 2017 13:09:04 - 13:38:10
4 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables 19547861.3 lps (10.0 s, 7 samples)
Double-Precision Whetstone 2321.8 MWIPS (13.9 s, 7 samples)
Execl Throughput 2982.7 lps (29.5 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 493713.2 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 150353.3 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 760514.6 KBps (30.1 s, 2 samples)
Pipe Throughput 1128068.6 lps (10.0 s, 7 samples)
Pipe-based Context Switching 97761.1 lps (10.0 s, 7 samples)
Process Creation 4560.7 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 1802.4 lpm (60.0 s, 2 samples)
Shell Scripts (8 concurrent) 476.7 lpm (60.1 s, 2 samples)
System Call Overhead 1752928.0 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 19547861.3 1675.1
Double-Precision Whetstone 55.0 2321.8 422.2
Execl Throughput 43.0 2982.7 693.6
File Copy 1024 bufsize 2000 maxblocks 3960.0 493713.2 1246.8
File Copy 256 bufsize 500 maxblocks 1655.0 150353.3 908.5
File Copy 4096 bufsize 8000 maxblocks 5800.0 760514.6 1311.2
Pipe Throughput 12440.0 1128068.6 906.8
Pipe-based Context Switching 4000.0 97761.1 244.4
Process Creation 126.0 4560.7 362.0
Shell Scripts (1 concurrent) 42.4 1802.4 425.1
Shell Scripts (8 concurrent) 6.0 476.7 794.5
System Call Overhead 15000.0 1752928.0 1168.6
 ========
System Benchmarks Index Score 730.4

------------------------------------------------------------------------
Benchmark Run: Wed Apr 19 2017 13:38:10 - 14:07:31
4 CPUs in system; running 4 parallel copies of tests

Dhrystone 2 using register variables 27193072.8 lps (10.0 s, 7 samples)
Double-Precision Whetstone 4985.4 MWIPS (16.4 s, 7 samples)
Execl Throughput 4453.8 lps (29.8 s, 2 samples)
File Copy 1024 bufsize 2000 maxblocks 340833.2 KBps (30.0 s, 2 samples)
File Copy 256 bufsize 500 maxblocks 74310.1 KBps (30.0 s, 2 samples)
File Copy 4096 bufsize 8000 maxblocks 886922.2 KBps (30.0 s, 2 samples)
Pipe Throughput 1467621.9 lps (10.0 s, 7 samples)
Pipe-based Context Switching 324277.3 lps (10.0 s, 7 samples)
Process Creation 10722.5 lps (30.0 s, 2 samples)
Shell Scripts (1 concurrent) 2893.2 lpm (60.1 s, 2 samples)
Shell Scripts (8 concurrent) 400.8 lpm (60.2 s, 2 samples)
System Call Overhead 2750243.4 lps (10.0 s, 7 samples)

System Benchmarks Index Values BASELINE RESULT INDEX
Dhrystone 2 using register variables 116700.0 27193072.8 2330.2
Double-Precision Whetstone 55.0 4985.4 906.4
Execl Throughput 43.0 4453.8 1035.8
File Copy 1024 bufsize 2000 maxblocks 3960.0 340833.2 860.7
File Copy 256 bufsize 500 maxblocks 1655.0 74310.1 449.0
File Copy 4096 bufsize 8000 maxblocks 5800.0 886922.2 1529.2
Pipe Throughput 12440.0 1467621.9 1179.8
Pipe-based Context Switching 4000.0 324277.3 810.7
Process Creation 126.0 10722.5 851.0
Shell Scripts (1 concurrent) 42.4 2893.2 682.4
Shell Scripts (8 concurrent) 6.0 400.8 668.0
System Call Overhead 15000.0 2750243.4 1833.5
 ========
System Benchmarks Index Score 989.4

Skor benchmark akan ditampilkan di akhir hasil.

Dan, itu saja untuk saat ini. Harap Anda menemukan ini berguna. Jika Anda menyukai pekerjaan kami, silakan bagikan panduan kami di jejaring sosial, profesional, dan dukung OSTechNix Anda.

Semangat!


Linux
  1. Menggunakan AppImage untuk manajemen paket Linux

  2. 4 alat untuk membangun sistem Linux tertanam

  3. Trizen – Manajer Paket AUR Ringan Untuk Sistem Berbasis Arch

  1. Chrony – Klien dan Server NTP Alternatif Untuk Sistem mirip Unix

  2. Suite Office Gratis Terbaik untuk Linux pada tahun 2021

  3. Detail pekerjaan cron yang terakhir dijalankan dalam sistem mirip Unix?

  1. 10 Tips Cepat Tentang perintah sudo untuk sistem Linux

  2. 10 Contoh Perintah ncat (nc) yang berguna untuk Sistem Linux

  3. 11 Contoh Perintah Split yang Berguna untuk Sistem Linux