1
0
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:
Thomas Wilkerling
2018-03-21 18:31:47 +01:00
parent c9adfc12ae
commit 152aa43d69
2 changed files with 26 additions and 2 deletions

View File

@@ -21,8 +21,9 @@ FlexSearch also provides you a non-blocking asynchronous processing model as wel
<a href="#installation">Installation Guide</a> &ensp;&bull;&ensp; <a href="#api">API Reference</a> &ensp;&bull;&ensp; <a href="#profiles">Example Options</a> &ensp;&bull;&ensp; <a href="#builds">Custom Builds</a> <a href="#installation">Installation Guide</a> &ensp;&bull;&ensp; <a href="#api">API Reference</a> &ensp;&bull;&ensp; <a href="#profiles">Example Options</a> &ensp;&bull;&ensp; <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
} }
``` ```

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 30 KiB