Risks of Testing Performance in Scaled down environments

使用libjpeg-turbo库中的TurboJPEG API实现图片解压,缩放及压缩功能 概述:前一篇博客中说到libjpeg-turbo的使用,有一些错误也在前篇博客中纠正了,现在呢,就用TurboJPEG API实现图片的解压,缩放,压缩。1,直接上代码(简单粗暴,重要代码都加了注释,我就不多费口舌了)#include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <unistd.h> #include <s 阅读详情

Risks of Testing Performance in Scaled down environments

by Swaraj Gupta

Performance Testing, planned considering the capacity of the production environment, ideally should be performed well before the Go-Live date. It needs to be carried out in production like environment to identify maximum performance issues in testing phase. But maintaining a production environment replica is expensive and most companies try avoiding these expenses by switching to a low capacity environment. The end result is scaled down Performance Test environment. This leads to gaping holes in the system –

2 + 2 = 5

Yes that’s exactly how things are in performance testing. Every test (and thus the factors associated with it) is governed by a number of parameters and one can’t just half (or another percentage) the CPU and memory requirements of the environment and test it with half (or another percentage) the number of users. One needs to be overly cautious about this approach that most app development teams tend to take this approach and make mistake in it. The performance of a business transaction, as I said, depends on many factors like – CPU, Memory, type of load balancing, geographical latency, etc. By reducing the number of users in the test, we tend to make mistakes like –

  • Every user logged into an application from a client consumes resources on the app, db and web servers. Session-state which is associated with the user’s login is the best example. The session state information gets stored on the server in its memory and remains there till the user is logged in to the system. Only when he logs out, his session expires and his details clear out. In many apps, this accounts for significant memory consumption on the servers. If less number of users is used in PT, less session / memory issues are identified. There is a possibility that the development team would not come to know about these memory issues in the tests and may lead to customers facing it.
  • In addition, by under representing the number of users, a compromise is made on the number of simultaneous connections made by the clients to the servers. App / web server settings may have connection limits and the issues arising due to crossing these limits not get exposed during the tests. Further-more, each simultaneous request may require a Db connection and the Db server may have a limit on simultaneous connections made. Ideally, a Db should be able to process the amount of concurrent reads and writes during execution and this concurrency is primary cause of many load associated failures.

Thus when the environment is halved, its capacity is not halved and thus you can’t test the environment with the halved capacity since the response time results won’t be reliable.

Deadlocks and Livelocks

Database deadlocks happen in a system when multiple processes wait for the other(s) to release a lock(s) and neither could process its request unless the other releases the lock.

Eg – In the below example, both Process1 and Process 2 wait for each other to complete the other for it to proceed with its request and a deadlock is created.

A LiveLock is similar to a DeadLock, except for the processes that are not blocked forever and are being processed constantly by the CPU. Primary difference between Deadlock and Livelock is the fact that Livelock responds after long time and a Deadlock never does.

In case of scaled down environments since less number of transaction load is created on the system, the process entanglement and locks are sometimes not observed in the tests leading to its occurrence in the production.

What’s my total Capacity?

total_capacity

With scaled down environments you would never be able to estimate the true capacity of your environment. You can’t just extrapolate the numbers. Thus in scenarios where your business would be expecting real time production capacity from you (the capacity engineers), you probably would not be able to give them the numbers or may end up giving numbers which may not be close to the environment’s capacity.

Many such situations made me lead to the conclusion that performance testing in scaled down environment is not worth it and hence whenever I don’t have sufficient capacity environment, I use cloud to test my systems. With cloud, I am able to identify deadlocks and session related issues. I also make sure that the business and other stake holders are made aware of the risks of testing on virtual environment (if the production is on physical infrastructure).

I would thus like to end with a note that Capacity Planning tools give you numbers that fail in production. On the other hand, these tools are way too expensive. If you are a performance test analyst (or have an expert performance tester in your team) with concepts well understood and ingrained, you should study the system, its architecture, its business users and understand their requirements. Based on this you should plan the test (and thus the environment based) in such a way that you will replicate most performance issues right in test environment and may not allow any of them to move in production EVER. In my next article, I will talk about how to plan a test so that it mimics production like scenario and helps us identify maximum number of performance issues.

This post is also available in: French


