Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Efficiency time

rokshana03 (16750 points)
1 4 35
in HW2 by (16.8k 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?
361 views

5 Answers

gianluca5539 (9820 points)
4 6 44
by (9.8k 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)
7 10 27
by (3.6k points)
do you think uploading during unusual times might make it faster? such as early in the morning or at night?
Nilats (3750 points)
8 14 29
by (3.8k points)
The speed is going to change everytime but only slightly.
Exyss (21510 points)
1 2 79
by (21.5k 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 4 25
by (5.6k points)
It changes just very slightly, not something that is gonna affect you heavily.
gianluca5539 (9820 points)
4 6 44
by (9.8k points)
It's 1 more second for me :(
Exyss (21510 points)
1 2 79
by (21.5k 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 (16750 points)
1 4 35
by (16.8k 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 (21510 points)
1 2 79
by (21.5k points)
That's a lot of extra time, are you sure you didn'g change anything?
GabrielAlexandru (7760 points)
2 4 29
by (7.8k 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.