Aug-06-2019, 06:57 AM
As DeaD_EyE sad, "print" function can be the reason of troubles, especially in Windows (you use Windows as I guess seeing IIS).
I've run the same code on Windows 10 Pro core I7 64GB, And Linux virtual machine.
Windows:
0.2165976
Linux:
0.0051541
First of all rid of print. It gives you terrible overhead in any case.
Second, try your code on the usually recommended environment: Linux + uwsgi + Nginx. I can't except, that IIS is the trouble maker.
I've run the same code on Windows 10 Pro core I7 64GB, And Linux virtual machine.
import timeit print(timeit.timeit("print(1)", number=1000))Now, look to results:
Windows:
0.2165976
Linux:
0.0051541
First of all rid of print. It gives you terrible overhead in any case.
Second, try your code on the usually recommended environment: Linux + uwsgi + Nginx. I can't except, that IIS is the trouble maker.