Skip to content

Commit

Permalink
Benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
SnowCait committed Aug 22, 2024
1 parent 487d66b commit effb765
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions rust-nostr.bench.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
import { EventBuilder, Keys, loadWasmAsync } from "npm:@rust-nostr/nostr";

Deno.bench("loadWasmAsync", async (b) => {
b.start();

await loadWasmAsync();

b.end();
});

Deno.bench("generate", async (b) => {
await loadWasmAsync();

Expand Down

0 comments on commit effb765

Please sign in to comment.