当前位置:网站首页>Redis pipeline technology / partition
Redis pipeline technology / partition
2022-07-23 23:04:00 【InfoQ】
Redis Pipeline technology
example
$(echo -en "PING\r\n SET runoobkey redis\r\nGET runoobkey\r\nINCR visitor\r\nINCR visitor\r\nINCR visitor\r\n"; sleep 10) | nc localhost 6379
+PONG
+OK
redis
:1
:2
:3
require 'rubygems'
require 'redis'
def bench(descr)
start = Time.now
yield
puts "#{descr} #{Time.now-start} seconds"
end
def without_pipelining
r = Redis.new
10000.times {
r.ping
}
end
def with_pipelining
r = Redis.new
r.pipelined {
10000.times {
r.ping
}
}
end
bench("without pipelining") {
without_pipelining
}
bench("with pipelining") {
with_pipelining
}
Redis
Partition type
Range partitioning
Hash partition

边栏推荐
- Array - 59. Spiral matrix II
- torchvision.datasets.ImageFolder前的数据整理及使用方法
- The role of physical layer, link layer, network layer, transport layer and application layer of tcp/ip model of internet protocol stack
- Analysis of video capability and future development trend based on NVR Technology
- Remember an experience of being cheated by the Internet
- Rails with OSS best practices
- How to reasonably estimate the size of thread pool
- unity visual studio2019升级到2022版本(扔掉盗版红渣)
- 作为开发,你不得不知道的三个性能测试工具|Jmeter、Apipost、JMH使用指南
- The ultimate experiment of OSPF -- learn the example of OSPF century template
猜你喜欢

Microsoft SQL Server database language and function usage (XIII)

Ways to improve the utilization of openeuler resources 01: Introduction

Raspberry pie SSH login

STM32 MCU uses ADC function to drive finger heartbeat detection module

TAP 系列文章9 | 应用开发加速器

What else do entrepreneurs need besides money? Exclusive interview with Mingyue Lake venture capital institutions

1000个Okaleido Tiger首发上线Binance NFT,引发抢购热潮

Investment suggestions for overseas senior players (3) 2021-05-04

Tap series article 6 | application model of tap

海外资深玩家的投资建议(2) 2021-05-03
随机推荐
Excel password related
Is the height of binary tree [log2n]+1 equal to log2 (n+1)
J9 number theory: how can we overcome the fomo phenomenon in the digital industry?
D1-h development board - Introduction to Nezha development
糖尿病遗传风险检测挑战赛进阶
The I2C interface mode offline burning operation method of h7-tool has been released (2022-07-16)
海外资深玩家的投资建议(3) 2021-05-04
TAP 系列文章4 | 基于 Backstage 的 TAP 开发者门户
MySQL的 DDL和DML和DQL的基本语法
Brief analysis of compiling principle of.Net CLR R2R
Programming in the novel [serial 20] the moon bends in the yuan universe
巴菲特股东大会的启示 2021-05-06
思源笔记的字体比其他的编辑器(Atom,VSC,sublime)内字体渲染更细更淡
作为开发,你不得不知道的三个性能测试工具|Jmeter、Apipost、JMH使用指南
Matlab wavelet toolbox import signal error (doesn't contain one dimensional single)
Programming in the novel [serial 16] the moon bends in the yuan universe
Mongodb - Introduction to the use of $exists and the combination of $ne, $nin, $nor, $not in query statements
Programming in the novel [serial 17] the moon bends in the yuan universe
How ZK solves the problem of cerebral fissure
Wechat applet implements a global event bus by itself