Add nostr bench tooling and mix bench comparison

This commit is contained in:
2026-03-14 01:28:32 +01:00
parent 9616383e19
commit 3b6dd0adc3
6 changed files with 609 additions and 1 deletions

28
nix/nostr-bench.nix Normal file
View File

@@ -0,0 +1,28 @@
{
lib,
fetchFromGitHub,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "nostr-bench";
version = "0.4.0";
src = fetchFromGitHub {
owner = "rnostr";
repo = pname;
rev = "d3ab701512b7c871707b209ef3f934936e407963";
hash = "sha256-F2qg1veO1iNlVUKf1b/MV+vexiy4Tt+w2aikDDbp7tU=";
};
cargoHash = "sha256-mh9UdYhZl6JVJEeDFnY5BjfcK+PrWBBEn1Qh7/ZX17k=";
doCheck = false;
meta = with lib; {
description = "Nostr relay benchmarking tool";
homepage = "https://github.com/rnostr/nostr-bench";
license = licenses.mit;
mainProgram = "nostr-bench";
platforms = platforms.unix;
};
}