comments.

This commit is contained in:
fiatjaf
2023-12-22 08:02:39 -03:00
parent 7067b47cd4
commit 1890c91ae3

View File

@@ -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()