Efficiency time

rokshana03 (7100 points)
1 2 25
asked Nov 4, 2021 in HW2 by rokshana03 (7,100 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?
166 views

5 Answers

gianluca5539 (9710 points)
2 4 42
answered Nov 4, 2021 by gianluca5539 (9,710 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 (3460 points)
5 8 27
commented Nov 4, 2021 by KilianS (3,460 points)
do you think uploading during unusual times might make it faster? such as early in the morning or at night?
Nilats (3710 points)
6 9 27
answered Nov 4, 2021 by Nilats (3,710 points)
The speed is going to change everytime but only slightly.
Exyss (20950 points)
1 2 79
answered Nov 4, 2021 by Exyss (20,950 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 (5520 points)
2 2 23
answered Nov 4, 2021 by gabrimat (5,520 points)
It changes just very slightly, not something that is gonna affect you heavily.
gianluca5539 (9710 points)
2 4 42
commented Nov 4, 2021 by gianluca5539 (9,710 points)
It's 1 more second for me :(
Exyss (20950 points)
1 2 79
commented Nov 4, 2021 by Exyss (20,950 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 (7100 points)
1 2 25
commented Nov 4, 2021 by rokshana03 (7,100 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 (20950 points)
1 2 79
commented Nov 4, 2021 by Exyss (20,950 points)
That's a lot of extra time, are you sure you didn'g change anything?
GabrielAlexandru (7420 points)
2 4 28
answered Nov 4, 2021 by GabrielAlexandru (7,420 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.