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:
parent
f5d2a5d66e
commit
0956f3f569
5 changed files with 20 additions and 1 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
|
@ -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__/
|
||||
|
|
|
|||
9
examples/go-fibonacci/fib_bench_test.go
Normal file
9
examples/go-fibonacci/fib_bench_test.go
Normal 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
2
examples/python-calculator/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
__pycache__/
|
||||
*.py[cod]
|
||||
|
|
@ -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."
|
||||
|
|
|
|||
3
examples/rust-wordcount/.gitignore
vendored
Normal file
3
examples/rust-wordcount/.gitignore
vendored
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
target/
|
||||
*.rlib
|
||||
*.pdb
|
||||
Loading…
Add table
Add a link
Reference in a new issue