summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Isaac <arunisaac@systemreboot.net>2021-05-08 18:33:05 +0530
committerArun Isaac <arunisaac@systemreboot.net>2021-05-15 13:25:33 +0530
commitfb8baf0c77a3ddfb8576c6a8aa63a14de8404f64 (patch)
tree59bf5bf47cc076813f2226421b7635f513aa8cfe
parent75530bb5033bb124f3e3f31427b6ed7fc9343c4d (diff)
gnu: Add interbench.
* gnu/packages/benchmark.scm (interbench): New variable.
-rw-r--r--gnu/packages/benchmark.scm39
1 files changed, 39 insertions, 0 deletions
diff --git a/gnu/packages/benchmark.scm b/gnu/packages/benchmark.scm
index 2fc4082ed12..b7bb332fc71 100644
--- a/gnu/packages/benchmark.scm
+++ b/gnu/packages/benchmark.scm
@@ -10,6 +10,7 @@
10;;; Copyright © 2020 malte Frank Gerdes <malte.f.gerdes@gmail.com> 10;;; Copyright © 2020 malte Frank Gerdes <malte.f.gerdes@gmail.com>
11;;; Copyright © 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com> 11;;; Copyright © 2020, 2021 Maxim Cournoyer <maxim.cournoyer@gmail.com>
12;;; Copyright © 2020 Greg Hogan <code@greghogan.com> 12;;; Copyright © 2020 Greg Hogan <code@greghogan.com>
13;;; Copyright © 2021 Arun Isaac <arunisaac@systemreboot.net>
13;;; 14;;;
14;;; This file is part of GNU Guix. 15;;; This file is part of GNU Guix.
15;;; 16;;;
@@ -353,3 +354,41 @@ Note: Locust will complain if the available open file descriptors limit for
353the user is too low. To raise such limit on a Guix System, refer to 354the user is too low. To raise such limit on a Guix System, refer to
354@samp{info guix --index-search=pam-limits-service}.") 355@samp{info guix --index-search=pam-limits-service}.")
355 (license license:expat))) 356 (license license:expat)))
357
358(define-public interbench
359 (package
360 (name "interbench")
361 (version "0.31")
362 (source
363 (origin
364 (method git-fetch)
365 (uri (git-reference
366 (url "https://github.com/ckolivas/interbench")
367 (commit (string-append "v" version))))
368 (file-name (git-file-name name version))
369 (sha256
370 (base32
371 "0ifnw8vnkcgrksx7g5d9ii4kjppqnk32lvrybdybmibyvag6zfdc"))))
372 (build-system gnu-build-system)
373 (arguments
374 `(#:tests? #f ; no tests
375 #:phases
376 (modify-phases %standard-phases
377 (add-after 'unpack 'fix-broken-makefile
378 (lambda _
379 ;; Remove erroneous "-lm" target
380 (substitute* "Makefile"
381 (("hackbench.o -lm") "hackbench.o"))))
382 (delete 'configure)
383 (replace 'install
384 (lambda* (#:key outputs #:allow-other-keys)
385 (let ((out (assoc-ref outputs "out")))
386 (install-file "interbench" (string-append out "/bin"))
387 (install-file "interbench.8" (string-append out "/share/man/man8"))))))))
388 (home-page "http://users.on.net/~ckolivas/interbench/")
389 (synopsis "Interactivity benchmark")
390 (description "interbench is designed to benchmark interactivity on Linux.
391It is designed to measure the effect of changes in Linux kernel design or
392system configuration changes such as CPU, I/O scheduler and filesystem changes
393and options. With careful benchmarking, different hardware can be compared.")
394 (license license:gpl2+)))