aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/realloc.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmarks/realloc.py')
-rw-r--r--src/benchmarks/realloc.py11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/benchmarks/realloc.py b/src/benchmarks/realloc.py
index f3f3c2e..c8eb955 100644
--- a/src/benchmarks/realloc.py
+++ b/src/benchmarks/realloc.py
@@ -1,10 +1,15 @@
+"""Definition of the realloc micro benchmark"""
+
from src.benchmark import Benchmark
-class Benchmark_Realloc(Benchmark):
+class BenchmarkRealloc(Benchmark):
+ """Realloc micro benchmark
+
+ realloc a pointer 100 times
+ """
def __init__(self):
self.name = "realloc"
- self.descrition = """Realloc 100 times"""
self.cmd = "realloc"
@@ -22,4 +27,4 @@ class Benchmark_Realloc(Benchmark):
self.export_stats_to_dataref("task-clock")
-realloc = Benchmark_Realloc()
+realloc = BenchmarkRealloc()