MatthewPeterKelly/fractal-renderer

Add some benchmarks!

Open

#42 建立於 2024年6月4日

在 GitHub 查看
 (1 留言) (0 反應) (0 負責人)Rust (0 fork)github user discovery
good first issue

倉庫指標

Star
 (6 star)
PR 合併指標
 (平均合併 1天 16小時) (30 天內合併 6 個 PR)

描述

One of the main focuses of this library is on making the fractal generation and rendering pipelines as fast as possible... it would be nice to have a way to automatically check if the changes in a given PR have an impact on the speed. The best way to do this is with a proper benchmarking suite. We have an approximation now, by measuring the time to generate each fractal and saving it to a file, but we could do much better.

It looks like https://crates.io/crates/criterion is a popular crate for doing this. There might be others.

Benchmarks to add:

  • Inner loop of the mandelbrot set (pixel iteration)
  • simulation for the DDP at a single initial condition
  • (TODO: add more ideas here)

貢獻者指南