mirror of
https://github.com/nextapps-de/flexsearch.git
synced 2025-08-30 01:00:11 +02:00
ADD memory comparison chart
This commit is contained in:
25
README.md
25
README.md
@@ -21,8 +21,9 @@ FlexSearch also provides you a non-blocking asynchronous processing model as wel
|
|||||||
<a href="#installation">Installation Guide</a>  •  <a href="#api">API Reference</a>  •  <a href="#profiles">Example Options</a>  •  <a href="#builds">Custom Builds</a>
|
<a href="#installation">Installation Guide</a>  •  <a href="#api">API Reference</a>  •  <a href="#profiles">Example Options</a>  •  <a href="#builds">Custom Builds</a>
|
||||||
|
|
||||||
Comparison:
|
Comparison:
|
||||||
- <a href="https://jsperf.com/compare-search-libraries" target="_blank">Library Benchmarks</a>
|
- <a href="https://jsperf.com/compare-search-libraries" target="_blank">Library Query Benchmarks</a>
|
||||||
- <a href="https://rawgit.com/nextapps-de/flexsearch/master/test/matching.html" target="_blank">Library Relevance Scoring</a>
|
- <a href="https://rawgit.com/nextapps-de/flexsearch/master/test/matching.html" target="_blank">Library Relevance Scoring</a>
|
||||||
|
- <a href="#consumption">Library Memory Consumption</a>
|
||||||
|
|
||||||
Supported Platforms:
|
Supported Platforms:
|
||||||
- Browser
|
- Browser
|
||||||
@@ -83,6 +84,7 @@ Workers get its own dedicated memory. Especially for larger indexes, web worker
|
|||||||
|
|
||||||
__Note:__ It is slightly faster to use no web worker when the index or query isn't too big (index < 500,000 words, query < 25 words).
|
__Note:__ It is slightly faster to use no web worker when the index or query isn't too big (index < 500,000 words, query < 25 words).
|
||||||
|
|
||||||
|
<!--
|
||||||
#### Compare BulkSearch vs. FlexSearch
|
#### Compare BulkSearch vs. FlexSearch
|
||||||
|
|
||||||
<table>
|
<table>
|
||||||
@@ -134,6 +136,7 @@ __Note:__ It is slightly faster to use no web worker when the index or query isn
|
|||||||
<td>Yes</td>
|
<td>Yes</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
-->
|
||||||
|
|
||||||
<a name="installation"></a>
|
<a name="installation"></a>
|
||||||
## Installation
|
## Installation
|
||||||
@@ -894,17 +897,35 @@ The required memory for the index depends on several options:
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<a name="consumption"></a>
|
||||||
|
#### Compare Memory Consumption
|
||||||
|
|
||||||
|
The book "Gulliver's Travels" (Swift Jonathan 1726) was used for this test.
|
||||||
|
|
||||||
|
<br>
|
||||||
|
<img src="https://rawgithub.com/nextapps-de/flexsearch/master/doc/memory-comparison.svg">
|
||||||
|
|
||||||
<a name="profiles"></a>
|
<a name="profiles"></a>
|
||||||
## Built-in Profiles
|
## Built-in Profiles
|
||||||
|
|
||||||
You can pass a built-in profile during creation/initialization. They have these following settings:
|
You can pass a built-in profile during creation/initialization. They have these following settings:
|
||||||
|
|
||||||
|
Standard profile: __"default"__
|
||||||
|
```js
|
||||||
|
{
|
||||||
|
encode: "icase",
|
||||||
|
mode: "forward"
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
Memory-optimized profile: __"memory"__
|
Memory-optimized profile: __"memory"__
|
||||||
```js
|
```js
|
||||||
{
|
{
|
||||||
encode: "extra",
|
encode: "extra",
|
||||||
mode: "strict",
|
mode: "strict",
|
||||||
threshold: 7
|
threshold: 7,
|
||||||
|
stemmer: true,
|
||||||
|
filter: true
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
3
doc/memory-comparison.svg
Normal file
3
doc/memory-comparison.svg
Normal file
File diff suppressed because one or more lines are too long
After Width: | Height: | Size: 30 KiB |
Reference in New Issue
Block a user