当前位置:网站首页>性能测试如何准备测试数据
性能测试如何准备测试数据
2022-08-04 23:50:00 【程序员阿常】
读者提问:
『性能测试准备测试数据,我是从数据库中把数据提取出来,放在 TXT 中,是否需要直接从数据库中访问数据,这两者得到的性能测试结果差异大吗,应该以哪个为准呢 ?』
阿常回答:
数据量较小的情况,数据放在 TXT 中或是从数据库中读取,区别不大。
数据量较大的情况,从 TXT 读取内存消耗会很大,会影响性能,从而影响我们最终对服务器性能的判断了。
另外,数据放在 TXT 中可能会存在数据格式转换的问题,直接读取数据库反而方便一点。
阿常碎碎念:
总结以上,数据量小两种方式皆可,数据量大建议读取数据库。
看完今天的分享对你是不是有所启发呢,有任何想法都欢迎大家后台私信阿常,一起探讨交流

。
边栏推荐
- Statistical words (DAY 101) Huazhong University of Science and Technology postgraduate examination questions
- 仿网易云音乐小程序-uniapp
- Mysql based
- Basic web in PLSQL
- ~ hand AHB - APB Bridge 】 【 AMBA AHB bus
- 【手撕AHB-APB Bridge】~ AMBA总线 之 AHB
- 建模师经验分享:模型学习方法
- 3. Actual combat---crawl the result page corresponding to Baidu's specified entry (a simple page collector)
- LeetCode Hot 100
- [LeetCode] Summary of Matrix Simulation Related Topics
猜你喜欢

KT148A voice chip ic working principle and internal architecture description of the chip

【云原生--Kubernetes】调度约束

How to automatically push my new articles to my fans (very simple, can't learn to hit me)

线程三连鞭之“线程的状态”
![[Happy Qixi Festival] How does Nacos realize the service registration function?](/img/df/5793145da45bc80d227b0babfac914.png)
[Happy Qixi Festival] How does Nacos realize the service registration function?

Xiaohei's leetcode journey: 95. Longest substring with at least K repeating characters

MySQL增删改查基础

看图识字,DELL SC4020 / SCv2000 控制器更换过程

基于Appian低代码平台开发一个SpaceX网站

【云原生--Kubernetes】Pod控制器
随机推荐
The master teaches you the 3D real-time character production process, the game modeling process sharing
上课笔记(6)(2)——#742. 周末舞会
3. Actual combat---crawl the result page corresponding to Baidu's specified entry (a simple page collector)
什么是次世代建模(附学习资料)
SQL关联表更新
Day118.尚医通:订单列表、详情、支付
Three tips for you to successfully get started with 3D modeling
基于Appian低代码平台开发一个SpaceX网站
4 - "PyTorch Deep Learning Practice" - Backpropagation
The role of @ Import annotations as well as how to use
从单体架构迁移到 CQRS 后,我觉得 DDD 并不可怕
jenkins send mail system configuration
【LeetCode】双指针题解汇总
MySQL基础篇【子查询】
【SSR服务端渲染+CSR客户端渲染+post请求+get请求+总结】
没有这些「伪需求」,产品经理的 KPI 怎么完成?
看图识字,DELL SC4020 / SCv2000 控制器更换过程
吐槽 | 参加IT培训的正确姿势
The role of @Async annotation and how to implement asynchronous listening mechanism
uniapp sharing function - share to friends group chat circle of friends effect (sorting)