|
Linux script to test OS performance
copyright © john meister - LinuxMeister 2014
#!/bin/bash
############################################################################
# REM john meister - 9 Oct 2012 - updated 20 Dec 2014, converted to Linux
# REM added more load to the three loops for more significance - 19oct2012
# REM requires a 10MB and 100MB file for testing. 10MBTEST and 100MBTEST
############################################################################
LOGFILE="LoadLinux-results.`date '+%d%b%y_%S'`.txt"
echo $LOGFILE | tee $LOGFILE
FULLTIME="`/bin/date '+%H:%M:%S'`"
echo $FULLTIME >> $LOGFILE
echo "=========================START========================" >> $LOGFILE
echo "LinuxMeister OS test - LOADLNX.sh " >> $LOGFILE
echo "======================================================" >> $LOGFILE
echo "test conducted: `date`" >> $LOGFILE
echo "The Linux version was run on the following system:" >> $LOGFILE
uname -a >> $LOGFILE
cat /etc/os-release >> $LOGFILE
hostname >> $LOGFILE
echo "======================================================" >> $LOGFILE
echo "total time: subtract START from STOP using spreadsheet" >> $LOGFILE
echo "======================================================" >> $LOGFILE
STARTTIME="`date '+%M:%S'`"
cat TEST/10MBTEST > TEST/BIG
cat TEST/10MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
mv TEST/BIG TEMP/
cat TEMP/BIG > TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
mv TEMP/BIG TEST/
mv TEMP/BIGGER TEST/
rm -f TEST/BIG
rm -f TEST/BIGGER
cat TEST/10MBTEST > TEST/BIG
cat TEST/10MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
mv TEST/BIG TEMP/
cat TEMP/BIG > TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
mv TEMP/BIG TEST/
mv TEMP/BIGGER TEST/
rm -f TEST/BIG
rm -f TEST/BIGGER
STOPTIME="`date '+%M:%S'`"
echo "=====================================================" >> $LOGFILE
echo "FIRST STOP TIME: $STOPTIME" | tee -a $LOGFILE
echo "FIRST Start TIME: $STARTTIME" | tee -a $LOGFILE
echo "=====================================================" >> $LOGFILE
STARTTIME="`date '+%M:%S'`"
cat TEST/10MBTEST > TEST/BIG
cat TEST/10MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
mv TEST/BIG TEMP/
cat TEMP/BIG > TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
mv TEMP/BIG TEST/
mv TEMP/BIGGER TEST/
rm -f TEST/BIG
rm -f TEST/BIGGER
cat TEST/10MBTEST > TEST/BIG
cat TEST/10MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
mv TEST/BIG TEMP/
cat TEMP/BIG > TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
mv TEMP/BIG TEST/
mv TEMP/BIGGER TEST/
rm -f TEST/BIG
rm -f TEST/BIGGER
STOPTIME="`date '+%M:%S'`"
echo "=====================================================" >> $LOGFILE
echo "SECOND STOP TIME: $STOPTIME" | tee -a $LOGFILE
echo "SECOND Start TIME: $STARTTIME" | tee -a $LOGFILE
echo "=====================================================" >> $LOGFILE
STARTTIME="`date '+%M:%S'`"
cat TEST/10MBTEST > TEST/BIG
cat TEST/10MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
mv TEST/BIG TEMP/
cat TEMP/BIG > TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
mv TEMP/BIG TEST/
mv TEMP/BIGGER TEST/
rm -f TEST/BIG
rm -f TEST/BIGGER
cat TEST/10MBTEST > TEST/BIG
cat TEST/10MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
cat TEST/100MBTEST >> TEST/BIG
mv TEST/BIG TEMP/
cat TEMP/BIG > TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
cat TEMP/BIG >> TEMP/BIGGER
mv TEMP/BIG TEST/
mv TEMP/BIGGER TEST/
rm -f TEST/BIG
rm -f TEST/BIGGER
STOPTIME="`date '+%M:%S'`"
echo "=====================================================" >> $LOGFILE
echo "THIRD STOP TIME: $STOPTIME" | tee -a $LOGFILE
echo "THIRD Start TIME: $STARTTIME" | tee -a $LOGFILE
echo "=====================================================" >> $LOGFILE
echo "=================END=================" >> $LOGFILE
echo "Linux Load TEST COMPLETED"
|
|
Microsoft Batchfile to test OS performance
copyright © john meister - LinuxMeister 2014
REM LOAD TEST - for Microsoft operating systems - batch file
REM john meister - 9 Oct 2012 - 3 loops 19Oct 2012 - last update 20 Dec 2014
REM to place load on system - appx 4 minutes on a T3500, 12G memory, Win7
REM appx 2 minutes on a D630 with 2g, Win7 (1.5 min) d630 4g, XP
REM requires a 10MB and 100MB file for testing. 10MBTEST and 100MBTEST
REM ###############################################################################
cls
set logfile=%COMPUTERNAME%_loadresults.txt
ECHO %logfile% > %logfile%
set fulltime=%TIME%
start taskmgr.exe
ECHO . >> %logfile%
ECHO =========================START================================ >> %logfile%
ECHO LinuxMeister - LOAD-TEST for Microsoft OS >> %logfile%
ECHO ============================================================== >> %logfile%
ECHO test conducted: %DATE% - %fulltime% >> %logfile%
ECHO The Microsoft version listed below was run on the following system: >> %logfile%
ver >> %logfile%
hostname >> %logfile%
ECHO ============================================================== >> %logfile%
ECHO total time: subtract start from stop >> %logfile%
ECHO ============================================================== >> %logfile%
set startrealtime=%TIME:~3,5%
TYPE C:\TEST\10MBTEST > C:\TEST\BIG
TYPE C:\TEST\10MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
move C:\TEST\BIG C:\TEMP\
TYPE C:\TEMP\BIG > C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
move C:\TEMP\BIG C:\TEST\
move C:\TEMP\BIGGER C:\TEST\
del C:\TEST\BIG
del C:\TEST\BIGGER
TYPE C:\TEST\10MBTEST > C:\TEST\BIG
TYPE C:\TEST\10MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
move C:\TEST\BIG C:\TEMP\
TYPE C:\TEMP\BIG > C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
move C:\TEMP\BIG C:\TEST\
move C:\TEMP\BIGGER C:\TEST\
del C:\TEST\BIG
del C:\TEST\BIGGER
set realstoptime=%TIME:~3,5%
ECHO ============================================================== >> %logfile%
ECHO FIRST STOP TIME: %realstoptime% >> %logfile%
ECHO FIRST Start TIME: %startrealtime% >> %logfile%
ECHO ============================================================== >> %logfile%
set startrealtime=%TIME:~3,5%
TYPE C:\TEST\10MBTEST > C:\TEST\BIG
TYPE C:\TEST\10MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
move C:\TEST\BIG C:\TEMP\
TYPE C:\TEMP\BIG > C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
move C:\TEMP\BIG C:\TEST\
move C:\TEMP\BIGGER C:\TEST\
del C:\TEST\BIG
del C:\TEST\BIGGER
TYPE C:\TEST\10MBTEST > C:\TEST\BIG
TYPE C:\TEST\10MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
move C:\TEST\BIG C:\TEMP\
TYPE C:\TEMP\BIG > C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
move C:\TEMP\BIG C:\TEST\
move C:\TEMP\BIGGER C:\TEST\
del C:\TEST\BIG
del C:\TEST\BIGGER
set realstoptime=%TIME:~3,5%
ECHO SECOND STOP TIME: %realstoptime% >> %logfile%
ECHO SECOND Start TIME: %startrealtime% >> %logfile%
ECHO ============================================================ >> %logfile%
set startrealtime=%TIME:~3,5%
TYPE C:\TEST\10MBTEST > C:\TEST\BIG
TYPE C:\TEST\10MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
move C:\TEST\BIG C:\TEMP\
TYPE C:\TEMP\BIG > C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
move C:\TEMP\BIG C:\TEST\
move C:\TEMP\BIGGER C:\TEST\
del C:\TEST\BIG
del C:\TEST\BIGGER
TYPE C:\TEST\10MBTEST > C:\TEST\BIG
TYPE C:\TEST\10MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
TYPE C:\TEST\100MBTEST >> C:\TEST\BIG
move C:\TEST\BIG C:\TEMP\
TYPE C:\TEMP\BIG > C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
TYPE C:\TEMP\BIG >> C:\TEMP\BIGGER
move C:\TEMP\BIG C:\TEST\
move C:\TEMP\BIGGER C:\TEST\
del C:\TEST\BIG
del C:\TEST\BIGGER
set realstoptime=%TIME:~3,5%
ECHO THIRD STOP TIME: %realstoptime% >> %logfile%
ECHO THIRD Start TIME: %startrealtime% >> %logfile%
ECHO =========================================================== >> %logfile%
ECHO =================END================= >> %logfile%
REM open calculator to show the batch file is completed
start calc
|
|