To add results, edit this file.
//task:
Time your code using chrono.
//Student's note:
Record time without extra compilation flags
Recorded times after executing the .exe 10 times:
1256, 791, 858, 873, 980, 989, 915, 920, 1018, 919 milliseconds
Average: 951.9 milliseconds
Record time with -Ofast
Recorded times after executing with -Ofast:
40, 40, 41, 40, 40, 39, 41, 40, 49, 41 milliseconds
Average: 40 milliseconds
Record time with -Ofast -fopenmp
Recorded times after executing with -Ofast -fopenmp:
224, 436, 410, 150, 226, 242, 234, 258, 162, 579 milliseconds
Average: 292.1 milliseconds
Record time with different numbers of threads used
1 Thread: 56, 55, 56, 55, 55 milliseconds
2 Threads: 49, 46, 46, 47, 46 milliseconds
4 Threads: 26, 26, 26, 26, 25 milliseconds
8 Threads: 21, 21, 23, 21, 21 milliseconds
//End of Student's note.
//task:
Upload plot of timings with 4 threads, and array sizes 1K to 1G (just keep doubling the size)
//Student's note:
Added PNG and XLSX.
//End of Student's note.