What Is Performance Testing?
A shop can work perfectly for one user and still fail when a thousand users arrive at the same time. Performance testing finds out how the system behaves when many people use it together.
4 min read4 মিনিটে পড়া যায় · 4 sections4টি সেকশন · 4 sources4টি সোর্স · updated Oct 2026আপডেট: Oct 2026
Works for one, fails for a thousandএকজনের জন্য চলে, হাজারজনের জন্য ভাঙে
Add users to a shop and watch response time, errors and throughput change at the bottleneck.একটা শপে ব্যবহারকারী বাড়ান আর দেখুন bottleneck-এ রেসপন্স টাইম, এরর ও থ্রুপুট কীভাবে বদলায়।
You’ll learnআপনি শিখবেন
- What a functional test missesfunctional test কী ধরতে পারে না✓
- The three metrics k6 reportsk6 কোন তিনটা মেট্রিক দেখায়
- What a bottleneck isbottleneck কী
- Why throughput stays flat past the limitসীমার পরে থ্রুপুট কেন সমান থাকে
- Why test before users arriveব্যবহারকারী আসার আগে কেন test
What performance testing is
The ISTQB glossary defines performance testing as a test type that determines the performance efficiency of a component or system Source 1সোর্স 1. A functional test asks "does it work?". A performance test asks "how well does it work, and how many users can it serve?".
The tutorial's own view: the main questions are about efficiency, stability, and scalability. Does the system answer fast enough? Does it stay up? Does it keep working when more users come? A test usually puts many users on the system at the same time, then watches how it behaves and how much load it can carry.
Different traffic patterns create different risks, so teams use more than one test type Source 2সোর্স 2. The k6 documentation names six: smoke, average-load, stress, soak, spike, and breakpoint tests Source 2সোর্স 2. The next page explains each one.
সহজ English
The ISTQB glossary says performance testing checks the performance efficiency of a component or system Source 1সোর্স 1. A functional test asks, "does it work?". A performance test asks, "how well does it work, and how many users can it serve?".
This tutorial's view: you check three things. Is the system fast enough? Does it stay up? Does it still work when more users come? A test puts many users on the system at the same time. Then you watch what happens.
Different traffic creates different risks. So teams run more than one kind of test Source 2সোর্স 2. The k6 documentation names six kinds: smoke, average-load, stress, soak, spike, and breakpoint Source 2সোর্স 2. The next page explains each one.
বাংলা ব্যাখ্যা
ISTQB glossary অনুযায়ী performance testing হলো এমন একটা test type, যা একটা component বা system-এর performance efficiency যাচাই করে Source 1সোর্স 1। Functional test জিজ্ঞেস করে, "এটা কি কাজ করছে?"। Performance test জিজ্ঞেস করে, "এটা কতটা ভালো কাজ করছে, আর কতজন user-কে সার্ভিস দিতে পারে?"।
এই টিউটোরিয়ালের নিজস্ব দৃষ্টিভঙ্গি: আপনি তিনটা জিনিস দেখেন। সিস্টেম কি যথেষ্ট দ্রুত? সিস্টেম কি চালু থাকে? বেশি user এলেও কি সিস্টেম কাজ করে? একটা test একই সময়ে অনেক user সিস্টেমে ঢোকায়। তারপর আপনি দেখেন কী হয়।
আলাদা ধরনের traffic আলাদা ঝুঁকি তৈরি করে। তাই টিম একের বেশি test type ব্যবহার করে Source 2সোর্স 2। k6 documentation ছয়টা type-এর নাম দেয়: smoke, average-load, stress, soak, spike এবং breakpoint test Source 2সোর্স 2। পরের পেজে প্রতিটা ব্যাখ্যা করা হয়েছে।
Why it matters
Many people use public web apps at the same time. Examples are shops, banking apps, school sites, news sites, and government services. All these users put pressure on the servers. If the servers cannot serve them well, people suffer.
Two examples, with made-up names:
- A slow shop search. You visit
shop.example.comand search for a product. The result takes a very long time, and sometimes the page says the server is down. Will you visit that shop again? Most people will not. - A bank statement that never comes. You ask
bank.example.comfor your statement. The page loads for a long time. Then it shows an error before it shows your data. You will probably think about using another bank.
The tutorial's own view: functional testing alone is not enough. A feature can pass every functional test and still fail in production, because customers leave when the system is slow or broken.
The k6 documentation names two common goals for a load test: to confirm reliability under the expected traffic, and to find problems and limits under unusual traffic Source 4সোর্স 4. A component that does not meet its performance requirements is a bottleneck Source 4সোর্স 4. Finding the bottleneck before the users do is the point of the test.
সহজ English
Many people use public web apps at the same time. Examples are shops, banks, school sites, news sites, and government services. All these users put pressure on the servers. If the servers fail, people suffer.
Two examples, with made-up names:
- A slow shop search. You visit
shop.example.comand search for a product. The result takes a very long time. Sometimes the page says the server is down. Most people will not come back. - A bank statement that never comes. You ask
bank.example.comfor your statement. The page loads for a long time. Then it shows an error before your data. You will probably think about another bank.
This tutorial's view: functional testing alone is not enough. A feature can pass every functional test and still fail in production. Customers leave when the system is slow or broken.
The k6 documentation names two common goals for a load test. The first goal is to confirm reliability under the expected traffic. The second goal is to find problems and limits under unusual traffic Source 4সোর্স 4. A component that misses its performance requirements is a bottleneck Source 4সোর্স 4. You want to find it before the users do.
বাংলা ব্যাখ্যা
অনেক মানুষ একই সময়ে public web app ব্যবহার করে। যেমন shop, bank, school site, news site এবং government service। এই সব user সার্ভারের ওপর চাপ দেয়। সার্ভার ঠিকমতো সার্ভিস দিতে না পারলে মানুষ কষ্ট পায়।
দুটো উদাহরণ, বানানো নামে:
- ধীর shop search। আপনি
shop.example.com-এ গিয়ে একটা product খুঁজলেন। রেজাল্ট আসতে অনেক সময় লাগছে। কখনো পেজ বলছে server down। বেশিরভাগ মানুষ সেই shop-এ আর ফিরবে না। - যে bank statement আসে না। আপনি
bank.example.com-এ statement চাইলেন। পেজ অনেকক্ষণ লোড হলো। তারপর data দেখানোর আগেই error এলো। আপনি হয়তো অন্য bank-এর কথা ভাববেন।
এই টিউটোরিয়ালের নিজস্ব দৃষ্টিভঙ্গি: শুধু functional testing যথেষ্ট নয়। একটা feature সব functional test পাস করেও production-এ ব্যর্থ হতে পারে। সিস্টেম ধীর বা ভাঙা হলে customer চলে যায়।
k6 documentation load test-এর দুটো সাধারণ লক্ষ্যের কথা বলে। প্রথমটা হলো expected traffic-এ reliability নিশ্চিত করা। দ্বিতীয়টা হলো অস্বাভাবিক traffic-এ সমস্যা ও সীমা খুঁজে বের করা Source 4সোর্স 4। যে component তার performance requirement পূরণ করে না, সেটা একটা bottleneck Source 4সোর্স 4। user-রা সেটা খুঁজে পাওয়ার আগেই আপনি সেটা খুঁজে বের করতে চান।
What it measures
A performance test collects numbers. Four groups of numbers matter most. The table shows each group and the k6 built-in metric that matches it Source 3সোর্স 3.
| Group | Question | k6 metric |
|---|---|---|
| Response time | How long does one request take? | http_req_duration |
| Throughput | How many requests does the system handle? | http_reqs |
| Error rate | What share of requests fail? | http_req_failed |
| Resource use | How much CPU and memory does the server use? | not a k6 metric |
http_req_duration is the total time of a request. It equals the time to send, plus the time to wait, plus the time to receive Source 3সোর্স 3. The waiting part is also called the time to first byte Source 3সোর্স 3. http_reqs counts all HTTP requests that k6 made Source 3সোর্স 3. http_req_failed is the rate of failed requests Source 3সোর্স 3.
Resource use is on the server side. k6 sends the load and measures what the user sees. To see CPU and memory, you watch the server with a monitoring tool. This is the tutorial's own advice.
A good test also sets what "acceptable" means before the run. The k6 documentation says to use thresholds to check that the system stays within its SLOs Source 4সোর্স 4. Later pages show how.
সহজ English
A performance test collects numbers. Four groups of numbers matter most. The table shows each group and the k6 built-in metric for it Source 3সোর্স 3.
| Group | Question | k6 metric |
|---|---|---|
| Response time | How long does one request take? | http_req_duration |
| Throughput | How many requests does the system handle? | http_reqs |
| Error rate | What share of requests fail? | http_req_failed |
| Resource use | How much CPU and memory does the server use? | not a k6 metric |
http_req_duration is the total time of a request. It is the time to send, plus the time to wait, plus the time to receive Source 3সোর্স 3. The waiting part is also called the time to first byte Source 3সোর্স 3. http_reqs counts all HTTP requests that k6 made Source 3সোর্স 3. http_req_failed is the rate of failed requests Source 3সোর্স 3.
Resource use is on the server side. k6 sends the load and measures what the user sees. To see CPU and memory, watch the server with a monitoring tool. This is the tutorial's own advice.
A good test also says what "acceptable" means before the run. The k6 documentation says to use thresholds to keep the system within its SLOs Source 4সোর্স 4. Later pages show how.
বাংলা ব্যাখ্যা
একটা performance test কিছু সংখ্যা সংগ্রহ করে। চার ধরনের সংখ্যা সবচেয়ে গুরুত্বপূর্ণ। টেবিলে প্রতিটা ধরন আর তার k6 built-in metric দেখানো হয়েছে Source 3সোর্স 3।
| ধরন | প্রশ্ন | k6 metric |
|---|---|---|
| Response time | একটা request-এ কত সময় লাগে? | http_req_duration |
| Throughput | সিস্টেম কতগুলো request সামলায়? | http_reqs |
| Error rate | কত শতাংশ request fail করে? | http_req_failed |
| Resource use | সার্ভার কতটা CPU আর memory ব্যবহার করে? | k6 metric নয় |
http_req_duration হলো একটা request-এর মোট সময়। এটা পাঠানোর সময়, অপেক্ষার সময় আর পাওয়ার সময়ের যোগফল Source 3সোর্স 3। অপেক্ষার অংশকে time to first byte-ও বলে Source 3সোর্স 3। http_reqs k6 যতগুলো HTTP request করেছে তার সংখ্যা গোনে Source 3সোর্স 3। http_req_failed হলো fail হওয়া request-এর rate Source 3সোর্স 3।
Resource use সার্ভারের দিকের জিনিস। k6 load পাঠায় আর user যা দেখে তা মাপে। CPU আর memory দেখতে হলে monitoring tool দিয়ে সার্ভার দেখুন। এটা এই টিউটোরিয়ালের নিজস্ব পরামর্শ।
ভালো test রান করার আগেই ঠিক করে নেয় "গ্রহণযোগ্য" মানে কী। k6 documentation বলে, সিস্টেম যেন তার SLO-র মধ্যে থাকে তা নিশ্চিত করতে threshold ব্যবহার করুন Source 4সোর্স 4। পরের পেজগুলোতে দেখানো হবে কীভাবে।
Key words
| Term | Meaning |
|---|---|
| Performance testing | A test type that checks the performance efficiency of a component or system Source 1সোর্স 1. |
| Load | The traffic that a test puts on the system. The test goal sets the test type, and the test type sets the load Source 4সোর্স 4. |
| Response time | How long a request takes. k6 measures it as http_req_duration Source 3সোর্স 3. |
| Throughput | How many requests are made. k6 counts them with http_reqs Source 3সোর্স 3. |
| Error rate | The rate of failed requests. k6 reports it as http_req_failed Source 3সোর্স 3. |
| Bottleneck | A component that does not meet its performance requirements Source 4সোর্স 4. |
| SLO | A service level objective: a target for how well the system must perform Source 4সোর্স 4. |
| Threshold | A pass or fail rule on a metric, used to keep the system within its SLOs Source 4সোর্স 4. |
| Test type | A kind of load test, such as smoke, average-load, stress, soak, spike, or breakpoint Source 2সোর্স 2. |