Skip to content

Commit

Permalink
add stored fields to the memory benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaong committed Aug 28, 2019
1 parent 08ae688 commit 0b00b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion benchmarks/memory.js
Expand Up @@ -10,7 +10,7 @@ const bytesToMb = (bytes) => {
}

const memory = (docs) => {
const miniSearch = new MiniSearch({ fields: ['txt'] })
const miniSearch = new MiniSearch({ fields: ['txt'], storeFields: ['txt'] })

const heapBefore = heapSize()
miniSearch.addAll(docs)
Expand Down

0 comments on commit 0b00b09

Please sign in to comment.