Merge pull request #287542 from lorenz/add-tinymembench

tinymembench: init at 0.4
This commit is contained in:
Sandro 2024-03-24 17:53:45 +01:00 committed by GitHub
commit 332a28b17a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 31 additions and 0 deletions

View 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 ];
};
}