---
title: " rabbitmq性能测试"
author: "badqiu"
date: "2013-06-07T15:18:06Z"
tags: []
categories: ["编程语言"]
slug: "rabbitmq"
draft: false
lastmod: "2013-06-07T15:18:06Z"
id: 1883828
url: "https://badqiu.iteye.com/blog/1883828"
---

**测试机器：**

CPU： 8核

内存： 16GB

硬盘：SAS 300GB

 

 

 

 

**-----------------------------------------------------------------**

         **rabbitmq性能测试**

**-----------------------------------------------------------------**

rabbitmq发送：持久化

rabbitmq send perf,exchange:exchange\_durable concurrency:8 bodySize:1 cost:10587 count:200000 all\_tps:18891 per\_thread\_tps:2361

rabbitmq send perf,exchange:exchange\_durable concurrency:16 bodySize:1 cost:11507 count:200000 all\_tps:17380 per\_thread\_tps:1086

rabbitmq send perf,exchange:exchange\_durable concurrency:8 bodySize:40 cost:18128 count:200000 all\_tps:11032 per\_thread\_tps:1379

rabbitmq send perf,exchange:exchange\_durable concurrency:16 bodySize:40 cost:20078 count:200000 all\_tps:9961 per\_thread\_tps:622

rabbitmq send perf,exchange:exchange\_durable concurrency:8 bodySize:1024 cost:20367 count:200000 all\_tps:9819 per\_thread\_tps:1227

rabbitmq send perf,exchange:exchange\_durable concurrency:16 bodySize:1024 cost:35198 count:200000 all\_tps:5682 per\_thread\_tps:355

rabbitmq send perf,exchange:exchange\_durable concurrency:8 bodySize:4096 cost:32366 count:200000 all\_tps:6179 per\_thread\_tps:772

rabbitmq send perf,exchange:exchange\_durable concurrency:16 bodySize:4096 cost:30131 count:200000 all\_tps:6637 per\_thread\_tps:414

 

rabbitmq发送：内存

rabbitmq send perf,exchange:exchange\_memory concurrency:8 bodySize:1 cost:15237 count:200000 all\_tps:13125 per\_thread\_tps:1640

rabbitmq send perf,exchange:exchange\_memory concurrency:16 bodySize:1 cost:25250 count:200000 all\_tps:7920 per\_thread\_tps:495

rabbitmq send perf,exchange:exchange\_memory concurrency:8 bodySize:40 cost:21659 count:200000 all\_tps:9234 per\_thread\_tps:1154

rabbitmq send perf,exchange:exchange\_memory concurrency:16 bodySize:40 cost:29767 count:200000 all\_tps:6718 per\_thread\_tps:419

rabbitmq send perf,exchange:exchange\_memory concurrency:8 bodySize:1024 cost:23179 count:200000 all\_tps:8628 per\_thread\_tps:1078

rabbitmq send perf,exchange:exchange\_memory concurrency:16 bodySize:1024 cost:25697 count:200000 all\_tps:7783 per\_thread\_tps:486

rabbitmq send perf,exchange:exchange\_memory concurrency:8 bodySize:4096 cost:33315 count:200000 all\_tps:6003 per\_thread\_tps:750

rabbitmq send perf,exchange:exchange\_memory concurrency:16 bodySize:4096 cost:44626 count:200000 all\_tps:4481 per\_thread\_tps:280

 

rabbitmq接收：持久化

rabbitmq receive perf,queue:queue\_durable concurrency:8 prefetchCount:1 cost:9732 count:200000 all\_tps:20550 per\_thread\_tps:2568

rabbitmq receive perf,queue:queue\_durable concurrency:8 prefetchCount:50 cost:51346 count:200000 all\_tps:3895 per\_thread\_tps:486

rabbitmq receive perf,queue:queue\_durable concurrency:8 prefetchCount:1000 cost:54912 count:200000 all\_tps:3642 per\_thread\_tps:455

rabbitmq receive perf,queue:queue\_durable concurrency:16 prefetchCount:1 cost:45727 count:200000 all\_tps:4373 per\_thread\_tps:273

rabbitmq receive perf,queue:queue\_durable concurrency:16 prefetchCount:50 cost:47320 count:200000 all\_tps:4226 per\_thread\_tps:264

rabbitmq receive perf,queue:queue\_durable concurrency:16 prefetchCount:1000 cost:48504 count:200000 all\_tps:4123 per\_thread\_tps:257

 

rabbitmq接收：内存

rabbitmq receive perf,queue:queue\_memory concurrency:8 prefetchCount:1 cost:59068 count:200000 all\_tps:3385 per\_thread\_tps:423

rabbitmq receive perf,queue:queue\_memory concurrency:8 prefetchCount:50 cost:59263 count:200000 all\_tps:3374 per\_thread\_tps:421

rabbitmq receive perf,queue:queue\_memory concurrency:8 prefetchCount:1000 cost:64494 count:200000 all\_tps:3101 per\_thread\_tps:387

rabbitmq receive perf,queue:queue\_memory concurrency:16 prefetchCount:1 cost:62567 count:200000 all\_tps:3196 per\_thread\_tps:199

rabbitmq receive perf,queue:queue\_memory concurrency:16 prefetchCount:50 cost:64184 count:200000 all\_tps:3116 per\_thread\_tps:194

rabbitmq receive perf,queue:queue\_memory concurrency:16 prefetchCount:1000 cost:64630 count:200000 all\_tps:3094 per\_thread\_tps:193