Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add simple memory allocation benchmark#132

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
tiran wants to merge5 commits intopython:main
base:main
Choose a base branch
Loading
fromtiran:bm_alloc

Conversation

tiran
Copy link
Member

No description provided.

@pablogsal
Copy link
Member

I'm happy landing this. Let's give some days if@vstinner wants to take a look.

Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
@vstinner
Copy link
Member

Does it belong to pyperformance which is supposed to be a set of "macro benchmarks"?

IMO it's to have benchmarks outside pyperformance.@ericsnowcurrently wants to add the ability to plug your own benchmark suite in pyperformance using configuration files, but I didn't follow his PR recently.

@pablogsal
Copy link
Member

Does it belong to pyperformance which is supposed to be a set of "macro benchmarks"?

I would say yes: we have things that are quite small in what they do anyway. C'mon, we even have unpacking tests:

for_inrange_it:
# 400 unpackings
a,b,c,d,e,f,g,h,i,j=to_unpack
a,b,c,d,e,f,g,h,i,j=to_unpack
a,b,c,d,e,f,g,h,i,j=to_unpack
a,b,c,d,e,f,g,h,i,j=to_unpack
a,b,c,d,e,f,g,h,i,j=to_unpack
a,b,c,d,e,f,g,h,i,j=to_unpack
a,b,c,d,e,f,g,h,i,j=to_unpack
a,b,c,d,e,f,g,h,i,j=to_unpack
a,b,c,d,e,f,g,h,i,j=to_unpack

@vstinner
Copy link
Member

C'mon, we even have unpacking tests:

Maybe these tests don't belong to pyperformance :-(

I would say yes: we have things that are quite small in what they do anyway.

It's up to you.

@ericsnowcurrently
Copy link
Member

Does it belong to pyperformance which is supposed to be a set of "macro benchmarks"?

@ericsnowcurrently wants to add the ability to plug your own benchmark suite in pyperformance

My PR landed a while back and is part of the most recent release.

That said, we already have a bunch of micro benchmarks so I'm not opposed to adding more. (We can separate the bunch later.) However, it would be worth marking them as "micro" sooner rather than later so they are easy to skip. That would involve adding/updatingtags = "micro" in the[tool.pyperformance] section of each benchmark's pyproject.toml. For this PR it would probably be okay to do so just for the new benchmark.

@tirantiran marked this pull request as ready for reviewFebruary 8, 2022 17:15
@pablogsal
Copy link
Member

@tiran THe benchmark fails for pypy becausesys.getsizeof doesn't work. Check the CI output

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@pablogsalpablogsalpablogsal left review comments

@ericsnowcurrentlyericsnowcurrentlyericsnowcurrently requested changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

4 participants
@tiran@pablogsal@vstinner@ericsnowcurrently

[8]ページ先頭

©2009-2025 Movatter.jp