当前位置:网站首页>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

边栏推荐
- Is Ping An Securities' low commission account opening link safe? How to handle low commission
- DHCP: prevent rogue DHCP server in the network
- Drools (1): introduction to drools
- VIM common shortcut keys
- unity visual studio2019升级到2022版本(扔掉盗版红渣)
- Notes on network segment CIDR
- Resolved (selenium operation Firefox Firefox browser error) attributeerror: 'webdriver' object has no attribute 'execute_ cdp_ cmd’
- Rails with OSS best practices
- What if the content of software testing is too simple?
- Mongodb - Introduction to the usage of logical operators not, and, or, nor in query statements
猜你喜欢

The canfd/can interface offline burning operation instructions of h7-tool have been updated (2022-07-12)

The I2C interface mode offline burning operation method of h7-tool has been released (2022-07-16)

海外资深玩家的投资建议(3) 2021-05-04

TAP 系列文章8 | TAP 学习中心——通过动手教程来学习

海外资深玩家的投资建议(2) 2021-05-03

Linked list - 203. remove linked list elements

H7-tool serial port offline burning operation instructions, support TTL serial port, RS232 and RS485 (2022-06-30)

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

Drools (1): introduction to drools

Investment suggestions for overseas senior players (2) 2021-05-03
随机推荐
浅析基于NVR技术的视频能力与未来发展趋势
Preparation for raspberry pie 3B serial port login
DeFi項目的盈利邏輯 2021-04-26
$, $*, [email protected], $$ Understand the meaning of 0
【Unity3D日常BUG】Unity3D解决“找不到类型或命名空间名称“XXX”(您是否缺少using指令或程序集引用?)”等问题
Notes on network segment CIDR
unity visual studio2019升级到2022版本(扔掉盗版红渣)
Merge.Avhd into.Vhd manually in Hyper-V
Data sorting and usage before torchvision.datasets.imagefolder
Finding all paths between two points in a directed graph
Niuke C basic exercises
Absl tutorial (4): strings Library
Stm32f4 check the frequency of each part of the system
D1-h development board - Introduction to Nezha development
The ultimate experiment of OSPF -- learn the example of OSPF century template
Debian | Can’t locate Debian/Debhelper/Sequence/germinate. pm in @INC
Rails搭配OSS最佳实践
Array - 59. Spiral matrix II
H7-tool serial port offline burning operation instructions, support TTL serial port, RS232 and RS485 (2022-06-30)
Array - 704. Binary search