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

边栏推荐
- 1000 okaleido tiger launched binance NFT, triggering a rush to buy
- Absl tutorial (4): strings Library
- Utilisation des fonctions fléchées es6
- As a developer, you have to know the three performance testing tools JMeter, API and jmh user guide
- TAP 系列文章7 | 易于管理的流水线配置
- Financial products with an annual yield of 6%
- 狂神redis笔记10
- Finding all paths between two points in a directed graph
- SecureCRT garbled
- Stm32f4 check the frequency of each part of the system
猜你喜欢

Array - 11. Containers with the most water

fl studio 20.9更新中文版宿主DAW数字音频工作站

TAP 系列文章7 | 易于管理的流水线配置

Ways to improve the utilization of openeuler resources 01: Introduction

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

【音视频技术】视频质量评价 MSU VQMT & Netflix vmaf

Finding all paths between two points in a directed graph

使用itextpdf提取PDF文件中的任意页码

Mongodb database + graphical tools download, installation and use

Diabetes genetic risk testing challenge advanced
随机推荐
【音视频技术】视频质量评价 MSU VQMT & Netflix vmaf
[unity3d daily bug] unity3d solves "the type or namespace name" XXX "cannot be found (are you missing the using directive or assembly reference?)" Etc
系列文章|云原生时代下微服务架构进阶之路 - 微服务拆分的最佳实践
Diabetes genetic risk testing challenge advanced
STM32F4查看系统各部分频率
小说里的编程 【连载之十六】元宇宙里月亮弯弯
FL Studio 20.9 update Chinese version host Daw digital audio workstation
Lixia action | Yuanqi Digitalization: existing mode or open source innovation?
Investment suggestions for overseas senior players (2) 2021-05-03
Crazy God redis notes 10
Is it safe to open a VIP stock account on your mobile phone?
1000个Okaleido Tiger首发上线Binance NFT,引发抢购热潮
J9 number theory: how can we overcome the fomo phenomenon in the digital industry?
1000 okaleido tiger launched binance NFT, triggering a rush to buy
Tap series article 8 | tap Learning Center - learn through hands-on tutorials
在openEuler社区开源的Embedded SIG,来聊聊它的多 OS 混合部署框架
视频号加强打击低俗内容:对违背公序良俗的内容必须赶尽杀绝
The font of Siyuan notes is thinner and lighter than that in other editors (atom, VSC, sublime)
TAP 系列文章8 | TAP 学习中心——通过动手教程来学习
Finding all paths between two points in a directed graph