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/t_test1.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/t_test1.py')
| -rw-r--r-- | src/benchmarks/t_test1.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/benchmarks/t_test1.py b/src/benchmarks/t_test1.py index a2a6e0b..b22b21c 100644 --- a/src/benchmarks/t_test1.py +++ b/src/benchmarks/t_test1.py @@ -1,12 +1,16 @@ +"""Definition of the commonly used t-test1 allocator test""" + from src.benchmark import Benchmark -from src.allocators.bumpptr import bumpptr -class Benchmark_t_test1(Benchmark): +class BenchmarkTTest1(Benchmark): + """t-test1 unit test + + This benchmark from ptmalloc2 allocates and frees n bins in t concurrent threads. + """ + def __init__(self): self.name = "t_test1" - self.descrition = """This benchmark from ptmalloc2 allocates and frees - n bins in t concurrent threads.""" self.cmd = "t-test1 {nthreads} {nthreads} 1000000 {maxsize}" @@ -16,8 +20,6 @@ class Benchmark_t_test1(Benchmark): self.requirements = ["t-test1"] super().__init__() - self.allocators["bumpptr"] = bumpptr.build() - def summary(self): # mops / per second yval = "perm.nthreads / ({task-clock}/1000)" @@ -50,4 +52,4 @@ class Benchmark_t_test1(Benchmark): self.export_stats_to_csv("task-clock") -t_test1 = Benchmark_t_test1() +t_test1 = BenchmarkTTest1() |
