@@ -230,62 +230,226 @@ Benchmark completed. Results saved to result/spring-rs-raw/result_t8_c500.txt
230
230
![ image] ( https://github.com/user-attachments/assets/c8df67f2-f0b3-42c5-a2ea-2ed335d4ea65 )
231
231
232
232
``` sh
233
- ➜ spring-benchmark git:(master) ✗ wrk -t8 -c300 -d30s http://localhost:88/postgres
234
- Running 30s test @ http://localhost:88/postgres
235
- 8 threads and 300 connections
233
+ >>>>> Benchmark API: http://localhost:88/postgres
234
+ >>>>> Benchmark Result Dir: result/spring-rs-pg
235
+ Benchmarking: threads=2, connections=100, duration=60s
236
+ Running 1m test @ http://localhost:88/postgres
237
+ 2 threads and 100 connections
236
238
Thread Stats Avg Stdev Max +/- Stdev
237
- Latency 36.00ms 7.40ms 137.77ms 80.52%
238
- Req/Sec 1.03k 234.94 2.38k 87.89%
239
- 247031 requests in 30.09s, 53.24MB read
240
- Requests/sec: 8208.51
241
- Transfer/sec: 1.77MB
242
- ➜ spring-benchmark git:(master) ✗ wrk -t7 -c300 -d30s http://localhost:88/postgres
243
- Running 30s test @ http://localhost:88/postgres
244
- 7 threads and 300 connections
245
- Thread Stats Avg Stdev Max +/- Stdev
246
- Latency 35.53ms 9.88ms 77.58ms 72.20%
247
- Req/Sec 1.19k 400.66 7.00k 89.31%
248
- 247734 requests in 30.10s, 53.39MB read
249
- Requests/sec: 8231.19
239
+ Latency 13.67ms 6.27ms 119.75ms 88.82%
240
+ Req/Sec 3.77k 1.14k 6.24k 65.47%
241
+ 450409 requests in 1.00m, 97.08MB read
242
+ Requests/sec: 7497.66
243
+ Transfer/sec: 1.62MB
244
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t2_c100.txt
245
+ ----------------------------------------
246
+ Benchmarking: threads=2, connections=200, duration=60s
247
+ Running 1m test @ http://localhost:88/postgres
248
+ 2 threads and 200 connections
249
+ Thread Stats Avg Stdev Max +/- Stdev
250
+ Latency 22.47ms 7.48ms 123.54ms 85.65%
251
+ Req/Sec 4.51k 1.12k 6.62k 67.00%
252
+ 539135 requests in 1.00m, 116.20MB read
253
+ Requests/sec: 8974.30
254
+ Transfer/sec: 1.93MB
255
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t2_c200.txt
256
+ ----------------------------------------
257
+ Benchmarking: threads=2, connections=300, duration=60s
258
+ Running 1m test @ http://localhost:88/postgres
259
+ 2 threads and 300 connections
260
+ Thread Stats Avg Stdev Max +/- Stdev
261
+ Latency 36.55ms 14.12ms 219.15ms 87.97%
262
+ Req/Sec 4.19k 1.23k 6.60k 63.61%
263
+ 499563 requests in 1.00m, 107.67MB read
264
+ Requests/sec: 8314.32
265
+ Transfer/sec: 1.79MB
266
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t2_c300.txt
267
+ ----------------------------------------
268
+ Benchmarking: threads=2, connections=400, duration=60s
269
+ Running 1m test @ http://localhost:88/postgres
270
+ 2 threads and 400 connections
271
+ Thread Stats Avg Stdev Max +/- Stdev
272
+ Latency 54.93ms 18.08ms 285.43ms 86.44%
273
+ Req/Sec 3.70k 0.96k 5.87k 70.37%
274
+ 441112 requests in 1.00m, 95.07MB read
275
+ Requests/sec: 7341.55
276
+ Transfer/sec: 1.58MB
277
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t2_c400.txt
278
+ ----------------------------------------
279
+ Benchmarking: threads=2, connections=500, duration=60s
280
+ Running 1m test @ http://localhost:88/postgres
281
+ 2 threads and 500 connections
282
+ Thread Stats Avg Stdev Max +/- Stdev
283
+ Latency 61.38ms 22.19ms 327.31ms 87.12%
284
+ Req/Sec 4.13k 1.18k 6.24k 62.94%
285
+ 493038 requests in 1.00m, 106.26MB read
286
+ Requests/sec: 8214.54
250
287
Transfer/sec: 1.77MB
251
- ➜ spring-benchmark git:(master) ✗ wrk -t6 -c300 -d30s http://localhost:88/postgres
252
- Running 30s test @ http://localhost:88/postgres
253
- 6 threads and 300 connections
288
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t2_c500.txt
289
+ ----------------------------------------
290
+ Benchmarking: threads=4, connections=100, duration=60s
291
+ Running 1m test @ http://localhost:88/postgres
292
+ 4 threads and 100 connections
254
293
Thread Stats Avg Stdev Max +/- Stdev
255
- Latency 40.10ms 13.68ms 134.40ms 75.21%
256
- Req/Sec 1.25k 529.68 11.19k 89.48%
257
- 223155 requests in 30.09s, 48.10MB read
258
- Socket errors: connect 2, read 0, write 0, timeout 0
259
- Requests/sec: 7415.35
260
- Transfer/sec: 1.60MB
261
- ➜ spring-benchmark git:(master) ✗ wrk -t5 -c300 -d30s http://localhost:88/postgres
262
- Running 30s test @ http://localhost:88/postgres
263
- 5 threads and 300 connections
264
- Thread Stats Avg Stdev Max +/- Stdev
265
- Latency 32.07ms 7.52ms 68.88ms 73.14%
266
- Req/Sec 1.87k 473.42 4.83k 85.64%
267
- 278112 requests in 30.06s, 59.94MB read
268
- Socket errors: connect 2, read 0, write 0, timeout 0
269
- Requests/sec: 9250.40
270
- Transfer/sec: 1.99MB
271
- ➜ spring-benchmark git:(master) ✗ wrk -t4 -c300 -d30s http://localhost:88/postgres
272
- Running 30s test @ http://localhost:88/postgres
294
+ Latency 11.85ms 4.58ms 141.50ms 89.00%
295
+ Req/Sec 2.15k 519.36 3.30k 68.20%
296
+ 514527 requests in 1.00m, 110.90MB read
297
+ Requests/sec: 8563.42
298
+ Transfer/sec: 1.85MB
299
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t4_c100.txt
300
+ ----------------------------------------
301
+ Benchmarking: threads=4, connections=200, duration=60s
302
+ Running 1m test @ http://localhost:88/postgres
303
+ 4 threads and 200 connections
304
+ Thread Stats Avg Stdev Max +/- Stdev
305
+ Latency 22.13ms 6.66ms 108.05ms 84.45%
306
+ Req/Sec 2.29k 533.36 3.38k 67.46%
307
+ 546187 requests in 1.00m, 117.72MB read
308
+ Requests/sec: 9095.72
309
+ Transfer/sec: 1.96MB
310
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t4_c200.txt
311
+ ----------------------------------------
312
+ Benchmarking: threads=4, connections=300, duration=60s
313
+ Running 1m test @ http://localhost:88/postgres
273
314
4 threads and 300 connections
274
315
Thread Stats Avg Stdev Max +/- Stdev
275
- Latency 34.52ms 7.00ms 71.11ms 80.97%
276
- Req/Sec 2.17k 520.98 6.91k 90.36%
277
- 257449 requests in 30.05s, 55.49MB read
278
- Socket errors: connect 2, read 0, write 0, timeout 0
279
- Requests/sec: 8568.04
280
- Transfer/sec: 1.85MB
281
- ➜ spring-benchmark git:(master) ✗ wrk -t2 -c300 -d30s http://localhost:88/postgres
282
- Running 30s test @ http://localhost:88/postgres
283
- 2 threads and 300 connections
316
+ Latency 35.82ms 9.82ms 127.51ms 83.86%
317
+ Req/Sec 2.11k 467.28 3.16k 68.77%
318
+ 504861 requests in 1.00m, 108.81MB read
319
+ Requests/sec: 8405.94
320
+ Transfer/sec: 1.81MB
321
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t4_c300.txt
322
+ ----------------------------------------
323
+ Benchmarking: threads=4, connections=400, duration=60s
324
+ Running 1m test @ http://localhost:88/postgres
325
+ 4 threads and 400 connections
284
326
Thread Stats Avg Stdev Max +/- Stdev
285
- Latency 35.52ms 9.54ms 88.20ms 78.88%
286
- Req/Sec 4.20k 1.18k 9.48k 83.78%
287
- 249985 requests in 30.07s, 53.88MB read
288
- Socket errors: connect 3, read 0, write 0, timeout 0
289
- Requests/sec: 8312.06
290
- Transfer/sec: 1.79MB
327
+ Latency 45.74ms 13.69ms 153.63ms 81.17%
328
+ Req/Sec 2.21k 570.89 3.45k 65.29%
329
+ 527544 requests in 1.00m, 113.70MB read
330
+ Requests/sec: 8777.81
331
+ Transfer/sec: 1.89MB
332
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t4_c400.txt
333
+ ----------------------------------------
334
+ Benchmarking: threads=4, connections=500, duration=60s
335
+ Running 1m test @ http://localhost:88/postgres
336
+ 4 threads and 500 connections
337
+ Thread Stats Avg Stdev Max +/- Stdev
338
+ Latency 62.43ms 18.22ms 239.52ms 80.05%
339
+ Req/Sec 2.02k 518.01 3.08k 62.23%
340
+ 481551 requests in 1.00m, 103.79MB read
341
+ Requests/sec: 8014.90
342
+ Transfer/sec: 1.73MB
343
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t4_c500.txt
344
+ ----------------------------------------
345
+ Benchmarking: threads=6, connections=100, duration=60s
346
+ Running 1m test @ http://localhost:88/postgres
347
+ 6 threads and 100 connections
348
+ Thread Stats Avg Stdev Max +/- Stdev
349
+ Latency 12.04ms 4.59ms 102.38ms 85.57%
350
+ Req/Sec 1.35k 351.66 2.19k 68.69%
351
+ 485618 requests in 1.00m, 104.67MB read
352
+ Requests/sec: 8082.35
353
+ Transfer/sec: 1.74MB
354
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t6_c100.txt
355
+ ----------------------------------------
356
+ Benchmarking: threads=6, connections=200, duration=60s
357
+ Running 1m test @ http://localhost:88/postgres
358
+ 6 threads and 200 connections
359
+ Thread Stats Avg Stdev Max +/- Stdev
360
+ Latency 25.23ms 7.98ms 122.57ms 85.34%
361
+ Req/Sec 1.33k 322.07 2.03k 68.22%
362
+ 475348 requests in 1.00m, 102.45MB read
363
+ Requests/sec: 7910.49
364
+ Transfer/sec: 1.70MB
365
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t6_c200.txt
366
+ ----------------------------------------
367
+ Benchmarking: threads=6, connections=300, duration=60s
368
+ Running 1m test @ http://localhost:88/postgres
369
+ 6 threads and 300 connections
370
+ Thread Stats Avg Stdev Max +/- Stdev
371
+ Latency 37.99ms 11.97ms 156.58ms 82.37%
372
+ Req/Sec 1.33k 342.42 2.09k 68.04%
373
+ 477272 requests in 1.00m, 102.87MB read
374
+ Requests/sec: 7942.47
375
+ Transfer/sec: 1.71MB
376
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t6_c300.txt
377
+ ----------------------------------------
378
+ Benchmarking: threads=6, connections=400, duration=60s
379
+ Running 1m test @ http://localhost:88/postgres
380
+ 6 threads and 400 connections
381
+ Thread Stats Avg Stdev Max +/- Stdev
382
+ Latency 48.82ms 14.25ms 156.39ms 82.25%
383
+ Req/Sec 1.37k 336.30 2.23k 66.81%
384
+ 489197 requests in 1.00m, 105.44MB read
385
+ Requests/sec: 8143.04
386
+ Transfer/sec: 1.76MB
387
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t6_c400.txt
388
+ ----------------------------------------
389
+ Benchmarking: threads=6, connections=500, duration=60s
390
+ Running 1m test @ http://localhost:88/postgres
391
+ 6 threads and 500 connections
392
+ Thread Stats Avg Stdev Max +/- Stdev
393
+ Latency 63.83ms 18.83ms 262.21ms 82.78%
394
+ Req/Sec 1.31k 333.34 2.03k 66.60%
395
+ 470387 requests in 1.00m, 101.38MB read
396
+ Requests/sec: 7828.99
397
+ Transfer/sec: 1.69MB
398
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t6_c500.txt
399
+ ----------------------------------------
400
+ Benchmarking: threads=8, connections=100, duration=60s
401
+ Running 1m test @ http://localhost:88/postgres
402
+ 8 threads and 100 connections
403
+ Thread Stats Avg Stdev Max +/- Stdev
404
+ Latency 13.15ms 5.86ms 129.83ms 88.96%
405
+ Req/Sec 0.94k 263.58 1.52k 63.96%
406
+ 447268 requests in 1.00m, 96.40MB read
407
+ Requests/sec: 7447.95
408
+ Transfer/sec: 1.61MB
409
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t8_c100.txt
410
+ ----------------------------------------
411
+ Benchmarking: threads=8, connections=200, duration=60s
412
+ Running 1m test @ http://localhost:88/postgres
413
+ 8 threads and 200 connections
414
+ Thread Stats Avg Stdev Max +/- Stdev
415
+ Latency 25.54ms 9.73ms 120.13ms 82.54%
416
+ Req/Sec 0.99k 312.31 2.38k 61.03%
417
+ 475266 requests in 1.00m, 102.43MB read
418
+ Requests/sec: 7908.74
419
+ Transfer/sec: 1.70MB
420
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t8_c200.txt
421
+ ----------------------------------------
422
+ Benchmarking: threads=8, connections=300, duration=60s
423
+ Running 1m test @ http://localhost:88/postgres
424
+ 8 threads and 300 connections
425
+ Thread Stats Avg Stdev Max +/- Stdev
426
+ Latency 43.76ms 15.01ms 187.88ms 80.81%
427
+ Req/Sec 0.86k 246.69 1.46k 66.28%
428
+ 409222 requests in 1.00m, 88.20MB read
429
+ Requests/sec: 6810.64
430
+ Transfer/sec: 1.47MB
431
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t8_c300.txt
432
+ ----------------------------------------
433
+ Benchmarking: threads=8, connections=400, duration=60s
434
+ Running 1m test @ http://localhost:88/postgres
435
+ 8 threads and 400 connections
436
+ Thread Stats Avg Stdev Max +/- Stdev
437
+ Latency 51.97ms 16.99ms 211.63ms 81.41%
438
+ Req/Sec 0.97k 270.82 2.43k 67.09%
439
+ 465647 requests in 1.00m, 100.36MB read
440
+ Requests/sec: 7749.89
441
+ Transfer/sec: 1.67MB
442
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t8_c400.txt
443
+ ----------------------------------------
444
+ Benchmarking: threads=8, connections=500, duration=60s
445
+ Running 1m test @ http://localhost:88/postgres
446
+ 8 threads and 500 connections
447
+ Thread Stats Avg Stdev Max +/- Stdev
448
+ Latency 56.00ms 13.58ms 181.54ms 84.08%
449
+ Req/Sec 1.11k 232.57 1.67k 70.21%
450
+ 532947 requests in 1.00m, 114.87MB read
451
+ Requests/sec: 8872.62
452
+ Transfer/sec: 1.91MB
453
+ Benchmark completed. Results saved to result/spring-rs-pg/result_t8_c500.txt
454
+ ----------------------------------------
291
455
```
0 commit comments