Files
hcie-rust-v3.05/notlar.txt
T

160 lines
6.0 KiB
Plaintext
Raw Normal View History

2026-07-09 02:59:53 +03:00
cargo run -p hcie-wx-app --bin hcie-wx-app
cargo run --bin hcie-gui
cargo run --example gui
cargo run -p hcie-iced-gui
cargo build -p hcie-iced-gui --bin hcie-iced
scripts/cargo-with-build-id.sh run -p hcie-iced-gui
#######
criterion Benchmark
cargo bench -p hcie-engine-api
# Mevcut mükemmel performansı kalıcı bir baseline (referans) olarak kaydetmek için:
# (Not: bench = false kaldırıldı, [[bench]] target'ları doğrudan çalışıyor)
cargo bench -p hcie-engine-api --bench stroke_mask_pooling -- --save-baseline gold_standard
cargo bench -p hcie-engine-api --bench composite_scratch_pooling -- --save-baseline gold_standard
cargo bench -p hcie-engine-api --bench below_cache_reuse -- --save-baseline gold_standard
cargo bench -p hcie-engine-api --bench effects_skip -- --save-baseline gold_standard
# Kaydedilen 'gold_standard' baseline'ı ile karşılaştırma (regresyon testi) yapmak için:
cargo bench -p hcie-engine-api --bench stroke_mask_pooling -- --baseline gold_standard
cargo bench -p hcie-engine-api --bench composite_scratch_pooling -- --baseline gold_standard
cargo bench -p hcie-engine-api --bench below_cache_reuse -- --baseline gold_standard
cargo bench -p hcie-engine-api --bench effects_skip -- --baseline gold_standard
# Criterion sonuçları ./criterion/ dizinine kaydedilir
# CRITERION_HOME, .cargo/config.toml içinde ayarlanmıştır (relative = true)
# Rapor: ./criterion/report/index.html
#criterion açıklamaları
criterion.md
# Gold Standard Baseline (2026-07-25, par_chunks_exact optimization):
# stroke_mask_pooling/cold_first_stroke: 39.74 ms
# stroke_mask_pooling/warm_10th_stroke: 17.34 ms
# composite_scratch_pooling/cold_composite: 770.86 ms
# composite_scratch_pooling/warm_composite: 10.43 ms
# below_cache_reuse/first_stroke_cache_build: 781.66 ms
# below_cache_reuse/second_stroke_cache_reuse: 16.33 ms
# effects_skip/no_effects_composite: 17.15 ms
# effects_skip/with_one_dropshadow: 15.16 ms
##test
Running the Tests Automatically
To run only the new proximity dedup tests:
cargo test -p hcie-iced-gui -- proximate
To run all cycle_one_ux_tests (including the new ones):
cargo test -p hcie-iced-gui -- cycle_one_ux_tests
###########
To run the FULL test suite for the iced GUI crate:
cargo test -p hcie-iced-gui
To watch tests and re-run on file changes, use:
cargo watch -x "test -p hcie-iced-gui -- proximate"
(Requires cargo install cargo-watch if not installed.)
To check compilation (without running tests):
cargo check -p hcie-iced-gui
I suggest adding a Makefile target or shell alias for quick invocation:
# ~/.bashrc or ~/.zshrc
alias ci-iced='cd /mnt/extra/00_PROJECTS/hcie-rust-v3.05 && cargo test -p hcie-iced-gui'
alias ci-iced-check='cd /mnt/extra/00_PROJECTS/hcie-rust-
2026-07-09 02:59:53 +03:00
##TAURI
npm komutunu proje kökünden değil, hcie-tauri-app/ altından çalıştırmalısın:
cd hcie-tauri-app
npm run tauri dev
veya proje kökünden:
npm --prefix hcie-tauri-app run tauri dev
# Semantic pre-commit kontrolü (hızlı)
python3 logs/generate_semantic_report.py --mode staged --no-api
# Semantic post-commit audit
python3 logs/generate_semantic_report.py --mode last --save
# Fonksiyonel regression testleri
CARGO=~/.cargo/bin/cargo logs/functional_regression_check.sh --fast
# Golden testleri çalıştır
~/.cargo/bin/cargo test -p hcie-engine-api --test visual_regression
# Golden hashleri yenile
HCIE_REGEN_GOLDENS=1 ~/.cargo/bin/cargo test -p hcie-engine-api --test visual_regression -- --nocapture
# --- FX MAE Grid Search (Photoshop PNG export sonrası) ---
# Inner shadow (MAE=10.05, uygulandı)
cargo run --release --example tune_mae_inner_shadow_fine -p hcie-io
# Drop shadow
cargo run --release --example tune_mae_drop_shadow_grid -p hcie-io
# Outer glow
cargo run --release --example tune_mae_outer_glow_grid -p hcie-io
# Inner glow
cargo run --release --example tune_mae_inner_glow_grid -p hcie-io
# Bevel & emboss
cargo run --release --example tune_mae_bevel_emboss_grid -p hcie-io
# Stroke (v1: square, MAE=8.69, uygulandı)
cargo run --release --example tune_mae_stroke_grid -p hcie-io
# Stroke (v2: asymmetric shapes)
cargo run --release --example tune_mae_stroke_v2_grid -p hcie-io
# --- FX PSD set generators ---
cargo run --example generate_drop_shadow_psd_set -p hcie-io
cargo run --example generate_outer_glow_psd_set -p hcie-io
cargo run --example generate_inner_glow_psd_set -p hcie-io
cargo run --example generate_bevel_emboss_psd_set -p hcie-io
cargo run --example generate_stroke_psd_set -p hcie-io
cargo run --example generate_stroke_v2_psd_set -p hcie-io
# --- Sonuç dosyaları ---
# inner_shadow_fine_results.txt
# drop_shadow_grid_results.txt
# outer_glow_grid_results.txt
# inner_glow_grid_results.txt
# bevel_emboss_grid_results.txt
# stroke_grid_results.txt
# stroke_v2_grid_results.txt
# Drop shadow (10 blur × 5 passes × 7 spread = 350 combos × ~768 samples = ~269k eval)
cargo run --release --example tune_mae_drop_shadow_grid -p hcie-io
# Outer glow (10 × 5 × 5 alpha × 6 boost × 2 spread_pos = 3000 combos × ~168 samples = ~504k eval)
cargo run --release --example tune_mae_outer_glow_grid -p hcie-io
# Inner glow (aynı outer glow)
cargo run --release --example tune_mae_inner_glow_grid -p hcie-io
# Bevel emboss (6 blur × 6 hl × 6 sh = 216 combos × ~192 samples = ~41k eval)
cargo run --release --example tune_mae_bevel_emboss_grid -p hcie-io
# Stroke (7 aa × 5 feather = 35 combos × ~48 samples = ~1.6k eval)
cargo run --release --example tune_mae_stroke_grid -p hcie-io
cargo run --release --example tune_mae_drop_shadow_grid -p hcie-io
cargo run --release --example tune_mae_outer_glow_grid -p hcie-io
cargo run --release --example tune_mae_inner_glow_grid -p hcie-io
cargo run --release --example tune_mae_stroke_grid -p hcie-io
=== 4K Multi-Layer Stroke Benchmark ===
Canvas: 3840x2160, Layers: 10, Segments: 100
Average stroke_to: 45.9 us
Max stroke_to: 115.0 us
Average composite: 19413.1 us
Max composite: 321762.0 us
Total wall time: 1953294.0 us (1.95 s)
Segments per second: 51.2
test benchmark_4k_stroke_on_multilayer_document ... ok