Efficiency time

rokshana03 (7140 points)
1 2 26
asked Nov 4, 2021 in HW2 by rokshana03 (7,140 points)
I had a question. So I had submitted my homework and I got an amount of efficiency time, I somehow tried to optimize it and uploaded again to check and it got slightly worse. At the end I decided to just submit the exact code of my first time. However when I did so, the efficiency time was not the same as my first time. Is it because each time you upload the efficiency is gonna get bad or it's just something with the VM?
179 views

5 Answers

gianluca5539 (9820 points)
3 6 44
answered Nov 4, 2021 by gianluca5539 (9,820 points)
The same happened with my homework. I think that the VM is under a heavy load since we are approaching the deadline to submit the assignment and so there are less resources to compute the codes we write.
KilianS (3590 points)
5 9 27
commented Nov 4, 2021 by KilianS (3,590 points)
do you think uploading during unusual times might make it faster? such as early in the morning or at night?
Nilats (3750 points)
7 14 29
answered Nov 4, 2021 by Nilats (3,750 points)
The speed is going to change everytime but only slightly.
Exyss (21390 points)
1 2 79
answered Nov 4, 2021 by Exyss (21,390 points)
As you can see in the "results" tab on the homework page, the efficiency gets calculated by running the tests multiple times and returning the average result. So yeah every time you upload the same file the efficiency score slightly changes
gabrimat (5630 points)
2 2 25
answered Nov 4, 2021 by gabrimat (5,630 points)
It changes just very slightly, not something that is gonna affect you heavily.
gianluca5539 (9820 points)
3 6 44
commented Nov 4, 2021 by gianluca5539 (9,820 points)
It's 1 more second for me :(
Exyss (21390 points)
1 2 79
commented Nov 4, 2021 by Exyss (21,390 points)
Same, here +1 sec after uploading the same file today. I guess maybe tonight would be a good time to re-upload it since none else would (?)
rokshana03 (7140 points)
1 2 26
commented Nov 4, 2021 by rokshana03 (7,140 points)
Eh I uploaded at night too, still same issue. I just don't know if it's gonna affect my grade. Like mine went up from 10k to 13k
Exyss (21390 points)
1 2 79
commented Nov 4, 2021 by Exyss (21,390 points)
That's a lot of extra time, are you sure you didn'g change anything?
GabrielAlexandru (7760 points)
2 4 29
answered Nov 4, 2021 by GabrielAlexandru (7,760 points)
As the others suggested the efficiency time can be different for every upload even though the code is the same. In your case it got worse, but if you upload it again it can get better (or even worse). So unless you really improve your code I don't think you should upload it again only to get a couple of milliseconds.