Sublime Forum

Is 5.7 seconds to run a Python code considerably normal?

#1

I tried to run a simple Python code like this below:

print "Hello world"
print "Hello you"

And when I hit Ctrl+B, after I choose Python it took 5.7 second to display the result. My question is: is it considerably normal?

NB: I’m on Windows 10 PC run on 16GB RAM and Python 2.6.

Edit: after the first code I tried to run another codes and the codes would run promptly (about 0.1 to 0.2 seconds)

0 Likes

#2

how long does it take when you execute the same Python script from the Command Prompt?

0 Likes

#3

Takes 0.1s using ST2 or ST3.

I have python 3.5.2 installed.

I am on Windows 10 x64.

So, NO! This is not normal.

0 Likes

#4

Promptly.

But now I found out that after the first code, the next codes took about 0.1 sec… so the delay happened only for the first run.

0 Likes

#5

Maybe caused by a virus scanner which scans python and all its libs the first time? Windows is slow in starting new processes compared to Linux but not so slow, normally.

0 Likes