Ten things you should learn before learning about performance testing
Tags: testing, webperf, performance, tools
Published: 2021-09-21 15:53:05

<!-- wp:paragraph -->
<p>So you want to learn about performance testing and progress towards performance engineering or DevOps or Site Reliability Engineering. I get it. Jumping directly into performance testing might be overwhelming. I directed to learn the tool, then the performance concepts. It is like, learning to swim by directly jumping into the pool. Either someone needs to save you from drowning if things go south, or if you are smart enough, you can manage. I was able to manage myself to learn the performance concepts parallel while learning the performance testing tool around a decade ago. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>I do not want you to go down that route. In this blog post I am going to list out ten things you should learn before learning about performance testing and its tools. There is no end to learning stuffs. But I have highlighted the essential and fundamental concepts you may need to go through for your performance testing trip.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>It is not required to be an expert in the below-mentioned topics by learning everything. I would expect you to know at least what it is, how it is and why it is. There are many online courses available for free on YouTube, Free Code Camp, Edx, Coursera, or in your local library. </p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Networking</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>One of the famous quotes from the management expert Peter Drucker is "If you can't measure it, you can't improve it".  As a performance tester, you help to improve the performance of software. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Predominantly, you will be working on web or mobile applications, web services, client-side performance, operating systems, database performance etc. One common entity among these things is <em>network</em>. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Explore and learn about the history of networking, ARPANET, internet, intranet, network layer, IP v4, IP v6, networking services such as DNS, DHCP, NAT etc., wired, wireless, cellular, and basic network troubleshooting.</p>
<!-- /wp:paragraph -->

<!-- wp:embed {"url":"https://youtube.com/playlist?list=PLJ9A48W0kpRJeDShJotYMQy-TM_T2DJRO","type":"video","providerNameSlug":"youtube","responsive":true,"className":"wp-embed-aspect-16-9 wp-has-aspect-ratio"} -->
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
https://youtube.com/playlist?list=PLJ9A48W0kpRJeDShJotYMQy-TM_T2DJRO
</div></figure>
<!-- /wp:embed -->

<!-- wp:heading -->
<h2>Protocols</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Protocols are the backbone of any communication. It defines a set of rules that determine how data is transmitted between the devices in a network. Commonly known protocols are HTTP, HTTPS, DNS, TCP, UDP, ICMP, DHCP, FTP, SSH, RDP, SMTP etc.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Do a quick research into the protocols and their evolution. Deep-dive into the Open System Interconnection (OSI) model and TCP/IP model. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Learn about modern protocols such as gRPC, IPFS etc. Knowledge of protocol is critical to understanding of your application and its architecture. In some instances, you may need to read the data packets to troubleshoot the issues.</p>
<!-- /wp:paragraph -->

<!-- wp:generateblocks/headline {"uniqueId":"5d6c3172"} -->
<h2 class="gb-headline gb-headline-5d6c3172 gb-headline-text">Statistics</h2>
<!-- /wp:generateblocks/headline -->

<!-- wp:paragraph -->
<p>Love it or hate it, you need to refresh the statistics which you studied in school or college. Learn about mean, median, average, percentile, interquartile, standard deviation etc. Formulas such as Little's Law, capacity planning concepts, arrival rate will be very useful once you progress.</p>
<!-- /wp:paragraph -->

<!-- wp:embed {"url":"https://youtube.com/playlist?list=PLJ9A48W0kpRJl6I8ijICDNQD5NFQeHN4X","type":"video","providerNameSlug":"youtube","responsive":true,"className":"wp-embed-aspect-16-9 wp-has-aspect-ratio"} -->
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
https://youtube.com/playlist?list=PLJ9A48W0kpRJl6I8ijICDNQD5NFQeHN4X
</div></figure>
<!-- /wp:embed -->

<!-- wp:paragraph -->
<p>Learn about how to correlate data, plot charts/graphs, create a trend report, benchmarking etc.</p>
<!-- /wp:paragraph -->

<!-- wp:generateblocks/headline {"uniqueId":"55270e14"} -->
<h2 class="gb-headline gb-headline-55270e14 gb-headline-text">Browsers</h2>
<!-- /wp:generateblocks/headline -->

<!-- wp:paragraph -->
<p>Everyone uses a browser to interact with the applications. Browsers play a critical role in user experience and performance. If the application renders slowly due to network, front-end libraries, backend, or latency on the browser, it will have a negative impact on the brand and revenue.</p>
<!-- /wp:paragraph -->

<!-- wp:embed {"url":"https://youtube.com/playlist?list=PLJ9A48W0kpRJk0YNqzyofhPQS1pt_5bUF","type":"video","providerNameSlug":"youtube","responsive":true,"className":"wp-embed-aspect-16-9 wp-has-aspect-ratio"} -->
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
https://youtube.com/playlist?list=PLJ9A48W0kpRJk0YNqzyofhPQS1pt_5bUF
</div></figure>
<!-- /wp:embed -->

<!-- wp:paragraph -->
<p>As a performance tester/engineer, you need to understand how a browser works and how you can leverage the browser developer tools and extensions to debug the performance. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Client-side performance is a hot trend due to the evolution of Single Page Applications built using JavaScript libraries such as Angular, React, Vue etc. </p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Utilities</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>You do not need a sophisticated performance testing tool to measure the performance. Just by sending a ping command, you can measure the latency or by leveraging the browser developer tools, you  can debug the HTTP requests or DOM elements.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>In your leisure time, you can learn various utilities such as cURL, HTTP Pie, MITM Proxy, Fiddler, Wireshark and more. Also, explore Linux commands such as top, htop, netstat, dig, ip, tcpdump etc.</p>
<!-- /wp:paragraph -->

