- kustomize v3.7.0 or higher (support for KRM Config Functions).
- docker
./benchmark.shThe 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.
./cleanup.shWill remove the built exec version of the function. Add flag --image to remove the images that used to build exec function.
Two functions are used:
example-tshirt is a Go function. label-namespace is a JS function. Both of them are used as transformers.