jonmagic / docquery

Document query interface for plaintext documents stored in directories on a filesystem.
3 stars 2 forks source link

Add performance benchmarks #8

Closed jonmagic closed 8 years ago

jonmagic commented 9 years ago

Preparing to try new search engines per https://github.com/seongjaelee/nvatom/issues/35

~/Projects/docquery (benchmark)!🐑 💨 ✨  npm test

> docquery@1.1.0 test /Users/jonmagic/Projects/docquery
> babel src --out-dir lib; mocha --compilers js:mocha-traceur test/*_test.js

src/cli.js -> lib/cli.js
src/docquery.js -> lib/docquery.js

  DocQuery
    #search
      ✓ returns search result for query
      ✓ returns new documents in search results (197ms)
      ✓ does not return document in search results after it has been deleted (322ms)
    #documents
      ✓ returns all documents
      ✓ returns documents sorted newest first
      ✓ returns new documents as they are added (192ms)
      ✓ does not return document after it has been deleted
      ✓ ignores files in subfolders when recursive is false (213ms)
    Benchmarks
      ✓ starts up in less than 5 seconds (4441ms)
      ✓ returns search results in less than 5 seconds (4989ms)

/cc @seongjaelee

jonmagic commented 9 years ago

I'm not going to merge this because I don't really want to include a corpus with my npm package. Not sure how to handle this long term.