IsaiahBlanks / BadBM

Repository for Computer Methodology class. Take existing BadBM project and refactor according to Agile/SOLID development priciples
1 stars 0 forks source link

jDiskMark is a disk io benchmarking utility written in java, kindly made public by jamesmarkchan in https://sourceforge.net/projects/jdiskmark/ and protected under BSD License and Apache License V2.0. See that repository for more detailed readme about functionality

This repo is for use by a Computer Methodology class, the changes may be unstable. Use the versions at https://sourceforge.net/projects/jdiskmark/ for more reliable source.

This code does what is necessary to satisfy its requirements, but it is not (yet) particularly object oriented, nor is it (yet) particularly extensible, no coincidence there :-) So for the time being we will call it "BadBM" and we will learn how to turn it into GoodBM.

Product Description The purpose of this program is to compute and provide some performance information about the local disk drive associated with the user’s home directory. It obtains this information by executing a series of write and/or read operations against the disk and measuring the throughput over time. The benchmarks to be executed are defined by allowing the user to select whether to do a ‘read’, ‘write’ or ‘write-read’ benchmark and to indicate how sizeable the benchmark test data should be as well as some other parameters. A GUI is provided to request all of this information and to allow the user to start, stop and monitor the benchmark. An X/Y graph is produced dynamically during each ‘run to show the progress and disk performance. A history of runs with all performance data is maintained in a persistent location and is visible in the GUI, and any significant events or errors encountered are presented in the GUI.

Usage

To Execute the program:

You can now click “Start” on top left of window to start a benchmark. If its is running properly, the chart on top should get populated with the performance info for the benchmark.

For UNIX/Mac:

java  -cp out/production/lcmbadbm:libs/*  edu.touro.mco152.bm.App

For Windows native or Git Bash command line (must use semicolon instead of colon for path separator):

java  -cp “out/production/lcmbadbm;libs/*  edu.touro.mco152.bm.App

Note that the jdm.properties file gets updated when the program is executed, and options you choose are available for subsequent runs. You do not need to check this file back in if changed.

Note that the locationDir property in jdm.properties is used to point to the location for the benchmark data files produced during execution. It gets set to the users home directory if not set already. If it is set and its wrong, execution of a benchmark will fail.