Skip to content

Commit 430cb5c

Browse files
Apply suggestions from code review
Co-authored-by: Sam Gross <[email protected]>
1 parent b2fb5ec commit 430cb5c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Tools/ftscalingbench/ftscalingbench.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,14 @@ def register_benchmark(func):
4646
@register_benchmark
4747
def shallow_copy():
4848
x = [1, 2, 3]
49-
shallow_copy = copy.copy
5049
for i in range(200 * WORK_SCALE):
51-
shallow_copy(x)
50+
copy.copy(x)
5251

5352
@register_benchmark
5453
def deepcopy():
5554
x = {'list': [1, 2], 'tuple': (1, None)}
56-
deepcopy = copy.deepcopy
5755
for i in range(40 * WORK_SCALE):
58-
deepcopy(x)
56+
copy.deepcopy(x)
5957

6058
@register_benchmark
6159
def object_cfunction():

0 commit comments

Comments
 (0)