GreatSQL社区

搜索

[讨论中] GreatSQL和 GreatDB 压测

419 11 2025-2-11 15:28
全部回复(11)
earl86 2025-2-14 10:14:21

  1. python3:
  2. import matplotlib.pyplot as plt

  3. # 示例 sysbench 结果数据
  4. threads = [1, 2, 4, 8, 16]
  5. transactions_per_sec_run1 = [100, 180, 320, 450, 500]
  6. transactions_per_sec_run2 = [90, 170, 310, 440, 490]
  7. transactions_per_sec_run3 = [110, 190, 330, 460, 510]

  8. # 创建图表
  9. plt.figure(figsize=(10, 6))

  10. # 绘制第一条曲线
  11. plt.plot(threads, transactions_per_sec_run1, label='Run 1', marker='o', linestyle='-')
  12. # 绘制第二条曲线
  13. plt.plot(threads, transactions_per_sec_run2, label='Run 2', marker='s', linestyle='--')
  14. # 绘制第三条曲线
  15. plt.plot(threads, transactions_per_sec_run3, label='Run 3', marker='d', linestyle='-.')

  16. # 添加标题和标签
  17. plt.title('Sysbench Results')
  18. plt.xlabel('Threads')
  19. plt.ylabel('Transactions per Second')

  20. # 显示图例
  21. plt.legend()

  22. # 显示网格
  23. plt.grid(True)

  24. # 显示图表
  25. plt.show()
复制代码


斌斌有你 2025-2-14 16:28:16
earl86 发表于 2025-2-13 17:36
机器配置 限制了 软件性能的正常发挥

压测阶段监控了服务器性能,未发现明显硬件瓶颈
12

合作电话:010-64087828

社区邮箱:greatsql@greatdb.com

社区公众号
社区小助手
QQ群
GMT+8, 2025-3-15 04:24 , Processed in 0.014444 second(s), 8 queries , Redis On.
快速回复 返回顶部 返回列表