[pypy-issue] Issue #1868: tkinter is slower on PyPy (pypy/pypy)

mario_ issues-reply at bitbucket.org
Wed Sep 17 23:52:39 CEST 2014


New issue 1868: tkinter is slower on PyPy
https://bitbucket.org/pypy/pypy/issue/1868/tkinter-is-slower-on-pypy

mario_:

This code runs over 10 times slower on PyPy 2.3 than on CPython 3.2. Both use Tcl/Tk version 8.5.

from tkinter import *
import math, time
root = Tk()
canvas = Canvas(root, width=500, height=500)
canvas.pack()
TIME = time.time()
l = 5000
for i in range(l):
  angle = math.pi*i/l
  canvas.create_line(0, 0, 500*math.sin(angle), 500*math.cos(angle))
print(time.time()-TIME)
root.mainloop()




More information about the pypy-issue mailing list