Skip to content
trie benchmark for the "longest prefix match" problem
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


trie benchmark for the "longest prefix match" problem.

To generate time performance data (install pytrie, trie, datrie, SuffixTree or remove them from comparison):

$ ./ --prefix nosw3_

To plot the data (install numpy/matplotlib):

$ --plot-only --prefix nosw3_


Or to combine both with a auto-generated date-based prefix:

$ ./

See results Performance comparison suffixtree vs. pytrie vs. trie vs. datrie vs. startswith -functions.


The code for longest_match* functions in is taken from the SO question and its answers. The rest is also CC BY-SA 3.0

Something went wrong with that request. Please try again.