]> Git Repo - buildroot-mgba.git/commitdiff
package/hyperfine: new package
authorNicolas Tran <[email protected]>
Thu, 19 May 2022 08:28:00 +0000 (10:28 +0200)
committerThomas Petazzoni <[email protected]>
Mon, 25 Jul 2022 06:30:12 +0000 (08:30 +0200)
hyperfine is a benchmark tool written in Rust. It evaluates
execution time of a command passed in arguments and make
a relative comparison if multiple arguments are used at the
same time.
It can be convinient for purposes of Rust-written systems as
it runs in a stable version of Rust.

The package has been checked with correct formatting and
without typos:
./utils/check-package package/hyperfine/*

A CI test was run on gitlab.com to verify toolchain compatibilities.

Signed-off-by: Nicolas Tran <[email protected]>
Reviewed-by: Romain Naour <[email protected]>
Signed-off-by: Thomas Petazzoni <[email protected]>
DEVELOPERS
package/Config.in
package/hyperfine/Config.in [new file with mode: 0644]
package/hyperfine/hyperfine.hash [new file with mode: 0644]
package/hyperfine/hyperfine.mk [new file with mode: 0644]

index 628b5cf456f1b96dde2d9920282c9cb3ed2633ae..cd1e0e69a68b1f560ff540d71ce3e9f2121115b5 100644 (file)
@@ -2173,6 +2173,9 @@ N:        Nicolas Serafini <[email protected]>
 F:     package/exiv2/
 F:     package/ofono/
 
+N:     Nicolas Tran <[email protected]>
+F:     package/hyperfine/
+
 N:     Niklas Cassel <[email protected]>
 F:     configs/qemu_riscv64_nommu_virt_defconfig
 
index 3a70fe3f9f68c27fe100f8dd7f78022f66c29a95..455c69bac9699a874a295fc66208a534c3abb1cd 100644 (file)
@@ -106,6 +106,7 @@ menu "Debugging, profiling and benchmark"
        source "package/fwts/Config.in"
        source "package/gdb/Config.in"
        source "package/google-breakpad/Config.in"
+       source "package/hyperfine/Config.in"
        source "package/iozone/Config.in"
        source "package/kexec/Config.in"
        source "package/kexec-lite/Config.in"
diff --git a/package/hyperfine/Config.in b/package/hyperfine/Config.in
new file mode 100644 (file)
index 0000000..527e978
--- /dev/null
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_HYPERFINE
+       bool "hyperfine"
+       depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+       select BR2_PACKAGE_HOST_RUSTC
+       help
+         hyperfine is a benchmark tool written in Rust. It evaluates
+         execution time of a command passed in arguments and make a
+         relative comparison if multiple arguments are used at the
+         same time.
+
+         https://github.com/sharkdp/hyperfine
diff --git a/package/hyperfine/hyperfine.hash b/package/hyperfine/hyperfine.hash
new file mode 100644 (file)
index 0000000..50cc769
--- /dev/null
@@ -0,0 +1,4 @@
+# Locally computed
+sha256  28fcd72c556b4ca2150577217a4d7d51907b7e00ff86b764943d068202a92ace  hyperfine-1.14.0.tar.gz
+sha256  c71d239df91726fc519c6eb72d318ec65820627232b2f796219e87dcf35d0ab4  LICENSE-APACHE
+sha256  1dfee18c2ff07ce551de4d6a1d2db158c0380746b488a7f0d08c8e0d3568b7c3  LICENSE-MIT
diff --git a/package/hyperfine/hyperfine.mk b/package/hyperfine/hyperfine.mk
new file mode 100644 (file)
index 0000000..62246f0
--- /dev/null
@@ -0,0 +1,12 @@
+################################################################################
+#
+# hyperfine
+#
+################################################################################
+
+HYPERFINE_VERSION = 1.14.0
+HYPERFINE_SITE = $(call github,sharkdp,hyperfine,v$(HYPERFINE_VERSION))
+HYPERFINE_LICENSE = Apache-2.0 or MIT
+HYPERFINE_LICENSE_FILES = LICENSE-APACHE LICENSE-MIT
+
+$(eval $(cargo-package))
This page took 0.045448 seconds and 4 git commands to generate.