Indexing a whole book in a trie, and comparing search times with those in a plain JS object.
There are approximately 11.000 keys. Search times come out as follows:
|NUM.SEARCHES||SEARCH TIME IN TRIE||SEARCH TIME IN OBJECT|
clone the repo
mocha spec/*.js --watch
Test file spec/tries_test_COMPARISON_TESTS.js is the only one immediately executable.
In order to run the other tests, it is first necessary to remove the keyword "only" from the comparison test file.