-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPerformanceTestingIntroduction.html
More file actions
530 lines (505 loc) · 14.7 KB
/
Copy pathPerformanceTestingIntroduction.html
File metadata and controls
530 lines (505 loc) · 14.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>What is Performance Testing?</title>
<link href="https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
<style>
:root {
--bg-dark: #0B0E17;
--bg-card: #131829;
--bg-card-alt: #1A1F35;
--accent-cyan: #00E5FF;
--accent-magenta: #FF2D78;
--accent-amber: #FFB800;
--accent-green: #00E676;
--accent-purple: #B388FF;
--text-primary: #E8EAF6;
--text-secondary: #9499B3;
--text-muted: #5C6180;
--border-subtle: rgba(255,255,255,0.06);
--glow-cyan: 0 0 30px rgba(0,229,255,0.15);
--glow-magenta: 0 0 30px rgba(255,45,120,0.15);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
background: var(--bg-dark);
color: var(--text-primary);
font-family: 'Sora', sans-serif;
line-height: 1.6;
overflow-x: hidden;
}
.infographic {
max-width: 1100px;
margin: 0 auto;
padding: 60px 32px 80px;
position: relative;
}
/* ── Decorative BG ── */
.bg-grid {
position: fixed;
inset: 0;
background-image:
linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
background-size: 60px 60px;
pointer-events: none;
z-index: 0;
}
.bg-blob {
position: fixed;
border-radius: 50%;
filter: blur(120px);
pointer-events: none;
z-index: 0;
}
.bg-blob.one { width: 500px; height: 500px; background: rgba(0,229,255,0.06); top: -100px; left: -150px; }
.bg-blob.two { width: 400px; height: 400px; background: rgba(255,45,120,0.05); bottom: 200px; right: -100px; }
.infographic > * { position: relative; z-index: 1; }
/* ── HERO ── */
.hero {
text-align: center;
margin-bottom: 64px;
}
.hero-badge {
display: inline-block;
font-family: 'Space Mono', monospace;
font-size: 11px;
letter-spacing: 3px;
text-transform: uppercase;
color: var(--accent-cyan);
border: 1px solid rgba(0,229,255,0.3);
padding: 6px 20px;
border-radius: 40px;
margin-bottom: 24px;
background: rgba(0,229,255,0.05);
}
.hero h1 {
font-size: clamp(36px, 5.5vw, 64px);
font-weight: 800;
letter-spacing: -1.5px;
line-height: 1.1;
margin-bottom: 28px;
background: linear-gradient(135deg, #fff 0%, var(--accent-cyan) 60%, var(--accent-magenta) 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.hero-desc {
max-width: 740px;
margin: 0 auto 20px;
font-size: 17px;
color: var(--text-secondary);
line-height: 1.75;
}
.hero-tag {
display: inline-block;
font-family: 'Space Mono', monospace;
font-size: 12px;
color: var(--accent-amber);
background: rgba(255,184,0,0.08);
border: 1px solid rgba(255,184,0,0.2);
padding: 8px 22px;
border-radius: 8px;
margin-top: 12px;
}
/* ── Section Headers ── */
.section-header {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 28px;
margin-top: 64px;
}
.section-num {
font-family: 'Space Mono', monospace;
font-size: 13px;
font-weight: 700;
color: var(--bg-dark);
background: var(--accent-cyan);
width: 36px;
height: 36px;
border-radius: 10px;
display: flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}
.section-num.magenta { background: var(--accent-magenta); }
.section-num.amber { background: var(--accent-amber); }
.section-num.green { background: var(--accent-green); }
.section-num.purple { background: var(--accent-purple); }
.section-header h2 {
font-size: 26px;
font-weight: 700;
letter-spacing: -0.5px;
}
/* ── Definition Card ── */
.definition-card {
background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-card-alt) 100%);
border: 1px solid var(--border-subtle);
border-radius: 20px;
padding: 40px 36px;
box-shadow: var(--glow-cyan);
position: relative;
overflow: hidden;
}
.definition-card::before {
content: '';
position: absolute;
top: 0; left: 0; right: 0;
height: 3px;
background: linear-gradient(90deg, var(--accent-cyan), var(--accent-magenta));
}
.definition-card p {
font-size: 18px;
color: var(--text-primary);
line-height: 1.8;
font-weight: 300;
}
.definition-card .icon-deco {
font-size: 48px;
position: absolute;
top: 20px;
right: 28px;
opacity: 0.12;
}
/* ── Focus Grid ── */
.focus-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
gap: 20px;
}
.focus-card {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: 16px;
padding: 28px 24px;
position: relative;
overflow: hidden;
transition: transform 0.25s, box-shadow 0.25s;
}
.focus-card:hover {
transform: translateY(-4px);
box-shadow: var(--glow-cyan);
}
.focus-card .fc-icon {
font-size: 32px;
margin-bottom: 14px;
display: block;
}
.focus-card h3 {
font-size: 17px;
font-weight: 700;
margin-bottom: 8px;
color: var(--accent-cyan);
}
.focus-card:nth-child(2) h3 { color: var(--accent-magenta); }
.focus-card:nth-child(3) h3 { color: var(--accent-amber); }
.focus-card:nth-child(4) h3 { color: var(--accent-green); }
.focus-card p {
font-size: 14px;
color: var(--text-secondary);
line-height: 1.6;
}
/* ── Example Section ── */
.example-box {
background: var(--bg-card);
border: 1px solid var(--border-subtle);
border-radius: 20px;
padding: 40px 36px;
position: relative;
overflow: hidden;
}
.example-box::after {
content: '';
position: absolute;
bottom: 0; left: 0; right: 0;
height: 3px;
background: linear-gradient(90deg, var(--accent-amber), var(--accent-green));
}
.example-scenario {
font-family: 'Space Mono', monospace;
font-size: 13px;
color: var(--accent-amber);
letter-spacing: 1px;
text-transform: uppercase;
margin-bottom: 8px;
}
.example-title {
font-size: 20px;
font-weight: 700;
margin-bottom: 8px;
}
.example-question {
font-size: 15px;
color: var(--text-secondary);
margin-bottom: 28px;
font-style: italic;
}
.metrics-strip {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 16px;
margin-bottom: 32px;
}
.metric {
background: rgba(255,255,255,0.03);
border: 1px solid var(--border-subtle);
border-radius: 12px;
padding: 18px 20px;
display: flex;
align-items: center;
gap: 14px;
}
.metric .m-icon {
font-size: 26px;
flex-shrink: 0;
}
.metric .m-label {
font-size: 12px;
color: var(--text-muted);
font-family: 'Space Mono', monospace;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.metric .m-value {
font-size: 16px;
font-weight: 600;
color: var(--text-primary);
margin-top: 2px;
}
.metric:nth-child(1) .m-value { color: var(--accent-cyan); }
.metric:nth-child(2) .m-value { color: var(--accent-magenta); }
.metric:nth-child(3) .m-value { color: var(--accent-amber); }
.metric:nth-child(4) .m-value { color: var(--accent-green); }
/* ── Bottlenecks ── */
.bottleneck-label {
font-family: 'Space Mono', monospace;
font-size: 12px;
letter-spacing: 1px;
text-transform: uppercase;
color: var(--accent-magenta);
margin-bottom: 14px;
}
.bottleneck-tags {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.b-tag {
font-size: 13px;
padding: 8px 18px;
border-radius: 40px;
background: rgba(255,45,120,0.08);
border: 1px solid rgba(255,45,120,0.2);
color: var(--accent-magenta);
font-weight: 600;
}
/* ── Why Section ── */
.why-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 20px;
}
@media (max-width: 640px) {
.why-grid { grid-template-columns: 1fr; }
}
.risk-card {
background: rgba(255,45,120,0.04);
border: 1px solid rgba(255,45,120,0.12);
border-radius: 14px;
padding: 22px 24px;
display: flex;
align-items: center;
gap: 16px;
}
.risk-card .r-icon {
font-size: 28px;
flex-shrink: 0;
}
.risk-card .r-text {
font-size: 15px;
font-weight: 600;
color: var(--text-primary);
}
.risk-card .r-sub {
font-size: 13px;
color: var(--text-secondary);
margin-top: 3px;
}
/* ── Footer ── */
.footer {
text-align: center;
margin-top: 72px;
padding-top: 32px;
border-top: 1px solid var(--border-subtle);
}
.footer p {
font-family: 'Space Mono', monospace;
font-size: 12px;
color: var(--text-muted);
letter-spacing: 1px;
}
.footer .footer-accent {
color: var(--accent-cyan);
}
/* ── Divider ── */
.divider {
height: 1px;
background: linear-gradient(90deg, transparent, var(--border-subtle), transparent);
margin: 48px 0;
}
</style>
</head>
<body>
<div class="bg-grid"></div>
<div class="bg-blob one"></div>
<div class="bg-blob two"></div>
<div class="infographic">
<!-- HERO -->
<div class="hero">
<div class="hero-badge">Introduction · Performance Testing 101</div>
<h1>What is Performance Testing?</h1>
<p class="hero-desc">
Performance testing evaluates how well an application performs under different levels of
<strong>user load</strong>, <strong>stress</strong>, and <strong>traffic conditions</strong>.
The goal is to understand the system's <em>speed, stability, scalability, and resource usage</em> before it goes live.
</p>
<div class="hero-tag">⚙️ A type of Non-Functional Testing — not <em>what</em> it does, but <em>how fast & stable</em> it behaves</div>
</div>
<!-- SECTION 1: DEFINITION -->
<div class="section-header">
<div class="section-num">01</div>
<h2>Simple Definition</h2>
</div>
<div class="definition-card">
<div class="icon-deco">🎯</div>
<p>
Performance Testing is a process of testing an application to determine
<strong>how it behaves when multiple users access it simultaneously</strong>,
and <strong>how quickly it responds</strong>.
</p>
</div>
<!-- SECTION 2: FOCUS AREAS -->
<div class="section-header">
<div class="section-num magenta">02</div>
<h2>Core Focus Areas</h2>
</div>
<div class="focus-grid">
<div class="focus-card">
<span class="fc-icon">👥</span>
<h3>User Load</h3>
<p>How many concurrent users can the system handle without degradation?</p>
</div>
<div class="focus-card">
<span class="fc-icon">⚡</span>
<h3>Response Time</h3>
<p>How quickly does the system respond to user actions under load?</p>
</div>
<div class="focus-card">
<span class="fc-icon">📊</span>
<h3>Throughput</h3>
<p>How many transactions or requests can be processed per second?</p>
</div>
<div class="focus-card">
<span class="fc-icon">🖥️</span>
<h3>Resource Usage</h3>
<p>How effectively are CPU, memory, database, and network utilized?</p>
</div>
</div>
<!-- SECTION 3: EXAMPLE -->
<div class="section-header">
<div class="section-num amber">03</div>
<h2>Real-World Example</h2>
</div>
<div class="example-box">
<div class="example-scenario">Scenario</div>
<div class="example-title">E-Commerce App — "Add to Cart" Function</div>
<div class="example-question">How does the website behave when 1,000 users click "Add to Cart" at the same time?</div>
<div class="metrics-strip">
<div class="metric">
<div class="m-icon">⏱️</div>
<div>
<div class="m-label">Response Time</div>
<div class="m-value">1.2 seconds</div>
</div>
</div>
<div class="metric">
<div class="m-icon">🔥</div>
<div>
<div class="m-label">Server CPU</div>
<div class="m-value">75% under load</div>
</div>
</div>
<div class="metric">
<div class="m-icon">⚠️</div>
<div>
<div class="m-label">Error Rate</div>
<div class="m-value">3% at 1,200 users</div>
</div>
</div>
<div class="metric">
<div class="m-icon">🚀</div>
<div>
<div class="m-label">Throughput</div>
<div class="m-value">300 req/sec</div>
</div>
</div>
</div>
<div class="bottleneck-label">🔍 Common Bottlenecks Identified</div>
<div class="bottleneck-tags">
<span class="b-tag">Database Slow Queries</span>
<span class="b-tag">High CPU Usage</span>
<span class="b-tag">Insufficient Memory</span>
<span class="b-tag">Bad Code Loops</span>
<span class="b-tag">Network Latency</span>
<span class="b-tag">Low Throughput</span>
</div>
</div>
<!-- SECTION 4: WHY -->
<div class="section-header">
<div class="section-num purple">04</div>
<h2>Why is Performance Testing Important?</h2>
</div>
<p style="font-size:15px; color:var(--text-secondary); margin-bottom:24px;">
Without performance testing, users may face critical issues — especially during peak traffic like sales, festivals, and promotions.
</p>
<div class="why-grid">
<div class="risk-card">
<span class="r-icon">🐌</span>
<div>
<div class="r-text">Slow Page Loads</div>
<div class="r-sub">Users abandon sites that take > 3 seconds</div>
</div>
</div>
<div class="risk-card">
<span class="r-icon">⏳</span>
<div>
<div class="r-text">Timeouts</div>
<div class="r-sub">Requests never complete under heavy load</div>
</div>
</div>
<div class="risk-card">
<span class="r-icon">💥</span>
<div>
<div class="r-text">Application Crashes</div>
<div class="r-sub">Unhandled load spikes bring systems down</div>
</div>
</div>
<div class="risk-card">
<span class="r-icon">📉</span>
<div>
<div class="r-text">Business Loss</div>
<div class="r-sub">Revenue lost during peak traffic events</div>
</div>
</div>
</div>
<!-- FOOTER -->
<div class="footer">
<p><span class="footer-accent">PERFORMANCE TESTING</span> · Test Early · Test Often · Ship Confidently · Author: Angshuman Basak</p>
</div>
</div>
</body>
</html>