diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-12-11 21:31:38 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-12-11 21:43:33 +0100 |
| commit | c9d168d6d45d57304c7dcbe4c5cbaf949385764c (patch) | |
| tree | 6a73e1c5dddb2c9a74f8c1582a535fa8ca046b81 /src/benchmarks/fd.py | |
| parent | 372a5366458c88a3571b4b7a19db538bbf947c3d (diff) | |
| download | allocbench-c9d168d6d45d57304c7dcbe4c5cbaf949385764c.tar.gz allocbench-c9d168d6d45d57304c7dcbe4c5cbaf949385764c.zip | |
fmt benchmark definitions with yapf
Diffstat (limited to 'src/benchmarks/fd.py')
| -rw-r--r-- | src/benchmarks/fd.py | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/benchmarks/fd.py b/src/benchmarks/fd.py index 910b267..a341f71 100644 --- a/src/benchmarks/fd.py +++ b/src/benchmarks/fd.py @@ -14,7 +14,6 @@ # # You should have received a copy of the GNU General Public License # along with allocbench. If not, see <http://www.gnu.org/licenses/>. - """Definition of the fd benchmark""" import os @@ -31,17 +30,18 @@ from src.util import print_info class BenchmarkFd(Benchmark): """fd benchmark """ - def __init__(self): name = "fd" super().__init__(name) - + self.cmd = "fd -HI -e c '.*[0-9].*' {linux_files}" def prepare(self): super().prepare() - linux = GitArtifact("linux", "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git") + linux = GitArtifact( + "linux", + "git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git") linux_version = "v5.3" self.linux_files = linux.provide(linux_version) @@ -53,18 +53,19 @@ class BenchmarkFd(Benchmark): fd_url = ("https://github.com/sharkdp/fd/releases/latest/download/" f"fd-{fd_version}-x86_64-unknown-linux-gnu.tar.gz") - fd = ArchiveArtifact("fd", fd_url, "tar", "a5d8e7c8484449aa324a46abfdfaf026d7de77ee") + fd = ArchiveArtifact("fd", fd_url, "tar", + "a5d8e7c8484449aa324a46abfdfaf026d7de77ee") fd_dir = os.path.join(self.build_dir, "fd_sources") fd.provide(fd_dir) # create symlinks for exe in ["fd"]: - src = os.path.join(fd_dir, f"fd-{fd_version}-x86_64-unknown-linux-gnu", exe) + src = os.path.join(fd_dir, + f"fd-{fd_version}-x86_64-unknown-linux-gnu", + exe) dest = os.path.join(self.build_dir, exe) os.link(src, dest) - - def summary(self): self.barplot_single_arg("{task-clock}", |
