marc2332 / freya

Cross-platform GUI library for 🦀 Rust powered by 🧬 Dioxus and 🎨 Skia.
https://freyaui.dev/
MIT License
1.33k stars 51 forks source link

feat: Support percentage of auto in layout #784

Closed marc2332 closed 2 weeks ago

marc2332 commented 1 month ago

Closes https://github.com/marc2332/freya/issues/783

github-actions[bot] commented 1 month ago

Benchmark for e5a54aa

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | benchmarks/alignments=true size=21845 depth=8 wide=4 mode=not cached | **111.0±0.96ms** | 111.4±0.31ms | **+0.36%** | | benchmarks/size=100001 depth=2 wide=100000 mode=not cached | **23.7±0.59ms** | 24.5±1.13ms | **+3.38%** | | benchmarks/size=10001 depth=2 wide=10000 mode=not cached | 1470.5±13.61µs | 1471.0±10.59µs | +0.03% | | benchmarks/size=1001 depth=2 wide=1000 mode=not cached | 142.8±5.30µs | 142.7±1.44µs | -0.07% | | benchmarks/size=131071 depth=17 wide=2 mode=not cached | **23.2±0.22ms** | 24.6±0.29ms | **+6.03%** | | benchmarks/size=16383 depth=14 wide=2 mode=not cached | 1735.5±35.63µs | 1755.5±32.10µs | +1.15% | | benchmarks/size=19531 depth=7 wide=5 mode=cached | 312.9±6.33µs | 313.4±1.71µs | +0.16% | | benchmarks/size=19531 depth=7 wide=5 mode=not cached | 2.7±0.01ms | 2.7±0.01ms | 0.00% | | benchmarks/size=4095 depth=12 wide=2 mode=not cached | 423.5±134.19µs | 431.9±129.16µs | +1.98% | | benchmarks/size=54241 depth=5 wide=15 mode=cached | 245.6±6.24µs | 249.5±144.44µs | +1.59% | | benchmarks/size=54241 depth=5 wide=15 mode=not cached | **6.6±0.14ms** | 6.7±0.05ms | **+1.52%** |
codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 95.65217% with 4 lines in your changes missing coverage. Please review.

Project coverage is 73.81%. Comparing base (741ef65) to head (a02b18c).

Files Patch % Lines
crates/torin/src/values/size.rs 57.14% 3 Missing :warning:
crates/torin/src/geometry.rs 87.50% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #784 +/- ## ========================================== - Coverage 73.89% 73.81% -0.08% ========================================== Files 201 201 Lines 21453 21530 +77 ========================================== + Hits 15853 15893 +40 - Misses 5600 5637 +37 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

github-actions[bot] commented 2 weeks ago

Benchmark for ebcac63

Click to view benchmark | Test | Base | PR | % | |------|--------------|------------------|---| | benchmarks/alignments=true size=21845 depth=8 wide=4 mode=not cached | 109.6±0.85ms | **108.6±4.36ms** | **-0.91%** | | benchmarks/size=100001 depth=2 wide=100000 mode=not cached | 24.4±0.49ms | 24.4±0.81ms | 0.00% | | benchmarks/size=10001 depth=2 wide=10000 mode=not cached | 1495.2±11.69µs | **1470.9±13.29µs** | **-1.63%** | | benchmarks/size=1001 depth=2 wide=1000 mode=not cached | 145.5±1.84µs | 143.7±4.30µs | -1.24% | | benchmarks/size=131071 depth=17 wide=2 mode=not cached | **23.4±0.15ms** | 23.8±0.22ms | **+1.71%** | | benchmarks/size=16383 depth=14 wide=2 mode=not cached | 1736.6±34.79µs | 1728.7±37.43µs | -0.45% | | benchmarks/size=19531 depth=7 wide=5 mode=cached | 313.3±2.97µs | 312.6±4.50µs | -0.22% | | benchmarks/size=19531 depth=7 wide=5 mode=not cached | 2.7±0.03ms | 2.7±0.02ms | 0.00% | | benchmarks/size=4095 depth=12 wide=2 mode=not cached | 427.8±154.70µs | 424.9±127.95µs | -0.68% | | benchmarks/size=54241 depth=5 wide=15 mode=cached | **243.9±9.50µs** | 253.5±88.45µs | **+3.94%** | | benchmarks/size=54241 depth=5 wide=15 mode=not cached | 6.6±0.19ms | 6.6±0.08ms | 0.00% |