mirror of
https://github.com/nbd-wtf/nostr-tools.git
synced 2025-12-08 16:28:49 +00:00
comments.
This commit is contained in:
@@ -7,8 +7,8 @@ import { AbstractRelay } from './abstract-relay.ts'
|
|||||||
import { Relay as PureRelay } from './relay.ts'
|
import { Relay as PureRelay } from './relay.ts'
|
||||||
import { alwaysTrue } from './helpers.ts'
|
import { alwaysTrue } from './helpers.ts'
|
||||||
|
|
||||||
|
// benchmarking relay reads with verifyEvent
|
||||||
const EVENTS = 100
|
const EVENTS = 100
|
||||||
|
|
||||||
let messages: string[] = []
|
let messages: string[] = []
|
||||||
let baseContent = ''
|
let baseContent = ''
|
||||||
for (let i = 0; i < EVENTS / 100; i++) {
|
for (let i = 0; i < EVENTS / 100; i++) {
|
||||||
@@ -57,4 +57,5 @@ group('relay read message and verify event (many events)', () => {
|
|||||||
bench('trusted', runWith(trustedRelay))
|
bench('trusted', runWith(trustedRelay))
|
||||||
})
|
})
|
||||||
|
|
||||||
|
// actually running the thing
|
||||||
await run()
|
await run()
|
||||||
|
|||||||
Reference in New Issue
Block a user