About Swaraj Gupta

Swaraj is a performance, automation and functional test expert who has worked on variety of desktop and mobile applications. The major areas that he focuses on are - functionality, usability, performance and consistency of application behavior. He manages the entire performance testing cycle of the projects that he is responsible for and works on multiple such engagements simultaneously. He has worked in variety of different business domains that include - Hi tech consulting, Financial services, management consulting, auditing services, e commerce, e learning, etcT

libjpeg-turbo测试解压缩性能 许久以前的代码,随便记录一下 #include <stdio.h> #include <stdlib.h> #include <sys/time.h> #include <unistd.h> #include <sys/stat.h> #include <turbojpeg.h> typedef unsigned char uchar; typedef struct tjp_info { int outwidth; in. 阅读详情

相关推荐

AI教育技术架构解析:从个性化学习到工程实践

人工智能教育(AI教育)是通过机器学习、自然语言处理等技术实现个性化学习的创新模式。其核心原理是基于学生行为数据分析构建自适应学习路径,利用知识图谱和推荐算法动态调整教学内容。这种技术方案能够显著提升教学效率,实现24/7智能辅导和精准学习效果预测。在实际应用中,AI教育系统面临数据隐私、算法偏见等工程挑战,需要建立严格的质量保障体系。本文以AI私校为例,深入分析了个性化学习引擎和智能辅导系统的技术实现,探讨如何通过渐进式采纳策略平衡技术创新与教育实效,为开发者提供可靠的技术实践指南。

weixin_30319153的博客 408

jbpm使用tomcat时的jar冲突问题

说明:原因是Jbpm的juel.jar, juel-engine.jar, juel-impl.jar包和Tomcat6.0中的el-api.jar包冲突了。  有三个解决办法:  1,方法一:换成tomcat5.5,就没有问题了。  2,方法二:在MyEclipse的Preferences -> MyEclipse -> Application Servers -> Tomca

u010081193的专栏 944

Python多因子机器学习量化选股:基于VeighNa的完整实战指南

多因子选股模型是量化投资中的核心方法论,其基本原理是通过构建多个影响股票收益的因子(如估值、动量、质量等)来预测未来股价走势。传统线性模型如Fama-French三因子已逐步被机器学习技术替代,后者能有效捕捉因子间的非线性关系和复杂市场模式。在工程实践层面,机器学习量化选股的价值在于自动化处理高维特征、动态适应市场风格切换,并实现从数据获取到实盘交易的全流程标准化。应用场景涵盖A股市场的智能投顾、对冲基金策略开发等方向。本文以VeighNa开源框架和LightGBM算法为例,详细演示如何构建完整的AI选股流

weixin_33946605的博客 414

Fable平台与奥德赛模拟:管理咨询数字化转型实战指南

基于代理的建模(Agent-Based Modeling)是一种模拟复杂系统中个体决策者互动行为的技术方法,其核心原理是通过定义自主代理的行为规则,观察其在环境交互中产生的涌现现象。在数字化转型背景下,这种技术能够有效解决传统管理咨询面临的VUCA(易变性、不确定性、复杂性、模糊性)挑战,通过多变量模拟和实时数据集成,为战略决策提供科学依据。Fable平台结合奥德赛模拟引擎,将基于代理的建模应用于商业场景,支持咨询顾问构建动态的市场竞争模型和客户行为模拟,实现从概念验证到实战应用的全流程覆盖,显著提升咨询方

weixin_30650039的博客 297

VLA-2025-03:GR00T N1【骨架:Eagle-2;端到端双系统VLA:S2 VLM+S1 DiT+FM;数据:单/双臂+人形,机器人+人类+仿真+神经共592.9M帧/8375.7小时】

通用机器人需要多功能的躯体和智能的头脑。近年来,人形机器人的发展在构建人类世界中通用自主性的硬件平台方面展现出巨大潜力。一个基于海量多样化数据源训练的机器人基础模型,对于使机器人能够推理新情况、稳健应对现实世界的多变性以及快速学习新任务至关重要。为此,我们推出了GR00T N1,一个面向人形机器人的开放基础模型。GR00T N1是一个具有双系统架构的视觉‑语言‑动作(VLA)模型。视觉语言模块(系统2)通过视觉和语言指令来解读环境。随后的扩散Transformer模块(系统1)实时生成流畅的电机动作。

