The difference between Intel distribution for Python 2.7 and regular Python 2.7 is that it is optimized for Intel CPUs, but I can't feel the speed difference...
CPU also uses Intel CPU, but I don't think there's much difference
The test program was measured by simply rotating the loop and performing a plus operation, and the code is as follows.
import time
StartTime = time.time()
a = 0
for number in range(1, 101010000):
a = number + a
CurrentTime = time.time()
ExeTime = CurrentTime - StartTime
print (ExeTime)
The execution command used the following command when intelpython was executed.
/opt/intel/intelpython2/bin/python SpeedTest.py
When running a regular python program, I executed it with the following command
python SpeedTest.py
There's not much difference in speed Is there anything that needs to be installed separately after installing intel distribution for python 2.7?
python performance
Rather than optimizing for intel cpu, it means that it was compiled with intel c compiler.
Of course, the intel c compiler will use operational commands that only exist in intel cpu.
In that sense, it's optimized for intel cpu.
The code written by the questioner is just a simple loop, so it's hard to get an advantage.
Please test with code using numpy, scipy, etc.(For comparison, numpy, scipy must be compiled with the Intel c compiler.)
© 2024 OneMinuteCode. All rights reserved.