From 0956f3f569fcbbd5d017a0c017bbc733380247ba Mon Sep 17 00:00:00 2001 From: dschlueter Date: Fri, 29 May 2026 20:26:44 +0200 Subject: [PATCH] =?UTF-8?q?chore:=20Examples=20finalisieren=20=E2=80=94=20?= =?UTF-8?q?Benchmark,=20.gitignore,=20TASK.md-Cleanup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - fib_bench_test.go: von pi-coder erzeugter Benchmark übernommen - .gitignore in python-calculator und rust-wordcount: verhindert Commit von Build-Artefakten in Demo-Sub-Repos - TASK.md zu globalem .gitignore hinzugefügt (pi-coder-Laufzeitartefakt) - restore-all.sh: bereinigt jetzt auch TASK.md-Dateien Co-Authored-By: Claude Sonnet 4.6 --- .gitignore | 4 ++++ examples/go-fibonacci/fib_bench_test.go | 9 +++++++++ examples/python-calculator/.gitignore | 2 ++ examples/restore-all.sh | 3 ++- examples/rust-wordcount/.gitignore | 3 +++ 5 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 examples/go-fibonacci/fib_bench_test.go create mode 100644 examples/python-calculator/.gitignore create mode 100644 examples/rust-wordcount/.gitignore diff --git a/.gitignore b/.gitignore index 59fc5e2..c1bfaae 100644 --- a/.gitignore +++ b/.gitignore @@ -2,6 +2,10 @@ node_modules/ .DS_Store +# pi-coder Laufzeitartefakte +TASK.md +examples/**/TASK.md + # Build-Artefakte (Examples) examples/rust-wordcount/target/ examples/**/__pycache__/ diff --git a/examples/go-fibonacci/fib_bench_test.go b/examples/go-fibonacci/fib_bench_test.go new file mode 100644 index 0000000..0c91c44 --- /dev/null +++ b/examples/go-fibonacci/fib_bench_test.go @@ -0,0 +1,9 @@ +package main + +import "testing" + +func BenchmarkFib50(b *testing.B) { + for i := 0; i < b.N; i++ { + fib(50) + } +} diff --git a/examples/python-calculator/.gitignore b/examples/python-calculator/.gitignore new file mode 100644 index 0000000..43ae0e2 --- /dev/null +++ b/examples/python-calculator/.gitignore @@ -0,0 +1,2 @@ +__pycache__/ +*.py[cod] diff --git a/examples/restore-all.sh b/examples/restore-all.sh index e28c3ff..f7ca3a8 100755 --- a/examples/restore-all.sh +++ b/examples/restore-all.sh @@ -20,11 +20,12 @@ for dir in python-calculator rust-wordcount go-fibonacci c-linkedlist; do echo " ✓ Dateien restauriert: $dir" done -# Build-Artefakte bereinigen +# Build-Artefakte und pi-coder-Laufzeitartefakte bereinigen rm -rf "$EXAMPLES/rust-wordcount/target" find "$EXAMPLES" -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true find "$EXAMPLES" -name ".pytest_cache" -exec rm -rf {} + 2>/dev/null || true find "$EXAMPLES" -name "ll_demo" -delete 2>/dev/null || true +find "$EXAMPLES" -name "TASK.md" -delete 2>/dev/null || true echo "" echo "Fertig. Alle Examples sind im Ausgangszustand." diff --git a/examples/rust-wordcount/.gitignore b/examples/rust-wordcount/.gitignore new file mode 100644 index 0000000..d408a53 --- /dev/null +++ b/examples/rust-wordcount/.gitignore @@ -0,0 +1,3 @@ +target/ +*.rlib +*.pdb