From 2e7eeeb7d548015d6b2869fa003082eb7a01a3ce Mon Sep 17 00:00:00 2001 From: Thomas Wilkerling Date: Mon, 3 Oct 2022 13:00:46 +0200 Subject: [PATCH] add lyra to benchmark comparison --- bench/index.js | 2 +- bench/match.js | 2 +- bench/test/lyra/index.html | 52 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 54 insertions(+), 2 deletions(-) create mode 100644 bench/test/lyra/index.html diff --git a/bench/index.js b/bench/index.js index 26737bb..2adf063 100644 --- a/bench/index.js +++ b/bench/index.js @@ -24,7 +24,7 @@ /*"flexsearch-0.6.2", "flexsearch-0.6.3",*/ "minisearch", "flexsearch-0.7.0", "bm25", "bulksearch", "elasticlunr", "fuzzysearch", "js-search", "jsii", - "fuse", "lunr", "wade" + "fuse", "lunr", "wade", "lyra" ]); list.render(lib); diff --git a/bench/match.js b/bench/match.js index e5ab22c..7b7f920 100644 --- a/bench/match.js +++ b/bench/match.js @@ -11,7 +11,7 @@ const lib = encode ? [ /*"flexsearch-0.6.2", "flexsearch-0.6.3",*/ "flexsearch-0.7.0-match", "bm25", "bulksearch-match", "elasticlunr", "fuzzysearch", "js-search", "jsii", - "minisearch-match", "fuse-match", "lunr", "wade" + "minisearch-match", "fuse-match", "lunr", "wade", "lyra" ]; let promise; diff --git a/bench/test/lyra/index.html b/bench/test/lyra/index.html new file mode 100644 index 0000000..c656723 --- /dev/null +++ b/bench/test/lyra/index.html @@ -0,0 +1,52 @@ + + + + + Benchmark + + +

Benchmark: lyra-0.2.4


+

Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)

+
+ + +