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