1
0
mirror of https://github.com/nextapps-de/flexsearch.git synced 2025-09-09 05:30:44 +02:00

update libs to latest

This commit is contained in:
Thomas Wilkerling
2025-03-05 13:00:42 +01:00
parent a6865b01c3
commit 0067587019
14 changed files with 145 additions and 115 deletions

View File

@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Benchmark</title>
<title>Benchmark: flexsearch-0.7.0</title>
</head>
<body>
<h2>Benchmark: flexsearch-0.7.0</h2><hr/>

View File

@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Benchmark</title>
<title>Benchmark: flexsearch-0.8.0</title>
</head>
<body>
<h2>Benchmark: flexsearch-0.8.0</h2><hr/>

View File

@@ -2,13 +2,13 @@
<html>
<head>
<meta charset="utf-8">
<title>Benchmark</title>
<title>Benchmark: fuse-7.1.0</title>
</head>
<body>
<h2>Benchmark: fuse-3.3.0</h2><hr/>
<h2>Benchmark: fuse-7.1.0</h2><hr/>
<h4>Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)</h4>
<div id="result" style="white-space: pre; font-family: Monospaced, monospace"></div>
<script src="https://cdn.jsdelivr.net/gh/krisk/Fuse@3.3.0/dist/fuse.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/krisk/Fuse@v7.1.0/dist/fuse.min.js"></script>
<script type="module">
import { suite } from "../../bench.js";

View File

@@ -2,13 +2,13 @@
<html>
<head>
<meta charset="utf-8">
<title>Benchmark</title>
<title>Benchmark: js-search-2.0.1</title>
</head>
<body>
<h2>Benchmark: js-search-1.4.2</h2><hr/>
<h2>Benchmark: js-search-2.0.1</h2><hr/>
<h4>Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)</h4>
<div id="result" style="white-space: pre; font-family: Monospaced, monospace"></div>
<script src="https://cdn.jsdelivr.net/npm/js-search@1.4.2/dist/umd/js-search.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/js-search@2.0.1/dist/umd/js-search.min.js"></script>
<script type="module">
import { suite } from "../../bench.js";

View File

@@ -2,13 +2,13 @@
<html>
<head>
<meta charset="utf-8">
<title>Benchmark</title>
<title>Benchmark: lunr-2.3.9</title>
</head>
<body>
<h2>Benchmark: lunr-2.3.5</h2><hr/>
<h2>Benchmark: lunr-2.3.9</h2><hr/>
<h4>Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)</h4>
<div id="result" style="white-space: pre; font-family: Monospaced, monospace"></div>
<script src="https://cdn.jsdelivr.net/npm/lunr@2.3.5/lunr.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/lunr@2.3.9/lunr.min.js"></script>
<script type="module">
import { suite } from "../../bench.js";

View File

@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Benchmark</title>
<title>Benchmark: lyra-0.2.4</title>
</head>
<body>
<h2>Benchmark: lyra-0.2.4</h2><hr/>

View File

@@ -2,13 +2,13 @@
<html>
<head>
<meta charset="utf-8">
<title>Benchmark</title>
<title>Benchmark: minisearch-7.1.2</title>
</head>
<body>
<h2>Benchmark: minisearch</h2><hr/>
<h2>Benchmark: minisearch-7.1.2</h2><hr/>
<h4>Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)</h4>
<div id="result" style="white-space: pre; font-family: Monospaced, monospace"></div>
<script src="https://cdn.jsdelivr.net/npm/minisearch@3.0.2/dist/umd/index.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/minisearch@7.1.2/dist/umd/index.min.js"></script>
<script type="module">
import { suite } from "../../bench.js";

52
test/orama/index.html Normal file
View File

@@ -0,0 +1,52 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Benchmark: orama-3.1.1</title>
</head>
<body>
<h2>Benchmark: orama-3.1.1</h2><hr/>
<h4>Indexed Text: "Gulliver's Travels" (Swift Jonathan 1726)</h4>
<div id="result" style="white-space: pre; font-family: Monospaced, monospace"></div>
<script type="module">
import { suite } from "../../bench.js";
import { create, search, insert } from "https://cdn.jsdelivr.net/npm/@orama/orama@v3.1.1/+esm";
let index;
suite["lyra"] = {
init: function(){
index = create({
schema: {
_id: "number",
content: "string"
},
});
},
add: function(data){
for(let i = 0, len = data.length; i < len; i++){
insert(index, {
_id: i,
content: data[i]
});
}
},
query: function(query){
const searchResult = search(index, {
term: query,
properties: ["content"]
});
return searchResult.hits.map(hit => hit._id);
}
};
</script>
</body>
</html>

View File

@@ -2,7 +2,7 @@
<html>
<head>
<meta charset="utf-8">
<title>Benchmark</title>
<title>Benchmark: wade-0.3.3</title>
</head>
<body>
<h2>Benchmark: wade-0.3.3</h2><hr/>