diff --git a/hack/krmFunctionBenchmark/.gitignore b/hack/krmFunctionBenchmark/.gitignore new file mode 100644 index 000000000..f797ffc24 --- /dev/null +++ b/hack/krmFunctionBenchmark/.gitignore @@ -0,0 +1,3 @@ +node_modules +dist +example_tshirt/execfn/tshirt \ No newline at end of file diff --git a/hack/krmFunctionBenchmark/readme.md b/hack/krmFunctionBenchmark/readme.md index 98cb33286..e472c6dbc 100644 --- a/hack/krmFunctionBenchmark/readme.md +++ b/hack/krmFunctionBenchmark/readme.md @@ -16,4 +16,13 @@ The script will build the exec version of function via container and then run 10 ```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. \ No newline at end of file +Will remove the built exec version of the function. Add flag `--image` to remove the images that used to build exec function. + +## Functions in the benchmark + +Two functions are used: + + - `gcr.io/kustomize-functions/example-tshirt` ([link](https://github.com/kubernetes-sigs/kustomize/blob/master/functions/examples/injection-tshirt-sizes/image/main.go)) + - `gcr.io/kpt-functions/label-namespace` ([link](https://github.com/GoogleContainerTools/kpt-functions-sdk/blob/master/ts/hello-world/src/label_namespace.ts)) + + `example-tshirt` is a Go function. `label-namespace` is a JS function. Both of them are used as transformers. \ No newline at end of file