From 93e3aac6315c17a74e63f02053a3e8e2e6b21928 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Tue, 27 Aug 2019 16:54:17 +0200 Subject: improve benchmark code quality using pylint The description Benchmark member is replaced with class docstrings --- src/benchmarks/realloc.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'src/benchmarks/realloc.py') 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() -- cgit v1.2.3