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

gh-132657: Add maybe_enable_deferred_ref_count().#142843

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

Draft
nascheme wants to merge4 commits intopython:main
base:main
Choose a base branch
Loading
fromnascheme:specialize-enable-deferred
Draft
Changes from1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
PrevPrevious commit
Add deepcopy benchmark to ftscalingbench.
This is taken from the PRGH-132658.
  • Loading branch information
@nascheme
nascheme committedDec 18, 2025
commit5ef77af2fa95dc48fdd9a41f6c63b13e9befc7b3
9 changes: 9 additions & 0 deletionsTools/ftscalingbench/ftscalingbench.py
View file
Open in desktop
Original file line numberDiff line numberDiff line change
Expand Up@@ -21,6 +21,7 @@
# > echo "0" | sudo tee /sys/devices/system/cpu/cpufreq/boost
#

import copy
import math
import os
import queue
Expand DownExpand Up@@ -214,6 +215,14 @@ def instantiate_dataclass():
for _ in range(1000 * WORK_SCALE):
obj = MyDataClass(x=1, y=2, z=3)


@register_benchmark
def deepcopy():
x = {'list': [1, 2], 'tuple': (1, None)}
for i in range(40 * WORK_SCALE):
copy.deepcopy(x)


def bench_one_thread(func):
t0 = time.perf_counter_ns()
func()
Expand Down
Loading

[8]ページ先頭

©2009-2025 Movatter.jp