@@ -173,18 +173,18 @@ jobs:
173173 echo "" >> benchmark-report.md
174174
175175 echo "## 同步SET性能对比" >> benchmark-report.md
176- echo "| 客户端数量 | Redisun耗时 | Redisun OPS | Redisson耗时 | Redisson OPS |" >> benchmark-report.md
177- echo "|------------|-------------| ------------- |--------------| --------------|" >> benchmark-report.md
176+ echo "| 客户端数量 | 耗时( Redisun/Redisson) | OPS(Redisun/Redisson) |" >> benchmark-report.md
177+ echo "|------------|------------------------|-----------------------|" >> benchmark-report.md
178178
179179 # 1 client 同步SET
180180 if grep -q "redisun cost:" redisun_concurrent_set_1.log && grep -q "redisson cost:" redisson_concurrent_set_1.log; then
181181 redisun_concurrent_set_time_1=$(grep "redisun cost:" redisun_concurrent_set_1.log | awk '{print $5}')
182182 redisun_concurrent_set_ops_1=$(grep "redisun ops/s:" redisun_concurrent_set_1.log | awk '{print $5}')
183183 redisson_concurrent_set_time_1=$(grep "redisson cost:" redisson_concurrent_set_1.log | awk '{print $5}')
184184 redisson_concurrent_set_ops_1=$(grep "redisson ops/s:" redisson_concurrent_set_1.log | awk '{print $5}')
185- echo "| 1 | ${redisun_concurrent_set_time_1} | ${redisun_concurrent_set_ops_1 } | ${redisson_concurrent_set_time_1} | ${redisson_concurrent_set_ops_1} |" >> benchmark-report.md
185+ echo "| 1 | ${redisun_concurrent_set_time_1}/${redisson_concurrent_set_time_1 } | ${redisun_concurrent_set_ops_1}/ ${redisson_concurrent_set_ops_1} |" >> benchmark-report.md
186186 else
187- echo "| 1 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
187+ echo "| 1 | 测试失败 | N/A |" >> benchmark-report.md
188188 fi
189189
190190 # 8 clients 同步SET
@@ -193,9 +193,9 @@ jobs:
193193 redisun_concurrent_set_ops_8=$(grep "redisun ops/s:" redisun_concurrent_set_8.log | awk '{print $5}')
194194 redisson_concurrent_set_time_8=$(grep "redisson cost:" redisson_concurrent_set_8.log | awk '{print $5}')
195195 redisson_concurrent_set_ops_8=$(grep "redisson ops/s:" redisson_concurrent_set_8.log | awk '{print $5}')
196- echo "| 8 | ${redisun_concurrent_set_time_8} | ${redisun_concurrent_set_ops_8 } | ${redisson_concurrent_set_time_8} | ${redisson_concurrent_set_ops_8} |" >> benchmark-report.md
196+ echo "| 8 | ${redisun_concurrent_set_time_8}/${redisson_concurrent_set_time_8 } | ${redisun_concurrent_set_ops_8}/ ${redisson_concurrent_set_ops_8} |" >> benchmark-report.md
197197 else
198- echo "| 8 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
198+ echo "| 8 | 测试失败 | N/A |" >> benchmark-report.md
199199 fi
200200
201201 # 128 clients 同步SET
@@ -204,9 +204,9 @@ jobs:
204204 redisun_concurrent_set_ops_128=$(grep "redisun ops/s:" redisun_concurrent_set_128.log | awk '{print $5}')
205205 redisson_concurrent_set_time_128=$(grep "redisson cost:" redisson_concurrent_set_128.log | awk '{print $5}')
206206 redisson_concurrent_set_ops_128=$(grep "redisson ops/s:" redisson_concurrent_set_128.log | awk '{print $5}')
207- echo "| 128 | ${redisun_concurrent_set_time_128} | ${redisun_concurrent_set_ops_128 } | ${redisson_concurrent_set_time_128} | ${redisson_concurrent_set_ops_128} |" >> benchmark-report.md
207+ echo "| 128 | ${redisun_concurrent_set_time_128}/${redisson_concurrent_set_time_128 } | ${redisun_concurrent_set_ops_128}/ ${redisson_concurrent_set_ops_128} |" >> benchmark-report.md
208208 else
209- echo "| 128 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
209+ echo "| 128 | 测试失败 | N/A |" >> benchmark-report.md
210210 fi
211211
212212 # 1024 clients 同步SET
@@ -215,26 +215,26 @@ jobs:
215215 redisun_concurrent_set_ops_1024=$(grep "redisun ops/s:" redisun_concurrent_set_1024.log | awk '{print $5}')
216216 redisson_concurrent_set_time_1024=$(grep "redisson cost:" redisson_concurrent_set_1024.log | awk '{print $5}')
217217 redisson_concurrent_set_ops_1024=$(grep "redisson ops/s:" redisson_concurrent_set_1024.log | awk '{print $5}')
218- echo "| 1024 | ${redisun_concurrent_set_time_1024} | ${redisun_concurrent_set_ops_1024 } | ${redisson_concurrent_set_time_1024} | ${redisson_concurrent_set_ops_1024} |" >> benchmark-report.md
218+ echo "| 1024 | ${redisun_concurrent_set_time_1024}/${redisson_concurrent_set_time_1024 } | ${redisun_concurrent_set_ops_1024}/ ${redisson_concurrent_set_ops_1024} |" >> benchmark-report.md
219219 else
220- echo "| 1024 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
220+ echo "| 1024 | 测试失败 | N/A |" >> benchmark-report.md
221221 fi
222222
223223 echo "" >> benchmark-report.md
224224
225225 echo "## 异步SET性能对比" >> benchmark-report.md
226- echo "| 客户端数量 | Redisun耗时 | Redisun OPS | Redisson耗时 | Redisson OPS |" >> benchmark-report.md
227- echo "|------------|-------------| ------------- |--------------| --------------|" >> benchmark-report.md
226+ echo "| 客户端数量 | 耗时( Redisun/Redisson) | OPS(Redisun/Redisson) |" >> benchmark-report.md
227+ echo "|------------|------------------------|-----------------------|" >> benchmark-report.md
228228
229229 # 1 client 异步SET
230230 if grep -q "redisun cost:" redisun_async_set_1.log && grep -q "redisson cost:" redisson_async_set_1.log; then
231231 redisun_async_set_time_1=$(grep "redisun cost:" redisun_async_set_1.log | awk '{print $5}')
232232 redisun_async_set_ops_1=$(grep "redisun ops/s:" redisun_async_set_1.log | awk '{print $5}')
233233 redisson_async_set_time_1=$(grep "redisson cost:" redisson_async_set_1.log | awk '{print $5}')
234234 redisson_async_set_ops_1=$(grep "redisson ops/s:" redisson_async_set_1.log | awk '{print $5}')
235- echo "| 1 | ${redisun_async_set_time_1} | ${redisun_async_set_ops_1 } | ${redisson_async_set_time_1} | ${redisson_async_set_ops_1} |" >> benchmark-report.md
235+ echo "| 1 | ${redisun_async_set_time_1}/${redisson_async_set_time_1 } | ${redisun_async_set_ops_1}/ ${redisson_async_set_ops_1} |" >> benchmark-report.md
236236 else
237- echo "| 1 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
237+ echo "| 1 | 测试失败 | N/A |" >> benchmark-report.md
238238 fi
239239
240240 # 8 clients 异步SET
@@ -243,9 +243,9 @@ jobs:
243243 redisun_async_set_ops_8=$(grep "redisun ops/s:" redisun_async_set_8.log | awk '{print $5}')
244244 redisson_async_set_time_8=$(grep "redisson cost:" redisson_async_set_8.log | awk '{print $5}')
245245 redisson_async_set_ops_8=$(grep "redisson ops/s:" redisson_async_set_8.log | awk '{print $5}')
246- echo "| 8 | ${redisun_async_set_time_8} | ${redisun_async_set_ops_8 } | ${redisson_async_set_time_8} | ${redisson_async_set_ops_8} |" >> benchmark-report.md
246+ echo "| 8 | ${redisun_async_set_time_8}/${redisson_async_set_time_8 } | ${redisun_async_set_ops_8}/ ${redisson_async_set_ops_8} |" >> benchmark-report.md
247247 else
248- echo "| 8 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
248+ echo "| 8 | 测试失败 | N/A |" >> benchmark-report.md
249249 fi
250250
251251 # 128 clients 异步SET
@@ -254,9 +254,9 @@ jobs:
254254 redisun_async_set_ops_128=$(grep "redisun ops/s:" redisun_async_set_128.log | awk '{print $5}')
255255 redisson_async_set_time_128=$(grep "redisson cost:" redisson_async_set_128.log | awk '{print $5}')
256256 redisson_async_set_ops_128=$(grep "redisson ops/s:" redisson_async_set_128.log | awk '{print $5}')
257- echo "| 128 | ${redisun_async_set_time_128} | ${redisun_async_set_ops_128 } | ${redisson_async_set_time_128} | ${redisson_async_set_ops_128} |" >> benchmark-report.md
257+ echo "| 128 | ${redisun_async_set_time_128}/${redisson_async_set_time_128 } | ${redisun_async_set_ops_128}/ ${redisson_async_set_ops_128} |" >> benchmark-report.md
258258 else
259- echo "| 128 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
259+ echo "| 128 | 测试失败 | N/A |" >> benchmark-report.md
260260 fi
261261
262262 # 1024 clients 异步SET
@@ -265,26 +265,26 @@ jobs:
265265 redisun_async_set_ops_1024=$(grep "redisun ops/s:" redisun_async_set_1024.log | awk '{print $5}')
266266 redisson_async_set_time_1024=$(grep "redisson cost:" redisson_async_set_1024.log | awk '{print $5}')
267267 redisson_async_set_ops_1024=$(grep "redisson ops/s:" redisson_async_set_1024.log | awk '{print $5}')
268- echo "| 1024 | ${redisun_async_set_time_1024} | ${redisun_async_set_ops_1024 } | ${redisson_async_set_time_1024} | ${redisson_async_set_ops_1024} |" >> benchmark-report.md
268+ echo "| 1024 | ${redisun_async_set_time_1024}/${redisson_async_set_time_1024 } | ${redisun_async_set_ops_1024}/ ${redisson_async_set_ops_1024} |" >> benchmark-report.md
269269 else
270- echo "| 1024 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
270+ echo "| 1024 | 测试失败 | N/A |" >> benchmark-report.md
271271 fi
272272
273273 echo "" >> benchmark-report.md
274274
275275 echo "## 同步GET性能对比" >> benchmark-report.md
276- echo "| 客户端数量 | Redisun耗时 | Redisun OPS | Redisson耗时 | Redisson OPS |" >> benchmark-report.md
277- echo "|------------|-------------| ------------- |--------------| --------------|" >> benchmark-report.md
276+ echo "| 客户端数量 | 耗时( Redisun/Redisson) | OPS(Redisun/Redisson) |" >> benchmark-report.md
277+ echo "|------------|------------------------|-----------------------|" >> benchmark-report.md
278278
279279 # 1 client 同步GET
280280 if grep -q "redisun cost:" redisun_concurrent_get_1.log && grep -q "redisson cost:" redisson_concurrent_get_1.log; then
281281 redisun_concurrent_get_time_1=$(grep "redisun cost:" redisun_concurrent_get_1.log | awk '{print $5}')
282282 redisun_concurrent_get_ops_1=$(grep "redisun ops/s:" redisun_concurrent_get_1.log | awk '{print $5}')
283283 redisson_concurrent_get_time_1=$(grep "redisson cost:" redisson_concurrent_get_1.log | awk '{print $5}')
284284 redisson_concurrent_get_ops_1=$(grep "redisson ops/s:" redisson_concurrent_get_1.log | awk '{print $5}')
285- echo "| 1 | ${redisun_concurrent_get_time_1} | ${redisun_concurrent_get_ops_1 } | ${redisson_concurrent_get_time_1} | ${redisson_concurrent_get_ops_1} |" >> benchmark-report.md
285+ echo "| 1 | ${redisun_concurrent_get_time_1}/${redisson_concurrent_get_time_1 } | ${redisun_concurrent_get_ops_1}/ ${redisson_concurrent_get_ops_1} |" >> benchmark-report.md
286286 else
287- echo "| 1 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
287+ echo "| 1 | 测试失败 | N/A |" >> benchmark-report.md
288288 fi
289289
290290 # 8 clients 同步GET
@@ -293,9 +293,9 @@ jobs:
293293 redisun_concurrent_get_ops_8=$(grep "redisun ops/s:" redisun_concurrent_get_8.log | awk '{print $5}')
294294 redisson_concurrent_get_time_8=$(grep "redisson cost:" redisson_concurrent_get_8.log | awk '{print $5}')
295295 redisson_concurrent_get_ops_8=$(grep "redisson ops/s:" redisson_concurrent_get_8.log | awk '{print $5}')
296- echo "| 8 | ${redisun_concurrent_get_time_8} | ${redisun_concurrent_get_ops_8 } | ${redisson_concurrent_get_time_8} | ${redisson_concurrent_get_ops_8} |" >> benchmark-report.md
296+ echo "| 8 | ${redisun_concurrent_get_time_8}/${redisson_concurrent_get_time_8 } | ${redisun_concurrent_get_ops_8}/ ${redisson_concurrent_get_ops_8} |" >> benchmark-report.md
297297 else
298- echo "| 8 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
298+ echo "| 8 | 测试失败 | N/A |" >> benchmark-report.md
299299 fi
300300
301301 # 128 clients 同步GET
@@ -304,9 +304,9 @@ jobs:
304304 redisun_concurrent_get_ops_128=$(grep "redisun ops/s:" redisun_concurrent_get_128.log | awk '{print $5}')
305305 redisson_concurrent_get_time_128=$(grep "redisson cost:" redisson_concurrent_get_128.log | awk '{print $5}')
306306 redisson_concurrent_get_ops_128=$(grep "redisson ops/s:" redisson_concurrent_get_128.log | awk '{print $5}')
307- echo "| 128 | ${redisun_concurrent_get_time_128} | ${redisun_concurrent_get_ops_128 } | ${redisson_concurrent_get_time_128} | ${redisson_concurrent_get_ops_128} |" >> benchmark-report.md
307+ echo "| 128 | ${redisun_concurrent_get_time_128}/${redisson_concurrent_get_time_128 } | ${redisun_concurrent_get_ops_128}/ ${redisson_concurrent_get_ops_128} |" >> benchmark-report.md
308308 else
309- echo "| 128 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
309+ echo "| 128 | 测试失败 | N/A |" >> benchmark-report.md
310310 fi
311311
312312 # 1024 clients 同步GET
@@ -315,26 +315,26 @@ jobs:
315315 redisun_concurrent_get_ops_1024=$(grep "redisun ops/s:" redisun_concurrent_get_1024.log | awk '{print $5}')
316316 redisson_concurrent_get_time_1024=$(grep "redisson cost:" redisson_concurrent_get_1024.log | awk '{print $5}')
317317 redisson_concurrent_get_ops_1024=$(grep "redisson ops/s:" redisson_concurrent_get_1024.log | awk '{print $5}')
318- echo "| 1024 | ${redisun_concurrent_get_time_1024} | ${redisun_concurrent_get_ops_1024 } | ${redisson_concurrent_get_time_1024} | ${redisson_concurrent_get_ops_1024} |" >> benchmark-report.md
318+ echo "| 1024 | ${redisun_concurrent_get_time_1024}/${redisson_concurrent_get_time_1024 } | ${redisun_concurrent_get_ops_1024}/ ${redisson_concurrent_get_ops_1024} |" >> benchmark-report.md
319319 else
320- echo "| 1024 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
320+ echo "| 1024 | 测试失败 | N/A |" >> benchmark-report.md
321321 fi
322322
323323 echo "" >> benchmark-report.md
324324
325325 echo "## 异步GET性能对比" >> benchmark-report.md
326- echo "| 客户端数量 | Redisun耗时 | Redisun OPS | Redisson耗时 | Redisson OPS |" >> benchmark-report.md
327- echo "|------------|-------------| ------------- |--------------| --------------|" >> benchmark-report.md
326+ echo "| 客户端数量 | 耗时( Redisun/Redisson) | OPS(Redisun/Redisson) |" >> benchmark-report.md
327+ echo "|------------|------------------------|-----------------------|" >> benchmark-report.md
328328
329329 # 1 client 异步GET
330330 if grep -q "redisun cost:" redisun_async_get_1.log && grep -q "redisson cost:" redisson_async_get_1.log; then
331331 redisun_async_get_time_1=$(grep "redisun cost:" redisun_async_get_1.log | awk '{print $5}')
332332 redisun_async_get_ops_1=$(grep "redisun ops/s:" redisun_async_get_1.log | awk '{print $5}')
333333 redisson_async_get_time_1=$(grep "redisson cost:" redisson_async_get_1.log | awk '{print $5}')
334334 redisson_async_get_ops_1=$(grep "redisson ops/s:" redisson_async_get_1.log | awk '{print $5}')
335- echo "| 1 | ${redisun_async_get_time_1} | ${redisun_async_get_ops_1 } | ${redisson_async_get_time_1} | ${redisson_async_get_ops_1} |" >> benchmark-report.md
335+ echo "| 1 | ${redisun_async_get_time_1}/${redisson_async_get_time_1 } | ${redisun_async_get_ops_1}/ ${redisson_async_get_ops_1} |" >> benchmark-report.md
336336 else
337- echo "| 1 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
337+ echo "| 1 | 测试失败 | N/A |" >> benchmark-report.md
338338 fi
339339
340340 # 8 clients 异步GET
@@ -343,9 +343,9 @@ jobs:
343343 redisun_async_get_ops_8=$(grep "redisun ops/s:" redisun_async_get_8.log | awk '{print $5}')
344344 redisson_async_get_time_8=$(grep "redisson cost:" redisson_async_get_8.log | awk '{print $5}')
345345 redisson_async_get_ops_8=$(grep "redisson ops/s:" redisson_async_get_8.log | awk '{print $5}')
346- echo "| 8 | ${redisun_async_get_time_8} | ${redisun_async_get_ops_8 } | ${redisson_async_get_time_8} | ${redisson_async_get_ops_8} |" >> benchmark-report.md
346+ echo "| 8 | ${redisun_async_get_time_8}/${redisson_async_get_time_8 } | ${redisun_async_get_ops_8}/ ${redisson_async_get_ops_8} |" >> benchmark-report.md
347347 else
348- echo "| 8 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
348+ echo "| 8 | 测试失败 | N/A |" >> benchmark-report.md
349349 fi
350350
351351 # 128 clients 异步GET
@@ -354,9 +354,9 @@ jobs:
354354 redisun_async_get_ops_128=$(grep "redisun ops/s:" redisun_async_get_128.log | awk '{print $5}')
355355 redisson_async_get_time_128=$(grep "redisson cost:" redisson_async_get_128.log | awk '{print $5}')
356356 redisson_async_get_ops_128=$(grep "redisson ops/s:" redisson_async_get_128.log | awk '{print $5}')
357- echo "| 128 | ${redisun_async_get_time_128} | ${redisun_async_get_ops_128 } | ${redisson_async_get_time_128} | ${redisson_async_get_ops_128} |" >> benchmark-report.md
357+ echo "| 128 | ${redisun_async_get_time_128}/${redisson_async_get_time_128 } | ${redisun_async_get_ops_128}/ ${redisson_async_get_ops_128} |" >> benchmark-report.md
358358 else
359- echo "| 128 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
359+ echo "| 128 | 测试失败 | N/A |" >> benchmark-report.md
360360 fi
361361
362362 # 1024 clients 异步GET
@@ -365,9 +365,9 @@ jobs:
365365 redisun_async_get_ops_1024=$(grep "redisun ops/s:" redisun_async_get_1024.log | awk '{print $5}')
366366 redisson_async_get_time_1024=$(grep "redisson cost:" redisson_async_get_1024.log | awk '{print $5}')
367367 redisson_async_get_ops_1024=$(grep "redisson ops/s:" redisson_async_get_1024.log | awk '{print $5}')
368- echo "| 1024 | ${redisun_async_get_time_1024} | ${redisun_async_get_ops_1024 } | ${redisson_async_get_time_1024} | ${redisson_async_get_ops_1024} |" >> benchmark-report.md
368+ echo "| 1024 | ${redisun_async_get_time_1024}/${redisson_async_get_time_1024 } | ${redisun_async_get_ops_1024}/ ${redisson_async_get_ops_1024} |" >> benchmark-report.md
369369 else
370- echo "| 1024 | 测试失败 | N/A | 测试失败 | N/A | " >> benchmark-report.md
370+ echo "| 1024 | 测试失败 | N/A |" >> benchmark-report.md
371371 fi
372372
373373 echo "" >> benchmark-report.md
0 commit comments