adaptive-radix-tree icon indicating copy to clipboard operation
adaptive-radix-tree copied to clipboard

benchmark missing space / mem used

Open hiqsociety opened this issue 3 years ago • 3 comments

possible to include the benchmark of space / mem used?

hiqsociety avatar Jul 11 '21 07:07 hiqsociety

hi @hiqsociety, would a make benchmark-mem command solve your needs? The command would run a file using valgrind massif. For the benchmark itself I would test two scenarios of interest: 1) uniformly distributed keys and 2) zipfian keys. I would fill the tree with nullptr values to only measure data structure overhead.

Would that solve your use case? Do you have any other parameter (dependent variable) wishes for the benchmark?

rafaelkallis avatar Jul 24 '21 20:07 rafaelkallis

yes, that'll be great.

by the way, is adaptive radix tree better than patricia trie? (compressed radix)

superdolt avatar Sep 02 '21 01:09 superdolt

by the way, is adaptive radix tree better than patricia trie? (compressed radix)

I can't give you a clear answer, it depends, define your use-case/workload and run a benchmark.

You can think of ART as patricia + node compression. If you want to read I would suggest you go over the original paper https://db.in.tum.de/~leis/papers/ART.pdf

It also strongly depends on the implementation. Not every ART implementation will have the same performance.

Also "better" might not always mean "more performance". My implementation also tries to be developer friendly and sometimes this comes at a performance cost.

rafaelkallis avatar Sep 05 '21 15:09 rafaelkallis