mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
ci: fix benchmarks (#2953)
This commit is contained in:
@@ -5,7 +5,7 @@ import { enableCachePlugin } from '../plugins/mod.ts.js'
|
||||
const results = await memoryBenchmarks(() =>
|
||||
enableCachePlugin(
|
||||
createBot({
|
||||
token: ' ',
|
||||
applicationId: 1n,
|
||||
botId: 0n,
|
||||
}),
|
||||
),
|
||||
|
||||
@@ -21,7 +21,7 @@ await memoryBenchmark(
|
||||
() =>
|
||||
enableCachePlugin(
|
||||
createBot({
|
||||
token: ' ',
|
||||
applicationId: 1n,
|
||||
events: {},
|
||||
}),
|
||||
),
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { createRestManager } from '@discordeno/rest'
|
||||
import { suite } from '../benchmarkSuite.js'
|
||||
|
||||
const rest = createRestManager({ token: ' ' })
|
||||
const rest = createRestManager({ applicationId: 1n })
|
||||
|
||||
suite.add(`rest.simplifyUrl`, () => {
|
||||
rest.simplifyUrl('/messages/555555555555555555', 'PUT')
|
||||
|
||||
@@ -15,7 +15,7 @@ const createGatewayManagerWithPort = (port: number) =>
|
||||
maxConcurrency: 1,
|
||||
},
|
||||
},
|
||||
token: ' ',
|
||||
applicationId: 1n,
|
||||
url: `ws://localhost:${port}`,
|
||||
intents: Intents.Guilds,
|
||||
events: {},
|
||||
|
||||
Reference in New Issue
Block a user