u013250861的博客 327

libjpeg-turbo实现jpeg的解码

jpeg解码

weixin_44696997的博客 776

地方科技局搭建区域性科技成果转化公共服务平台,哪家机构提供的数智化方案更成熟?.docx

科易网基于行业知识库+行业大数据+科技资源要素+AI模型,以AI,赋能技术转移、成果转化、技术经理人培训、知识产权管理、区域产业分析与布局、地方科技招商、创新创业大赛等场景,推出科技创新领域的AI工具、场景化服务和数智化解决方案,推动科技创新与产业创新智能化发展。

Touch Camera PRO 2024 - Easy Mobile Desktop Camera Controller 3.1.5

Touch Camera PRO 2024 - Easy Mobile Desktop Camera Controller 3.1.5

汉语言文学22班 马旭 1243022203 现当代文学读书笔记.pdf

img_to_pdf_1796121273101.pdf

战国BC472年世界历史地图矢量文件SHP格式.zip

本资源为《战国BC472年世界历史地图矢量文件SHP格式》压缩包,文件大小约 2.26 MB,便于集中下载、整理和使用。具体内容请结合压缩包内的实际文件与说明查看。 在当前可读取的目录中,可见属性表(.dbf)、投影说明文件(.prj)、Shapefile 主文件(.shp)、Shapefile 索引(.shx)。建议解压后保持原有目录结构,先浏览文件清单与说明,再选择需要的资料进行加载或整理。 应用方面,可根据实际资料用于学习练习、资料检索、研究整理或项目参考。使用时可先确定所需内容,建立清晰的文件分类,再按项目要求进行筛选、转换与汇总。 使用 Shapefile 数据时,请把实际配套的 .shp、.shx、.dbf 等文件保存在同一目录,并保持同名关联;加载后再检查坐标系与中文字段显示。如需叠加其它数据,请先统一坐标与字段口径。 数据来源、时间范围、坐标系、字段定义、精度和使用条件,请以实际文件及原始说明为准。本介绍不对文件名之外尚未核实的信息作额外承诺。

西汉BC106年世界历史地图矢量文件SHP格式.zip

本资源为《西汉BC106年世界历史地图矢量文件SHP格式》压缩包,文件大小约 2.32 MB,便于集中下载、整理和使用。具体内容请结合压缩包内的实际文件与说明查看。 在当前可读取的目录中,可见属性表(.dbf)、投影说明文件(.prj)、Shapefile 主文件(.shp)、Shapefile 索引(.shx)。建议解压后保持原有目录结构,先浏览文件清单与说明,再选择需要的资料进行加载或整理。 应用方面,可根据实际资料用于学习练习、资料检索、研究整理或项目参考。使用时可先确定所需内容,建立清晰的文件分类,再按项目要求进行筛选、转换与汇总。 使用 Shapefile 数据时,请把实际配套的 .shp、.shx、.dbf 等文件保存在同一目录,并保持同名关联;加载后再检查坐标系与中文字段显示。如需叠加其它数据,请先统一坐标与字段口径。 数据来源、时间范围、坐标系、字段定义、精度和使用条件,请以实际文件及原始说明为准。本介绍不对文件名之外尚未核实的信息作额外承诺。

重磅粉丝福利专栏1.2微电网智能电网系列

内容概要:该资源系列聚焦于微电网与智能电网领域的关键技术研究与仿真实现,涵盖分布式能源、储能优化配置、需求响应、虚拟电厂、综合能源系统及鲁棒优化等核心主题。通过Matlab/Simulink平台提供了大量可复现的算法模型与仿真代码,涉及永磁同步电机控制、无功补偿、电力系统优化调度、状态估计、故障诊断等多个方向,系统性地展示了现代电力系统中先进控制策略与智能优化算法的集成应用。; 适合人群:具备一定电力系统、自动化或相关工程背景,从事新能源、智能电网、微电网等领域研究的研发人员及高校研究生。; 使用场景及目标:①掌握微电网中储能容量优化、多能协同调度、需求响应建模等关键技术;②学习并复现已发表高水平论文中的算法与仿真模型,提升科研实践能力;③应用于实际工程项目或学术课题中的系统建模与优化设计。; 阅读建议:建议结合提供的Matlab代码与参考文献进行对照学习,重点理解算法设计原理与仿真实现细节,并鼓励在现有模型基础上进行改进与拓展,以深化对微电网与智能电网系统运行机制的理解。

