aboutsummaryrefslogtreecommitdiff
path: root/src/benchmarks/nop.py
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2019-08-21 18:09:36 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2019-08-21 18:09:36 +0200
commitc50e3779435d16a9176b5655aca1a652fddd0ed7 (patch)
tree929e48f3280e156541919477dba048b522409503 /src/benchmarks/nop.py
parent3358e8204627bfba994abe989ea4119fe033fca9 (diff)
downloadallocbench-nop.tar.gz
allocbench-nop.zip
add debugging benchmark nopnop
Diffstat (limited to 'src/benchmarks/nop.py')
-rw-r--r--src/benchmarks/nop.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/benchmarks/nop.py b/src/benchmarks/nop.py
new file mode 100644
index 0000000..c8e3712
--- /dev/null
+++ b/src/benchmarks/nop.py
@@ -0,0 +1,20 @@
+from src.benchmark import Benchmark
+
+
+class Benchmark_NOP(Benchmark):
+ def __init__(self):
+ self.name = "nop"
+ self.descrition = """This benchmark does nothing for debugging only."""
+
+ self.cmd = "sleep {tts}"
+ self.requirements = ["sleep"]
+
+ self.args = {"tts": [1]}
+
+ super().__init__()
+
+ def summary(self):
+ pass
+
+
+nop = Benchmark_NOP()