tinymembench: init at 0.4
Adds tinymembench, a simple benchmark for memory throughput and latency.
This commit is contained in:
parent
0db2b0471e
commit
d6ea568013
31
pkgs/by-name/ti/tinymembench/package.nix
Normal file
31
pkgs/by-name/ti/tinymembench/package.nix
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
|
pname = "tinymembench";
|
||||||
|
version = "0.4";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "ssvb";
|
||||||
|
repo = "tinymembench";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-N6jHRLqVSNe+Mk3WNfIEBGtVC7Y6/sERVaeAD68LQJc=";
|
||||||
|
};
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
runHook preInstall
|
||||||
|
install -D tinymembench $out/bin/tinymembench
|
||||||
|
runHook postInstall
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
homepage = "https://github.com/ssvb/tinymembench";
|
||||||
|
description = "Simple benchmark for memory throughput and latency";
|
||||||
|
license = licenses.mit;
|
||||||
|
platforms = platforms.linux;
|
||||||
|
mainProgram = "tinymembench";
|
||||||
|
maintainers = with maintainers; [ lorenz ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user