From 7e0e116d4fc2a3d57e125770266e402f67ee815f Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Sun, 14 Mar 2010 08:31:49 +0200 Subject: Converted bloop to Bash --- hellyeah.command | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100755 hellyeah.command (limited to 'hellyeah.command') diff --git a/hellyeah.command b/hellyeah.command deleted file mode 100755 index 1d9b339..0000000 --- a/hellyeah.command +++ /dev/null @@ -1,30 +0,0 @@ -#!/usr/bin/env bash -# hellyeah.command -# Do some stress testings -# @author Filipp Lepalaan - -MYDIR=/private/tmp/_hellyeah -CORES=$(sysctl hw.logicalcpu_max | cut -d : -f 2 | sed 's/ //') - -for (( i = 0; i < ${CORES}; i++ )); do - yes > /dev/null 2>&1 & -done - -if [[ ! -d "${MYDIR}" ]]; then - mkdir "${MYDIR}" -fi - -trap "killall yes; rm ${MYDIR}; echo Killed; exit 255" SIGINT SIGTERM - -while true; do - for k in 10 100 1000 10000; do - BLOCKS=$(($k*1024/512)) - OF="${MYDIR}/$(uuidgen)" - dd if=/dev/random of=${OF} count=${BLOCKS} > /dev/null 2>&1 - sleep 2 - echo "Wrote ${BLOCKS} blocks" - rm -rf "${OF}" - done -done - -exit 0 -- cgit v1.2.3