diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-27 16:54:17 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-08-27 16:54:17 +0200 |
| commit | 93e3aac6315c17a74e63f02053a3e8e2e6b21928 (patch) | |
| tree | 6f1c22dff617e05807a88c107389654cbaf7d090 /src/benchmarks/realloc.py | |
| parent | ce532bbe9c03e52f80d263ea02038e9b81696e89 (diff) | |
| download | allocbench-93e3aac6315c17a74e63f02053a3e8e2e6b21928.tar.gz allocbench-93e3aac6315c17a74e63f02053a3e8e2e6b21928.zip | |
improve benchmark code quality using pylint
The description Benchmark member is replaced with class docstrings
Diffstat (limited to 'src/benchmarks/realloc.py')
| -rw-r--r-- | src/benchmarks/realloc.py | 11 |
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() |
