10
10
"benchmarks/fib_benchmark.py" ,
11
11
"benchmarks/sort_benchmark.py" ,
12
12
"benchmarks/io_benchmark.py" ,
13
- "benchmarks/memory_benchmark.py" ,
14
- "benchmarks/concurrency_benchmark.py" ,
15
13
"benchmarks/json_benchmark.py" ,
16
14
"benchmarks/nbody_benchmark.py" ,
17
15
"benchmarks/asyncio_benchmark.py" ,
18
- "benchmarks/dictionary_benchmark.py"
16
+ "benchmarks/dictionary_benchmark.py" ,
17
+ "benchmarks/prime.py"
19
18
]
20
19
21
20
interpreters = {"CPython" : "python3" , "PyPy" : "pypy3" , "Jython" : "jython" }
@@ -49,7 +48,6 @@ def run_benchmark(interpreter, script):
49
48
mem_before = rusage_before .ru_maxrss
50
49
mem_after = rusage_after .ru_maxrss
51
50
peak = max (mem_before , mem_after )
52
- data ["peak_memory_MB" ] = peak / 1024.0
53
51
data ["interpreter" ] = interpreter
54
52
data ["script" ] = script
55
53
if "timestamp" not in data :
@@ -72,7 +70,7 @@ def main():
72
70
with open (results_csv , "w" , newline = "" ) as csvfile :
73
71
fieldnames = [
74
72
"timestamp" , "interpreter" , "script" , "benchmark" ,
75
- "iterations" , "runtime" , "wall_time" , "cpu_time" , "peak_memory_MB"
73
+ "iterations" , "runtime" , "wall_time" , "cpu_time"
76
74
]
77
75
writer = csv .DictWriter (csvfile , fieldnames = fieldnames )
78
76
writer .writeheader ()
@@ -86,8 +84,7 @@ def main():
86
84
"iterations" : r .get ("iterations" ),
87
85
"runtime" : r .get ("runtime" ),
88
86
"wall_time" : r .get ("wall_time" ),
89
- "cpu_time" : r .get ("cpu_time" ),
90
- "peak_memory_MB" : r .get ("peak_memory_MB" )
87
+ "cpu_time" : r .get ("cpu_time" )
91
88
})
92
89
print (f"All results have been saved to { results_csv } " )
93
90
else :
0 commit comments