Optimize stroke cache and benchmark configurations
mandatory-regression-gate / deterministic-tests (push) Waiting to run
mandatory-regression-gate / protected-performance-path (push) Waiting to run

- Updated stroke cache to use parallel processing for pixel checks.
- Modified benchmark commands in notlar.txt to ensure consistent output and baseline comparisons.
- Created a plan for merging criterion directories and optimizing benchmark performance, including pre-allocation of buffers and various optimization strategies.
- Removed redundant output directory settings in benchmark files and ensured all benchmarks write to a single criterion directory.
- Updated documentation to reflect changes in benchmark paths and configurations.
This commit is contained in:
Your Name
2026-07-25 05:20:12 +03:00
parent 1cc8a3f373
commit 1dabd9c31e
241 changed files with 249 additions and 20181 deletions
+20 -4
View File
@@ -9,18 +9,34 @@ criterion Benchmark
cargo bench -p hcie-engine-api
# Mevcut mükemmel performansı kalıcı bir baseline (referans) olarak kaydetmek için:
# (Not: Hata almamak için hcie-engine-api/Cargo.toml'da [lib] altına bench = false eklendi)
cargo bench -p hcie-engine-api -- --save-baseline gold_standard
# (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 -- --baseline gold_standard
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=criterion)
# 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: