Implement sequential, lock-based and lock-free concurrent data structures below:
Stack | Queue | Linked List | AVL Tree | HashTable | |
---|---|---|---|---|---|
Sequential | Done | Done | Done | Done | |
Lock-based | Done | Done | Done | ||
Lock-free | Done | Done |
You can run bench like this:
cargo install cargo-criterion
# default feature has accumulating stats on available structure.
cargo criterion --bench {bench_name} --no-default-features
Available Benches:
Several cds has its own statistics. Use it by printing on test.
cargo install flamegraph
sudo cargo flamegraph --no-default-features --test tests -- {test_name}