Skip to content

Commit

Permalink
perf: improve benchmark script
Browse files Browse the repository at this point in the history
Signed-off-by: mateonunez <mateonunez95@gmail.com>
  • Loading branch information
mateonunez committed Oct 14, 2023
1 parent ebe516c commit ede8f38
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion benchmark/orama-cache.mjs → benchmark/orama-cache.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import cronometro from "cronometro"
import {create, insertMultiple, search} from "@orama/orama"
import {createOramaCache} from "../dist/cjs/index.js"
import {createOramaCache} from "../dist/esm/index.js"
import events from "./dataset/events.mjs"

const db = await create({
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"build:browser": "esbuild --bundle --sourcemap --target=es2019 --format=esm --outfile=./dist/client/index.js ./src/index.ts",
"build": "rimraf ./dist && npm run build:esm && npm run build:cjs && npm run build:browser",
"prepare": "husky install",
"benchmark": "node --no-warnings ./benchmark/orama-cache.mjs",
"benchmark": "node --no-warnings ./benchmark/orama-cache.js",
"redis": "docker run --rm -p 6379:6379 redis redis-server"
},
"keywords": [
Expand Down

0 comments on commit ede8f38

Please sign in to comment.