<!-- wp:embed {"url":"https://youtube.com/playlist?list=PLJ9A48W0kpRJ6Za-PG87scNCJp7kFgW2g","type":"video","providerNameSlug":"youtube","responsive":true,"className":"wp-embed-aspect-16-9 wp-has-aspect-ratio"} -->
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
https://youtube.com/playlist?list=PLJ9A48W0kpRJ6Za-PG87scNCJp7kFgW2g
</div></figure>
<!-- /wp:embed -->

<!-- wp:heading -->
<h2>Servers</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Servers are powerful workstations that share resources such as disk, network, computations and more on a network. Servers could be a part of a very simple two-tier or multi-tier architecture, or part of a distributed microservice architecture which scales deep based on the usage. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>As a performance tester/engineer, you need to understand how the HTTP request traverses among the hops and returns the response to the client. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>There are multiple types of servers which define its functionality. The most commonly known types of servers are: application servers, web servers, database servers, mail servers, FTP servers, proxy servers, virtual servers, telnet servers etc. </p>
<!-- /wp:paragraph -->

<!-- wp:image {"id":8688,"sizeSlug":"full","linkDestination":"media"} -->
<figure class="wp-block-image size-full"><a href="https://qainsights.com/wp-content/uploads/2021/09/Ten-things-you-should-learn-before-learning-about-performance-testing.jpeg"><img src="https://qainsights.com/wp-content/uploads/2021/09/Ten-things-you-should-learn-before-learning-about-performance-testing.jpeg" alt="Ten things you should learn before learning about performance testing" class="wp-image-8688"/></a><figcaption>Ten things you should learn before learning about performance testing</figcaption></figure>
<!-- /wp:image -->

<!-- wp:paragraph -->
<p>Understand the various aspects and functions of the server and its configuration, such as operating system type, architecture type, CPU and its cores, memory, disk, network etc. You need to be well aware of the production configuration and stage configuration. </p>
<!-- /wp:paragraph -->

<!-- wp:generateblocks/headline {"uniqueId":"34fe0171"} -->
<h2 class="gb-headline gb-headline-34fe0171 gb-headline-text">Database</h2>
<!-- /wp:generateblocks/headline -->

<!-- wp:paragraph -->
<p>Data is ubiquitous. Everything is data. After learning about database server configuration, it is important to know about database software. i.e. backend database applications. </p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Commonly known database software are Oracle RDBMS, Microsoft SQL, CouchDB, Neo4j, MariaDB, Amazon RDS, MongoDB, CockroachDB etc.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Learn about database query language, IDE, how to navigate around schema and tables, configuration, statements etc. This will help you to prepare the test data and help us in troubleshoot the issues.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Most of the performance issues you face might be around database layer.</p>
<!-- /wp:paragraph -->

<!-- wp:generateblocks/headline {"uniqueId":"b73e2cb2"} -->
<h2 class="gb-headline gb-headline-b73e2cb2 gb-headline-text">Load Balancers</h2>
<!-- /wp:generateblocks/headline -->

<!-- wp:paragraph -->
<p>Load balancers help to distribute the tasks among different entities in the network. It can optimize the performance by distributing the load and avoid overloading the servers. It could be either via hardware or software.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Widely used software based load balancers are Nginx, HAProxy, Amazon ELB, Azure Load Balancer, Varnish Software, Traefik etc.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Try to understand the load balancers algorithm, configuration, and how it works. </p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Cache</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>The frequently used objects are stored in the cache layer instead of reading them from the disk. This improves the performance drastically, reduces the load, increases the throughput and has many advantages.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>Learn about Content Delivery Network, Cache software and its configuration, Session Management, NoSQL database, </p>
<!-- /wp:paragraph -->

<!-- wp:heading -->
<h2>Linux</h2>
<!-- /wp:heading -->

<!-- wp:paragraph -->
<p>Learn Linux right now. If you are not working on a distributed microservice architecture, you will soon. Learn frequently used Linux commands, how to ssh, how to use grep/awk/sed, how to spin up a Linux box and run the test, how to create a user, how to install docker or Kubernetes, bash scripting, regular expressions, file operations, text editors, shell etc.</p>
<!-- /wp:paragraph -->

<!-- wp:embed {"url":"https://youtube.com/playlist?list=PLJ9A48W0kpRLorIGHOM7g2OUsO2de3ERm","type":"video","providerNameSlug":"youtube","responsive":true,"className":"wp-embed-aspect-16-9 wp-has-aspect-ratio"} -->
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
https://youtube.com/playlist?list=PLJ9A48W0kpRLorIGHOM7g2OUsO2de3ERm
</div></figure>
<!-- /wp:embed -->

<!-- wp:paragraph -->
<p>Apart from the above ten things, you need to learn about Git, Python scripting, container technologies such as docker, podmad, LXD etc., container orchestration such as Kubernetes, Docker Swarm etc., Grafana, Prometheus, InfluxDB, Observability solutions like Jaeger, Dynatrace, New Relic, HoneyComb, Elastic and more. The list is infinite.</p>
<!-- /wp:paragraph -->

<!-- wp:paragraph -->
<p>A performance tester/engineer should be like a "Jack of all trades, master of none", but you should be a master of performance testing and engineering at the core. Please <a href="https://qainsights.com" target="_blank" rel="noreferrer noopener">add</a> if I missed anything. </p>
<!-- /wp:paragraph -->