From 0aae8d989643f19d57492dcc235fde413f6a4acf Mon Sep 17 00:00:00 2001 From: Jacob Colvin Date: Fri, 3 Jan 2025 18:37:14 -0500 Subject: [PATCH] Improve benchmarks --- Taskfile.yaml | 2 +- benchmarks/simple.k | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Taskfile.yaml b/Taskfile.yaml index 5453313..4585997 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -142,7 +142,7 @@ tasks: KCL_HELM_VALUES: benchmarks/simple-helm-values.k cmds: - >- - hyperfine --warmup=10 + hyperfine --warmup=50 --min-runs=1000 --export-markdown ./benchmarks/README.md --command-name "kclipper ./{{.KCL_CODE}}" --command-name "kclipper ./{{.KCL_HELM}}" diff --git a/benchmarks/simple.k b/benchmarks/simple.k index fb461c2..40ee3a5 100644 --- a/benchmarks/simple.k +++ b/benchmarks/simple.k @@ -1,4 +1,6 @@ -[{ +import manifests + +_notAChart = [{ apiVersion = "apps/v1" kind = "Deployment" metadata = { @@ -34,3 +36,5 @@ } } } for x in range(0, 5)] + +manifests.yaml_stream(_notAChart, {})