HW 2: WRONG execution time on Q2A

Simone Russolillo (5790 points)
5 10 22
asked Nov 3, 2021 in HW2 by Simone Russolillo (5,790 points)
recategorized Nov 7, 2021 by andrea.sterbini
When I run the tests on my computer it takes 6 seconds but now that I have uploaded it on q2a it says 9 seconds. Does anyone know why this is happening and how to fix it?
140 views

2 Answers

gabriel.bustamante (2540 points)
3 5 20
answered Nov 3, 2021 by gabriel.bustamante (2,540 points)
My guess is that execution time depends on the speed of the CPU that processes your program. Your computer is probably faster than the VM that does the tests on q2a, hence the discrepancy
Simone Russolillo (5790 points)
5 10 22
commented Nov 3, 2021 by Simone Russolillo (5,790 points)
alright thanks!
gabrimat (5630 points)
2 3 25
answered Nov 3, 2021 by gabrimat (5,630 points)
Computer is faster than virtual machine.