andrewt0301 / hse-acos-course

Materials for the "Computer Architecture and Operating Systems" course taught at Faculty of Computer Science of Higher School of Economics
https://andrewt0301.github.io/hse-acos-course/
Apache License 2.0
32 stars 27 forks source link

[Bug]: C seems to be compiled in default mode #7

Open WhiteBlackGoose opened 2 years ago

WhiteBlackGoose commented 2 years ago

C takes 2.7 sec at best according to the presentation (on my machine it takes 3.4 without flags).

Instead, if you supply optimization flags, it'd take 0.7 sec.

To benchmark fairly, one would need to compile it like this:

gcc matrix_jki.c -O3