Closed satoren closed 2 months ago
The changes introduce benchmarking setups for the Text.insert/3
and Text.format/4
functions from the Yex library using the Benchee library. Two new files, benchmark/insert_text.exs
and benchmark/text_format.exs
, are created to evaluate performance under different scenarios. Additionally, the mix.exs
file is updated to include the Benchee library as a development dependency, enhancing the project's benchmarking capabilities.
Files | Change Summary |
---|---|
benchmark/insert_text.exs, benchmark/text_format.exs | Added benchmarking setups for Text.insert/3 and Text.format/4 functions using Benchee. Each benchmark includes a setup function and runs for 5 seconds to assess performance. |
mix.exs | Added benchee as a development dependency to enable performance benchmarking capabilities. |
sequenceDiagram
participant Developer
participant Benchee
participant Yex.Doc
participant Text
Developer->>Benchee: Run Benchmark
Benchee->>Yex.Doc: Create New Document
Yex.Doc-->>Benchee: Document Instance
Benchee->>Text: Call Text.insert/3 or Text.format/4
Text-->>Benchee: Return Result
Benchee->>Developer: Provide Benchmark Results
🐰 "In the code where the benchmarks play,
Performance shines in a splendid way.
With Benchee's help, we measure the speed,
Inserting and formatting, we take the lead!
Hopping through tests, our metrics will bloom,
In the garden of code, there's always more room!" 🌼
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Chores
benchee
library as a development dependency to enhance performance benchmarking capabilities.