All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
-
Set global
Counter
s at runtime using:Divan::counter
Divan::items_count
Divan::bytes_count
Divan::chars_count
--items-count N
CLI arg--bytes-count N
CLI arg--chars-count N
CLI argDIVAN_ITEMS_COUNT=N
env varDIVAN_BYTES_COUNT=N
env varDIVAN_CHARS_COUNT=N
env var
-
From<C>
forItemsCount
,BytesCount
, andCharsCount
whereC
isu8
–u64
orusize
(viaCountUInt
internally). This provides an alternative to thenew
constructor. -
BytesCount::of_many
method similar toBytesCount::of
, but with a parameter by which to multiply the size of the type. -
BytesCount::u64
,BytesCount::f64
, and similar methods based onBytesCount::of_many
.
- Now calling
black_box
at the end of the benchmark loop when deferring use of inputs orDrop
of outputs.
0.1.2 - 2023-10-28
- Multi-threaded benchmarks being spread across CPUs, instead of pinning the main thread to CPU 0 and having all threads inherit the main thread's affinity.
0.1.1 - 2023-10-25
- Fix using LLD as linker for Linux by using the same pre-
main
approach as Windows.
Initial release. See blog post.