From 97e6a3cfb67d18273fa88ce086b3db514c7e3083 Mon Sep 17 00:00:00 2001 From: Clawd Date: Fri, 20 Feb 2026 19:59:03 -0800 Subject: benchmarks: update for v0.3.0 zero-dep implementation The crypto is brutally slow (~400x for signing, ~8500x for key gen). Non-crypto operations remain competitive. Updated summary to be honest about the tradeoffs. --- benchmarks/comparison/go.mod | 4 +--- benchmarks/comparison/go.sum | 2 ++ 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'benchmarks/comparison') diff --git a/benchmarks/comparison/go.mod b/benchmarks/comparison/go.mod index f76c374..a9ef4c1 100644 --- a/benchmarks/comparison/go.mod +++ b/benchmarks/comparison/go.mod @@ -3,7 +3,7 @@ module code.northwest.io/nostr/benchmarks/comparison go 1.25 require ( - code.northwest.io/nostr v0.0.0 + code.northwest.io/nostr v0.3.0 fiatjaf.com/nostr v0.0.0-20260211144128-7a4b71b39b12 github.com/nbd-wtf/go-nostr v0.52.3 ) @@ -35,5 +35,3 @@ require ( golang.org/x/exp v0.0.0-20250305212735-054e65f0b394 // indirect golang.org/x/sys v0.35.0 // indirect ) - -replace code.northwest.io/nostr => ../.. diff --git a/benchmarks/comparison/go.sum b/benchmarks/comparison/go.sum index fb3bb78..d3c35d7 100644 --- a/benchmarks/comparison/go.sum +++ b/benchmarks/comparison/go.sum @@ -1,3 +1,5 @@ +code.northwest.io/nostr v0.3.0 h1:axs19m/gAVhElK/WXB3wOsK/lnXSSp7rKc8SoJ2V9uQ= +code.northwest.io/nostr v0.3.0/go.mod h1:lQ14gtU7q/YAehyprzuiwtH02KnmZOy7ZBkKrTVSfm4= fiatjaf.com/nostr v0.0.0-20260211144128-7a4b71b39b12 h1:lNVaw/O5ThXVzO0Pz7D+b9fys/OaVaDG3C10kCJQFvg= fiatjaf.com/nostr v0.0.0-20260211144128-7a4b71b39b12/go.mod h1:ue7yw0zHfZj23Ml2kVSdBx0ENEaZiuvGxs/8VEN93FU= github.com/ImVexed/fasturl v0.0.0-20230304231329-4e41488060f3 h1:ClzzXMDDuUbWfNNZqGeYq4PnYOlwlOVIvSyNaIy0ykg= -- cgit v1.2.3