[issue24375] Performance regression relative to 2.7

2015-06-03 Thread Yury Selivanov

New submission from Yury Selivanov:

Attached (t.py) is a random script that I stumbled upon pretty randomly on the 
internet -- someone used it to test different languages VMs performance.

The interesting thing is that 2.7 runs it 20-30% faster than 3.4  3.5 
consistently.  The script does not involve any unicode data manipulation, it's 
mostly abount float arithmetic and function calls.

--
components: Interpreter Core
files: t.py
messages: 244754
nosy: benjamin.peterson, haypo, ncoghlan, pitrou, yselivanov
priority: normal
severity: normal
status: open
title: Performance regression relative to 2.7
versions: Python 3.5, Python 3.6
Added file: http://bugs.python.org/file39609/t.py

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24375
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24375] Performance regression relative to 2.7

2015-06-03 Thread Stefan Krah

Stefan Krah added the comment:

This is my experience, too:  Floating-point calculations are often
20-30% faster on 2.7.

--
nosy: +skrah

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24375
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24375] Performance regression relative to 2.7

2015-06-03 Thread Antoine Pitrou

Antoine Pitrou added the comment:

FTR, Python 2.7 was slower until the computed gotos patch was backported.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24375
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24375] Performance regression relative to 2.7

2015-06-03 Thread Yury Selivanov

Yury Selivanov added the comment:

This is strange. On one of my gentoo boxes I'm having about the same 
performance of 2.7.9 and 3.4.3.

On macos x, 2.7.10 is faster than 3.5.x (make distclean  ./configure  make).

I don't know if I should close this issue.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24375
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24375] Performance regression relative to 2.7

2015-06-03 Thread Yury Selivanov

Yury Selivanov added the comment:

Alright.  I'm closing it, as it seems it's not obvious what's really going on 
here.  I'll try to profile it on my own later.

 (also, computing the Mandelbrot set using the CPython interpreter isn't a 
 very good use case)

Antoine, well, regardless of the actual task, we shouldn't have such cases 
(ideally).  FWIW, using numba.jit gives a ~50x boost ;)

--
resolution:  - postponed
status: open - closed
type:  - performance

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24375
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue24375] Performance regression relative to 2.7

2015-06-03 Thread Antoine Pitrou

Antoine Pitrou added the comment:

 This is strange. On one of my gentoo boxes I'm having about the same 
 performance of 2.7.9 and 3.4.3.

As I said: the computed gotos patch improved performance between 2.7.9 and 
2.7.10.

In any case, if there's no obvious course of action you can suggest, I think 
it's better to close this issue. We don't want to keep an issue open for each 
performance regression in the wild.

(also, computing the Mandelbrot set using the CPython interpreter isn't a very 
good use case)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue24375
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com