I know Python is supposed to be faster than Javascript.
Javascript:
console.log(Date.now());
VS (Python):
import time
print(int(time.time() * 1000))
I want to know how to speed this up.
The code is the same, but Python is slower than Javascript. How should I go about fixing this?
I would like to speed the Python code up to the same time as Javascript.
I have a few functions in my code that require this but the Python code is too slow for it.