Untitled
unknown
text
10 months ago
3.1 kB
2
Indexable
Never
Matrix size is 1000 Thread reports 0: First loop execution time 2.234257 Thread reports 9: First loop execution time 2.238072 Thread reports 7: First loop execution time 2.241762 Thread reports 1: First loop execution time 2.260569 Thread reports 3: First loop execution time 2.288441 Thread reports 4: First loop execution time 2.308892 Thread reports 8: First loop execution time 2.321624 Thread reports 5: First loop execution time 2.328416 Thread reports 2: First loop execution time 2.332608 Thread reports 6: First loop execution time 2.334467 Second loop execution time 0.177101 Second loop execution time 0.182452 Second loop execution time 0.237563 Second loop execution time 0.219222 Second loop execution time 0.224879 Second loop execution time 0.228419 Second loop execution time 0.300452 Second loop execution time 0.324280 Second loop execution time 0.444860 Second loop execution time 0.488995 Check on a random element: 2.260958585E+03 ---EX2 OUTPUT--- OUR OPTIMALIZATIONS Matrix size is 1000 Thread reports 1: First loop execution time 2.140879 Thread reports 9: First loop execution time 2.193502 Thread reports 3: First loop execution time 2.210418 Thread reports 7: First loop execution time 2.215410 Thread reports 4: First loop execution time 2.215485 Thread reports 2: First loop execution time 2.226323 Thread reports 0: First loop execution time 2.230502 Thread reports 6: First loop execution time 2.235923 Thread reports 5: First loop execution time 2.236010 Thread reports 8: First loop execution time 2.236160 Second loop execution time 0.159950 Second loop execution time 0.160225 Second loop execution time 0.180410 Second loop execution time 0.209758 Second loop execution time 0.218851 Second loop execution time 0.241429 Second loop execution time 0.619860 Second loop execution time 0.614267 Second loop execution time 0.642488 Second loop execution time 0.642641 Check on a random element: 2.144617045E+03 ---EX2 OUTPUT--- THIS IS -parallel flag Matrix size is 1000 Thread reports 2: First loop execution time 2.191911 Thread reports 8: First loop execution time 2.240250 Thread reports 3: First loop execution time 2.243566 Thread reports 6: First loop execution time 2.246271 Thread reports 9: First loop execution time 2.247668 Thread reports 0: First loop execution time 2.253523 Thread reports 7: First loop execution time 2.261951 Thread reports 5: First loop execution time 2.262187 Thread reports 4: First loop execution time 2.266205 Thread reports 1: First loop execution time 2.266235 Second loop execution time 0.164443 Second loop execution time 0.199727 Second loop execution time 0.193167 Second loop execution time 0.204165 Second loop execution time 0.247506 Second loop execution time 0.267490 Second loop execution time 0.379393 Second loop execution time 0.359461 Second loop execution time 0.543592 Second loop execution time 0.535162 Check on a random element: 2.079396893E+03 ---EX2 OUTPUT--- SINGLE THREAD Matrix size is 1000 Thread reports 562: First loop execution time 11416.000000 Second loop execution time 147925.000000 Check on a random element: 2.273736754E-13
Leave a Comment