# benchmarksql_log_analyze **Repository Path**: taojintianxia/benchmarksql_log_analyze ## Basic Information - **Project Name**: benchmarksql_log_analyze - **Description**: 本仓库用于分析benchmarksql测试产生的benchmarksql-trace.log文件。它可以解析其中的各个业务的初始耗时、最大耗时、最小耗时和平均耗时等。 - **Primary Language**: Python - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2021-07-30 - **Last Updated**: 2021-07-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # benchmarksql_log_analyze #### 介绍 本仓库用于分析benchmarksql测试产生的benchmarksql-trace.log文件。它可以解析其中的各个业务的初始耗时、最大耗时、最小耗时和平均耗时等。 #### 软件架构 不涉及 #### 安装教程 1. git pull #### 使用说明 将日志放到com/bin/ 或com/bin/proxy_trace或com/bin/proxy_trace_portal,名称为benchmarksql-trace.log `python main.py` 得到性能数据: C:\Users\Administrator\AppData\Local\Programs\Python\Python37\python.exe D:/zhoubin/code/github/benchmarkTraceAnalyse/com/bin/main.py ----------------- D:\zhoubin\code\github\benchmarkTraceAnalyse\com\bin\benchmarksql-trace.log name first last avg max min count DELIVERY 3.0 1.0 0.659468 3.0 0.0 602 DELIVERY_BG 18.0 7.0 9.174419 27.0 6.0 602 NEW_ORDER 21.0 5.0 3.946153 44.0 2.0 6537 ORDER_STATUS 7.0 2.0 2.446552 7.0 1.0 580 PAYMENT 11.0 3.0 1.780904 30.0 1.0 6504 STOCK_LEVEL 9.0 2.0 4.406452 9.0 2.0 620 ----------------- D:\zhoubin\code\github\benchmarkTraceAnalyse\com\bin\proxy_trace\benchmarksql-trace.log name first last avg max min count DELIVERY 2.0 1.0 0.625000 2.0 0.0 168 DELIVERY_BG 128.0 35.0 38.107143 128.0 19.0 168 NEW_ORDER 174.0 13.0 20.708041 174.0 9.0 1853 ORDER_STATUS 61.0 6.0 6.421053 61.0 4.0 171 PAYMENT 283.0 5.0 4.715665 283.0 2.0 1864 STOCK_LEVEL 117.0 3.0 10.430108 117.0 2.0 186 ----------------- D:\zhoubin\code\github\benchmarkTraceAnalyse\com\bin\proxy_trace_portal\benchmarksql-trace.log name first last avg max min count DELIVERY 1.0 1.0 0.585635 1.0 0.0 181 DELIVERY_BG 117.0 31.0 33.232044 117.0 19.0 181 NEW_ORDER 398.0 21.0 18.443870 398.0 9.0 2129 ORDER_STATUS 43.0 4.0 5.712042 43.0 3.0 191 PAYMENT 90.0 5.0 4.265633 90.0 2.0 1999 STOCK_LEVEL 124.0 2.0 8.000000 124.0 2.0 163 #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, Readme\_zh.md 2. Gitee 官方博客 [blog.gitee.com](https://blog.gitee.com) 3. 你可以 [https://gitee.com/explore](https://gitee.com/explore) 这个地址来了解 Gitee 上的优秀开源项目 4. [GVP](https://gitee.com/gvp) 全称是 Gitee 最有价值开源项目,是综合评定出的优秀开源项目 5. Gitee 官方提供的使用手册 [https://gitee.com/help](https://gitee.com/help) 6. Gitee 封面人物是一档用来展示 Gitee 会员风采的栏目 [https://gitee.com/gitee-stars/](https://gitee.com/gitee-stars/)