4 ms·
no one mentioned this, and maybe I got things wrong, but python 3 is significantly slower than python 2. at least this is certainly true using spyder (maybe it
by autokad 9y ago
no one mentioned this, and maybe I got things wrong, but python 3 is significantly slower than python 2. at least this is certainly true using spyder (maybe its not in other cases)
laptop py 2.7 (4 cores 3ghz, 16 gb ram) vs desktop py 3.5(6 cores 4.5 ghz, 64 gb ram) - both windows. When I am running my models for kaggle competitions, my laptop usually finishes first by about 20% total time, unless the model I am running can take advantage of my GPU.
edit: I never figured out why, but if I generate a submission with 3.5x, 75% of the time its accuracy is significantly worse.
- dijit 9y agoVery interesting anecdote, perhaps something wrong with the build? I know that my python3 saltstack returners return before the python2 ones. I have not done probing as to the exact performance profile of py2 vs py3 though- I would be surprised if python3 was actually slower though- unless it's to do with the UTF-8 everywhereness or something.
- mynewtb 9y agoCaan you show some numbers and profiling?