Redis-Insight-3.10.2

Redis-Insight-3.10.2: Redis-Insight-win-installer.exe Redis-Insight-mac-x64.dmg Redis-Insight-mac-arm64.dmg Redis-Insight-linux-amd64.deb Redis-Insight-linux-x86_64.AppImage

GEO优化系统关键词推荐

GEO优化系统关键词推荐 源码部署 贴牌 开户

基于MATLAB弧齿锥齿轮接触分析.pdf

内容概要:本文利用局部综合法,结合Matlab编程实现对一对弧齿锥齿轮的齿面接触分析(TCA),重点研究轮齿中点、大端和小端的接触迹线形状与传动误差曲线。通过建立几何模型与符号运算,优化了传统TCA方法编程复杂、耗时长的问题,提升了计算效率与精度,并为弧齿锥齿轮切削参数的合理设计提供了理论依据和技术支持。分析结果表明,该方法能有效预测接触区分布,评估传动平稳性与噪声水平,避免接触缺陷。; 适合人群:具备机械设计、齿轮传动基础知识及一定Matlab编程能力的工程技术人员和高校研究生。; 使用场景及目标:①用于弧齿锥齿轮副的设计验证与优化;②分析齿轮啮合过程中的接触特性与传动误差;③指导实际加工中切削参数的调整,提升齿轮传动性能。; 阅读建议:建议结合文中几何参数表与流程图,复现Matlab程序,深入理解局部综合法的实现逻辑,并对照接触迹线与传动误差曲线进行结果分析,以掌握其工程应用价值。

F500A 立式机触摸屏程序

F500A 立式机触摸屏程序

跟网型逆变器小干扰稳定性分析与控制策略优化研究(Simulink仿真实现)

内容概要:本文系统研究了跟网型逆变器在电力系统中的小干扰稳定性问题,聚焦其动态响应特性与控制策略优化。通过建立精确的数学模型,并基于Simulink平台开展系统级仿真,深入分析逆变器在不同工况特别是弱电网条件下的稳定性表现。针对可能出现的振荡与失稳现象,研究提出了包括改进锁相环(PLL)动态特性、优化电流环控制器参数、引入附加阻尼或相位补偿环节等在内的多种先进控制策略,以增强系统的鲁棒性与稳定性裕度。研究综合运用状态空间建模、特征值分析与时域仿真等方法,全面评估控制策略的有效性,为新能源大规模并网背景下的电能质量保障与系统安全稳定运行提供了坚实的理论支撑和技术解决方案。; 适合人群:具备电力电子、自动控制理论及电力系统分析等相关专业知识背景,从事新能源并网技术、逆变器控制算法、电力系统稳定性研究的硕士/博士研究生、高校科研人员以及电力能源领域的工程技术人员。; 使用场景及目标:① 深入分析跟网型逆变器接入弱电网时引发的小干扰稳定性机理;② 掌握基于状态空间模型的系统建模方法与特征值分析等稳定性判据的工程应用;③ 学习并复现先进的稳定性增强控制策略(如阻尼补偿、虚拟阻抗、相位校正等)的设计思路与仿真验证全过程;④ 为撰写高质量学术论文(如EI/SCI期刊)提供具有高复现价值的技术路线、仿真模型与数据分析范例。; 阅读建议:建议读者在扎实掌握电力系统小干扰稳定性基本理论的基础上,精读文档中的建模与控制设计章节,务必动手复现完整的Simulink仿真模型,重点关注特征值分析结果与非线性时域仿真结果之间的相互印证,从而深刻理解各控制参数对系统动态性能与稳定边界的影响机制,实现从理论到实践的融会贯通。

Vivado2022.2下载安装

链接:https://pan.baidu.com/s/1lyfE2d-VmaWC-_aR8ratCQ提取码:mt09。

weixin_61081689的博客 2万+
上一篇: 国家一级期刊名录
下一篇: Demystifying Performance Assessments In Scaled Down Environments
tjdlut
博客等级 码龄23年 1粉丝 9原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值