Files
natasha41575 a2ceaff053 small fixes
2023-09-08 11:38:23 -05:00
..
2022-04-04 14:24:04 -04:00
2023-09-08 11:38:23 -05:00
2020-07-06 09:38:31 -07:00
2023-09-08 11:38:23 -05:00
2022-04-04 14:24:04 -04:00
2022-03-02 14:04:17 -05:00

Benchmark for KRM functions in Kustomize

Prerequisites

How to run

./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.

./cleanup.sh

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)
  • gcr.io/kpt-functions/label-namespace (link)

example-tshirt is a Go function. label-namespace is a JS function. Both of them are used as transformers.