top of page

Testing And Comparing Performance With ASM

Updated: Oct 15, 2018

Running the new version of our "Sampling" program with the Assembly Language built into the program we were able to get an execution time of:


[jadach@aarchie spo600_20181_inline_assembler_lab]$ time ./vol_simd

Generating sample data.

Scaling samples.

Summing samples.

Result: -574


real 0m0.027s

user 0m0.018s

sys 0m0.009s


COMPARED TO our last iteration of :

[jadach@aarchie b_lab5]$ time ./vol2

Result: 416


real 0m3.229s

user 0m3.073s

sys 0m0.150s


========================

WHAT CHANGED ?

========================


Inside the new code we are using ASM to multiple multiple sets of data with a single instruction, so we are using SIMD to optimize the code.


The results above shows the difference in performance after the ASM code was added.

8 views0 comments

Recent Posts

See All

Closing Thoughts

For my final blog post I would like to discuss what I have learned and plan to utilize in the future from this course. So although I was not able to successfully improve my package to operate function

Stage 3 Optimization(COMPUTER ARCHITECTURE ENDIANESS)

Seeing as how the compiler flags did not provide any optimization I will on to my next attempt which is converting big endian to small endian. The aarch64 architecture uses the little endian byte orde

Stage 3 Optimization(Compiler Flags)

My first attempt to optimize the project will be to work with the compiler flag options. By default the compiler is set to compile in this manner "gcc -E -g -o2" The -E option represents preprocesses

bottom of page