Course Project Stage 1 part 2: building and timing

So after many hours of reading, help from current and past classmates, as well as help from professor, I am finally able to test xz utils on each of the machines I was given access to.

Build and Install
- Take the newest source code by either downloading the archive (https://tukaani.org/xz/xz-5.3.1alpha.tar.xz) or through git clone (git clone https://git.tukaani.org/xz.git). Both can be found in their website https://tukaani.org/xz/.
- From within the source code folder, execute "./autogen.sh"
- Outside of the source code, create another folder for the program.
- From within the source code foler, use "./configure --prefix=(location for the program)" to configure the desire location for the program
- Use "make install" to execute the installation

Execute and Test
- Since the machines should already have another "xz" installed, I would want to make sure if I am using the correct one. The machine installed version is older (5.2.4) than the one I installed
 (5.3.1 alpha), so I can check with "--version"
- From within the installed folder, there should be "xz" executable within "bin" folder. Use the absolute path with executable to check if the correct version installed. "(absolute path)/xz --version"
- After confirming the correct executable, then I finally use "time" for testing.
- I already pre-transferred the sample file needed to compress.
- Using "time (absolute path of executable)/xz (path of sample file)/sample file", I would successfully obtain the time results for compression.
- Then to make the test repeatable, I used "time (absolute path of executable)/xz -d (path of sample file)/sample file.xz"


And the following are the timed results of compressing/decompressing a sample file from each of the machines, recorded in minutes and seconds

(Archie) (bbetty) (xerxes)
aarchie.cdot.systems ehl.cdot.systems xerxes.cdot.systems
483,546 kb mkv file 483,546 kb mkv file 483,546 kb mkv file
compress compress compress
real 17m12.035s real 6m7.942s real 2m39.514s
user 17m0.270s user 6m4.961s user 2m38.614s
sys 0m5.519s sys 0m2.115s sys 0m0.489s
decompress decompress decompress
real 0m56.227s real 0m25.782s real 0m12.961s
user 0m53.303s user 0m24.807s user 0m12.599s
sys 0m2.669s sys 0m0.938s sys 0m0.330s
1,412,966 kb mkv file 1,412,966 kb mkv file 1,412,966 kb mkv file
compress compress compress
real 48m42.882s real 17m37.709s real 7m45.818s
user 48m9.273s user 17m29.412s user 7m43.260s
sys 0m16.204s sys 0m5.967s sys 0m1.392s
decompress decompress decompress
real 0m44.930s real 0m18.339s real 0m8.641s
user 0m34.828s user 0m15.581s user 0m7.696s
sys 0m7.771s sys 0m2.724s sys 0m0.928s


Comments

Popular posts from this blog

Lab 01: Code Review

Return from MIA

Course Project Stage 2 Introduction