Walther / clovers

Ray Tracing in Rust
https://walther.github.io/clovers/clovers/
13 stars 1 forks source link

2021-08-28 refactoring part 3 #95

Closed Walther closed 3 years ago

Walther commented 3 years ago

Note: seems to be a bit slower than the previous axis-aligned rectangles - roughly 50% increase in some test scenes. ~Investigate for possible bugs before merging~ Edit: going to be merging anyway because of code improvements. Perf optimization can be done later in a new PR.

2021-08-28-refactoring3  hyperfine "just scene"
Benchmark #1: just scene
  Time (mean ± σ):     12.258 s ±  1.410 s    [User: 763.283 s, System: 2.850 s]
  Range (min … max):   10.660 s … 14.487 s    10 runs

hyperfine "just scene"  7633.02s user 28.55s system 6241% cpu 2:02.76 total

main  hyperfine "just scene"
Benchmark #1: just scene
  Time (mean ± σ):      8.573 s ±  0.808 s    [User: 527.594 s, System: 3.431 s]
  Range (min … max):    7.762 s …  9.932 s    10 runs

hyperfine "just scene"  5276.10s user 34.36s system 6181% cpu 1:25.91 total