Code Monkey home page Code Monkey logo

benchmark's Introduction

benchmark.sh

Bash Script which runs several Linux benchmarks (Sysbench, UnixBench and Geekbench). I've tried to keep it simple. You can adjust it quickly.

Demo Output

https://www.nkn-it.de/benchmark_demo/

Requirements

These Ubuntu packages should be installed:

apt-get install     \
	bash            \
	curl            \
	make            \
	gcc             \
	build-essential \
	net-tools       \
	inetutils-ping  \
	traceroute      \
	pciutils        \
	perl            \
	lshw            \
	ioping          \
	fio             \
	sysbench

UnixBench and Geekbench 5 are automatically loaded and are temporarily installed.

Installation

Download:

curl -f https://raw.githubusercontent.com/Cyclenerd/benchmark/master/benchmark.sh -o benchmark.sh

Alternative download with short URL:

curl -fL http://bit.ly/benchmark_sh -o benchmark.sh

Usage

Run as root:

bash benchmark.sh

Unlock Geekbench using EMAIL and KEY:

bash benchmark.sh -e <Geekbench license email> -k <Geekbench license key>

Create GitHub gist with HTML results:

bash benchmark.sh -g <GitHub API token with scope gist>

Help:

bash benchmark.sh -h

Program Flow

  • Check the requirements
  • Download and build UnixBench
  • Download Geekbench 5
  • Get System info and versions
    • Hostename
    • Complete hardware
    • Kernel
    • Make
    • GCC
  • Run bandwidth benchmarks
    • ping
    • traceroute
    • 100 MB download with curl
  • Run I/O benchmarks
    • dd
    • IOPing
    • FIO
  • Run SysBench
    • CPU
  • Run UnixBench
    • The complete program! This takes a little longer.
  • Run Geekbench 5
    • CPU
  • Get uptime and load average
  • Calculate the complete duration (runtime)

โš ๏ธ Attention

This script generates a lot of load. Be aware of this. So you should just use the computer alone. Use at your own risk.

License

GNU Public License version 3. Please feel free to fork and modify this on GitHub (https://github.com/Cyclenerd/benchmark).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.