classification
Title: make pystone.py Py3 compatible in benchmark suite
Type: behavior Stage: resolved
Components: Benchmarks Versions: 3rd party
process
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: Nosy List: brett.cannon, pitrou, scoder, vstinner
Priority: normal Keywords:

Created on 2013-09-01 17:34 by scoder, last changed 2016-08-30 21:44 by berker.peksag. This issue is now closed.

Messages (3)
msg196723 - (view) Author: Stefan Behnel (scoder) * (Python committer) Date: 2013-09-01 17:34
diff --git a/performance/pystone.py b/performance/pystone.py
--- a/performance/pystone.py
+++ b/performance/pystone.py
@@ -59,9 +59,9 @@
 
 def main(loops=LOOPS):
     benchtime, stones = pystones(loops)
-    print "Pystone(%s) time for %d passes = %g" % \
-          (__version__, loops, benchtime)
-    print "This machine benchmarks at %g pystones/second" % stones
+    print("Pystone(%s) time for %d passes = %g" %
+          (__version__, loops, benchtime))
+    print("This machine benchmarks at %g pystones/second" % stones)
 
 
 def pystones(loops=LOOPS):
@@ -72,7 +72,7 @@
 Char1Glob = '\0'
 Char2Glob = '\0'
 Array1Glob = [0]*51
-Array2Glob = map(lambda x: x[:], [Array1Glob]*51)
+Array2Glob = list(map(lambda x: x[:], [Array1Glob]*51))
 PtrGlb = None
 PtrGlbNext = None
msg196724 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-09-01 17:43
Oh, pystone... I didn't know we had included that particular horror in the benchmark suite :-)
msg273930 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2016-08-30 16:27
> Oh, pystone... I didn't know we had included that particular horror in the benchmark suite :-)

pystone was removed from the new https://github.com/python/performance benchmark suite.

I suggest to close this issue as outdated.
History
Date User Action Args
2016-08-30 21:44:36berker.peksagsetstatus: open -> closed
resolution: out of date
stage: patch review -> resolved
2016-08-30 16:27:00vstinnersetnosy: + vstinner
messages: + msg273930
2013-09-01 17:43:20pitrousetversions: + 3rd party
nosy: + brett.cannon, pitrou

messages: + msg196724

stage: patch review
2013-09-01 17:34:51scodercreate