# Performance Testing using K6
What was the problem?
I had to perform load testing of Web API.
What was the solution?
I learnt and used K6 for load testing which allows me to write javascript code for writing load tests, is open source, can be integrated with Apache Kafka, Datadog, AWS Cloud Watch
Recently, I had to perform Performance Testing of my API(s) and I wanted to use JavaScript based utility for the same. I found K6. K6 is a very nice tool to perform load testing for developers as it allows you to write simple JavaScript code to perform testing.
For my usecase, I am using https://petstore.swagger.io/ and followed the following steps:
and here is the script that I wrote: