Visitar URL original
gpython: Optimize recursive call · Issue #49 · go-python/gpython · GitHub
The Wayback Machine - https://web.archive.org/web/20200910210612/https://github.com/go-python/gpython/issues/49
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gpython: Optimize recursive call #49

Open
corona10 opened this issue Jan 21, 2019 · 2 comments
Open

gpython: Optimize recursive call #49

corona10 opened this issue Jan 21, 2019 · 2 comments
Labels

Comments

@corona10
Copy link
Member

@corona10 corona10 commented Jan 21, 2019 •

Thanks to tengo and @ncw, we can compare the gpython with other interpreted which are implemented in Go.

https://github.com/d5/tengo#benchmark

fib(35) benchmark is slower than I expected, we can optimize this point later.
(tail call is faster than CPython, I can't believe it!)

@ncw
Copy link
Collaborator

@ncw ncw commented Jan 21, 2019

:-) I suspect the times recorded for the tail recursive test are dominated by startup times rather than actually calling the functions.

Perhaps we should have some internal benchmarks which run python code using the go benchmark framework? That would give us a solid baseline to work with.

So we could have a benchmarks directory with python programs and a little driver to run them through the benchmark code.

@ncw ncw added the enhancement label Jan 21, 2019
@corona10
Copy link
Member Author

@corona10 corona10 commented Jan 22, 2019

@ncw Looks like we have to create a new issue for build benchmark framework for gpython

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.