chore: Examples finalisieren — Benchmark, .gitignore, TASK.md-Cleanup

- 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 <noreply@anthropic.com>
This commit is contained in:
Dieter Schlüter 2026-05-29 20:26:44 +02:00
commit 0956f3f569
5 changed files with 20 additions and 1 deletions

4
.gitignore vendored
View file

@ -2,6 +2,10 @@
node_modules/ node_modules/
.DS_Store .DS_Store
# pi-coder Laufzeitartefakte
TASK.md
examples/**/TASK.md
# Build-Artefakte (Examples) # Build-Artefakte (Examples)
examples/rust-wordcount/target/ examples/rust-wordcount/target/
examples/**/__pycache__/ examples/**/__pycache__/

View file

@ -0,0 +1,9 @@
package main
import "testing"
func BenchmarkFib50(b *testing.B) {
for i := 0; i < b.N; i++ {
fib(50)
}
}

2
examples/python-calculator/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
__pycache__/
*.py[cod]

View file

@ -20,11 +20,12 @@ for dir in python-calculator rust-wordcount go-fibonacci c-linkedlist; do
echo " ✓ Dateien restauriert: $dir" echo " ✓ Dateien restauriert: $dir"
done done
# Build-Artefakte bereinigen # Build-Artefakte und pi-coder-Laufzeitartefakte bereinigen
rm -rf "$EXAMPLES/rust-wordcount/target" rm -rf "$EXAMPLES/rust-wordcount/target"
find "$EXAMPLES" -name "__pycache__" -exec rm -rf {} + 2>/dev/null || true 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 ".pytest_cache" -exec rm -rf {} + 2>/dev/null || true
find "$EXAMPLES" -name "ll_demo" -delete 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 ""
echo "Fertig. Alle Examples sind im Ausgangszustand." echo "Fertig. Alle Examples sind im Ausgangszustand."

3
examples/rust-wordcount/.gitignore vendored Normal file
View file

@ -0,0 +1,3 @@
target/
*.rlib
*.pdb