You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
update benchmarks
This commit is contained in:
19
benchmark/lib/ping/ioredis.js
Normal file
19
benchmark/lib/ping/ioredis.js
Normal file
@@ -0,0 +1,19 @@
|
||||
import Redis from 'ioredis';
|
||||
|
||||
export default async (host) => {
|
||||
const client = new Redis({
|
||||
host,
|
||||
lazyConnect: true
|
||||
});
|
||||
|
||||
await client.connect();
|
||||
|
||||
return {
|
||||
benchmark() {
|
||||
return client.ping();
|
||||
},
|
||||
teardown() {
|
||||
return client.disconnect();
|
||||
}
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user