Skip to content

Instantly share code, notes, and snippets.

@okinjp
Last active July 11, 2023 11:41
Show Gist options
  • Save okinjp/9866e164337a9dcffa85b02895c30804 to your computer and use it in GitHub Desktop.
Save okinjp/9866e164337a9dcffa85b02895c30804 to your computer and use it in GitHub Desktop.
#!/bin/bash
####
# How to run this script on your computer.
# 1. Open your terminal
# 2. Copy
# "
# curl -Ls https://ip1.info/gist_dl/ubuntu-unixbench.php | bash
# "
# 3. Paste to your terminal
####
sudo apt-get update
sudo apt-get install git build-essential screen -y
git clone https://github.com/kdlucas/byte-unixbench
screen -dmS unixbench
screen -S unixbench -X stuff "cd byte-unixbench/UnixBench\n"
screen -S unixbench -X stuff "./Run >unixbench-`echo $HOSTNAME`-`date +%Y%m%d`.log 2>&1;exit\n"
echo -e "Running UnixBench on screen.\nPlease wait for about 30 minutes until the end. \nLogging to \"`pwd`/byte-unixbench/UnixBench/unixbench-`echo $HOSTNAME`-`date +%Y%m%d`.log\"."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment