Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(bench): cleanup ioredis const #97

Merged
merged 1 commit into from
Jan 14, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions bench.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { connect } from "https://deno.land/x/redis@v0.27.4/mod.ts";
import RedisImport from "npm:ioredis@5.2.4";
import { Redis } from "npm:ioredis@5.2.5";
import nodeRedis from "npm:redis@4.5.1";

import { pipelineCommands, sendCommand } from "./mod.ts";
Expand All @@ -9,9 +9,7 @@ const PORT = 6379;

const redisConn = await Deno.connect({ hostname: HOSTNAME, port: PORT });
const denoRedis = await connect({ hostname: HOSTNAME, port: PORT });
/** TODO: remove when https://github.com/luin/ioredis/issues/1642 is fixed */
// deno-lint-ignore no-explicit-any
const ioRedis = new (RedisImport as any as typeof RedisImport["default"])();
const ioRedis = new Redis();

const nodeRedisClient = nodeRedis.createClient({ socket: { host: HOSTNAME } });
await nodeRedisClient.connect();
Expand Down