{"id":17377403,"url":"https://github.com/pradel/mongobench-nodejs","last_synced_at":"2025-03-27T20:21:39.077Z","repository":{"id":71415681,"uuid":"122329397","full_name":"pradel/mongobench-nodejs","owner":"pradel","description":"Benchmark various MongoDB ORM for Nodejs","archived":false,"fork":false,"pushed_at":"2018-02-21T15:13:16.000Z","size":14,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T22:43:56.744Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pradel.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-02-21T11:45:08.000Z","updated_at":"2018-02-21T14:03:13.000Z","dependencies_parsed_at":"2023-03-29T20:02:15.501Z","dependency_job_id":null,"html_url":"https://github.com/pradel/mongobench-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fmongobench-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fmongobench-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fmongobench-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pradel%2Fmongobench-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pradel","download_url":"https://codeload.github.com/pradel/mongobench-nodejs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245917022,"owners_count":20693450,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-16T05:05:57.376Z","updated_at":"2025-03-27T20:21:39.046Z","avatar_url":"https://github.com/pradel.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mongobench-nodejs\n\nBenchmark various MongoDB ORM for Nodejs\n\n## Benchmark\n\n* [mongoose](https://github.com/Automattic/mongoose)\n* [mongolass](https://github.com/mongolass/mongolass)\n* [mongorito](https://github.com/vadimdemedes/mongorito)\n* [native](https://github.com/mongodb/node-mongodb-native)\n\n## Get started\n\n* You must have a local mongodb instance running\n* Install dependencies `yarn install`\n* Run the test `yarn start`\n\nTests available:\n\n* read.js (findOne, find)\n* delete.js (deleteOne, deleteMany)\n* insert.js (insert)\n\n## Results\n\nMacBook Pro (13-inch, 2017) 16GB 3,1GHz:\n\n```\ninsert - mongoose x 1,691 ops/sec ±6.94% (72 runs sampled)\nsave method - mongoose x 1,851 ops/sec ±10.76% (65 runs sampled)\ninsert - mongolass x 2,732 ops/sec ±8.33% (71 runs sampled)\ninsert - mongorito x 3,264 ops/sec ±3.84% (72 runs sampled)\ninsert - native x 4,909 ops/sec ±2.84% (75 runs sampled)\nFastest is insert - native\nSlowest is insert - mongoose\n\ndeleteOne - mongoose x 5,938 ops/sec ±3.05% (72 runs sampled)\ndeleteOne - mongolass x 4,461 ops/sec ±2.75% (71 runs sampled)\ndeleteOne - native x 6,655 ops/sec ±2.37% (78 runs sampled)\ndeleteMany - mongoose x 6,262 ops/sec ±1.72% (76 runs sampled)\ndeleteMany - mongolass x 4,252 ops/sec ±2.80% (76 runs sampled)\ndeleteMany - mongorito x 266 ops/sec ±172.80% (72 runs sampled)\ndeleteMany - native x 6,242 ops/sec ±2.59% (77 runs sampled)\nFastest is deleteOne - native\nSlowest is deleteMany - mongorito\n\nfindOne - mongoose x 3,934 ops/sec ±4.85% (75 runs sampled)\nfindOne lean - mongoose x 4,962 ops/sec ±1.61% (78 runs sampled)\nfindOne - mongolass x 3,654 ops/sec ±4.43% (73 runs sampled)\nfindOne - mongorito x 3,427 ops/sec ±3.42% (74 runs sampled)\nfindOne - native x 5,435 ops/sec ±2.49% (75 runs sampled)\nfind - mongoose x 129 ops/sec ±4.21% (78 runs sampled)\nfind lean - mongoose x 310 ops/sec ±2.62% (72 runs sampled)\nfind - mongolass x 238 ops/sec ±7.34% (60 runs sampled)\nfind - mongorito x 43.49 ops/sec ±1.88% (69 runs sampled)\nfind - native x 244 ops/sec ±6.88% (60 runs sampled)\nFastest is findOne - native\nSlowest is find - mongorito\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradel%2Fmongobench-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpradel%2Fmongobench-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpradel%2Fmongobench-nodejs/lists"}