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

。
边栏推荐
- SQL association table update
- ~ hand AHB - APB Bridge 】 【 AMBA AHB bus
- 对“为什么一些程序员很傲慢”的解读
- 测试技术:关于上下文驱动测试的总结
- Day118. Shangyitong: order list, details, payment
- node中package解析、npm 命令行npm详解,node中的common模块化,npm、nrm两种方式查看源和切换镜像
- 如何写好测试用例
- Day118.尚医通:订单列表、详情、支付
- Bidding Announcement | Operation and Maintenance Project of Haina Baichuang Official Account
- Couple Holding Hands [Greedy & Abstract]
猜你喜欢

Modelers experience sharing: model study method

【LeetCode】滑动窗口题解汇总

【LeetCode】图解 904. 水果成篮

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

Vscode连接远程服务器(一套配置成功)

3. Actual combat---crawl the result page corresponding to Baidu's specified entry (a simple page collector)

基于深度学习的路面坑洞检测(详细教程)
手写分布式配置中心(1)

Xiaohei leetcode surfing: 94. Inorder traversal of binary tree

jenkins发送邮件系统配置
随机推荐
Cloud native - Kubernetes 】 【 scheduling constraints
Brainstorm: Complete Backpack
小黑leetcode之旅:95. 至少有 K 个重复字符的最长子串
uniapp动态实现滑动导航效果demo(整理)
三、实战---爬取百度指定词条所对应的结果页面(一个简单的页面采集器)
MySQL基础篇【聚合函数】
C5750X7R2E105K230KA(电容器)MSP430F5249IRGCR微控制器资料
uniapp横向选项卡(水平滚动导航栏)效果demo(整理)
情侣牵手[贪心 & 抽象]
Statistical words (DAY 101) Huazhong University of Science and Technology postgraduate examination questions
The market value of 360 has evaporated by 390 billion in four years. Can government and enterprise security save lives?
Senior game modelers tell newbies, what are the necessary software for game scene modelers?
How to automatically push my new articles to my fans (very simple, can't learn to hit me)
How to burn the KT148A voice chip into the chip through the serial port and the tools on the computer
Xiaohei leetcode surfing: 94. Inorder traversal of binary tree
线程三连鞭之“线程的状态”
3年,从3K涨薪到20k?真是麻雀啄了牛屁股 — 雀食牛逼呀
资深游戏建模师告知新手,游戏场景建模师必备软件有哪些?
956. 最高的广告牌
安全软件 Avast 与赛门铁克诺顿 NortonLifeLock 合并案获英国批准,市值暴涨 43%