# Load testing of REST APIs

**URL:** <https://discourse.julialang.org/t/load-testing-of-rest-apis/66906>\
**Category:** Performance\
**Created:** [August 24, 2021, 11:55am UTC](https://discourse.julialang.org/t/load-testing-of-rest-apis/66906 "2021-08-24T11:55:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jan\_Dolinsky](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jan_dolinsky/32/31347_2.png) [@Jan\_Dolinsky](https://discourse.julialang.org/u/Jan_Dolinsky)\
**Post date:** [August 24, 2021, 11:55am UTC](https://discourse.julialang.org/t/load-testing-of-rest-apis/66906/1 "2021-08-24T11:55:13Z")

</div>

Hello,

I would like to ask whether there is some package / effort providing load testing functionalities for REST APIs. We currently consider using jMeter but I wanted to check whether there is something I might not be aware of in Julia eco-system.

I am aware of BenchmarkTools.jl which we use to benchmark internals of our code but I assume this package is not meant to load test REST APIs.

Thanks!

---

<div class="post-metadata">

**Author:** ![zgornel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zgornel/32/217487_2.png) [@zgornel](https://discourse.julialang.org/u/zgornel)\
**Post date:** [August 24, 2021, 9:53pm UTC](https://discourse.julialang.org/t/load-testing-of-rest-apis/66906/2 "2021-08-24T21:53:52Z")

</div>

`ab` i.e. apache benchmark should be ok. You can provide also various http parameters and load data to put into requests from files. Its pretty well documented and there are scores of examples online

---

<div class="post-metadata">

**Author:** ![Michal](https://avatars.discourse-cdn.com/v4/letter/m/34f0e0/32.png) [@Michal](https://discourse.julialang.org/u/Michal)\
**Post date:** [August 26, 2021, 8:59am UTC](https://discourse.julialang.org/t/load-testing-of-rest-apis/66906/3 "2021-08-26T08:59:29Z")

</div>

I would recommend to use JMeter:

> **[Load testing an API with Apache Benchmark or JMeter](https://medium.com/@harrietty/load-testing-an-api-with-apache-benchmark-or-jmeter-24cfe39d3a23)**
>
> If you have a server, you might want to know roughly what volume of requests it can deal with before it begins to fall over or fail…

It is possible to integrate it to pipeline in GitLab, DevOps and so on.

> <https://gitlab.com/gitlab-examples/functions/-/blob/master/.gitlab-ci.yml#L22>

---

<div class="post-metadata">

**Author:** ![Jan\_Dolinsky](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jan_dolinsky/32/31347_2.png) [@Jan\_Dolinsky](https://discourse.julialang.org/u/Jan_Dolinsky)\
**Post date:** [August 26, 2021, 1:39pm UTC](https://discourse.julialang.org/t/load-testing-of-rest-apis/66906/4 "2021-08-26T13:39:37Z")

</div>

Both options look good, thanks for sharing!
