Add benchmark for containerized KRM function in kustomize

This commit is contained in:
Donny Xia
2020-07-01 12:46:16 -07:00
parent c7bc9d2066
commit 6d324d70c4
22 changed files with 256 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
# Benchmark for KRM functions in Kustomize
## Pre-request
- You have to use Kustomize version with KRM function supported.
- You need to have Docker running on your machine.
## How to run
```bash
./benchmark.sh
```
The script will build the exec version of function via container and then run 10, 100 and 1000 times of exec version and container version and then print out the time used by both versions.
```bash
./cleanup.sh
```
Will remove the built exec version of the function. Add flag `--image` to remove the images that used to build exec function.