Skip to content

Conversation

@BacLuc
Copy link
Contributor

@BacLuc BacLuc commented Sep 28, 2024

Start with performance tests for the api, that we can verify possible performance improvements.

Currently, the tool https://grafana.com/docs/k6 is used.

The output json is not meant as a benchmark.
Because the time is dependent on the instance (and network between and many other factors),
the output.json is not meant as a global reference, but as a relative reference.

If you have a place where you want to improve the performance,
first: run the performance tests against the instance.
then apply your change
run the performance tests again against the same instance with the changed code.

Most endpoints got faster locally, i would say we can merge this and see the effect in production.

Issue:

@BacLuc BacLuc marked this pull request as draft September 28, 2024 13:50
@BacLuc BacLuc force-pushed the performance-improvements-ecamp3 branch from 3aaa6b0 to 18ebe33 Compare September 28, 2024 23:32
@BacLuc BacLuc marked this pull request as ready for review September 29, 2024 07:50
Put result summary into a json we can diff easily for each endpoint.
That we find the url for the local db easily.
This does not end up in the docker image or in the helm deployment.
Else the results shift and are not diffable.
Use a large negative number that it is clear
that an id for a item endpoint could not be found.
@BacLuc BacLuc force-pushed the performance-improvements-ecamp3 branch from 18ebe33 to 9bbf678 Compare September 29, 2024 11:10
@BacLuc BacLuc changed the title Performance tests Performance tests + switch to worker mode Sep 29, 2024
@BacLuc BacLuc added the test-flaky-e2e! Add this label to a PR to run e2e tests multiple times label Sep 29, 2024
@BacLuc
Copy link
Contributor Author

BacLuc commented Sep 29, 2024

seems like i have to fix the http cache e2e test for invalidation first, before i can make the api faster.

@BacLuc
Copy link
Contributor Author

BacLuc commented Oct 15, 2024

Core Meeting Decision

We try to merge this without the last commit.
Then we can play around with the worker mode and the performance measurement.

@BacLuc BacLuc mentioned this pull request Oct 17, 2024
@BacLuc BacLuc closed this Oct 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test-flaky-e2e! Add this label to a PR to run e2e tests multiple times

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant