{"id":26125976,"url":"https://github.com/powersync-ja/react-native-database-benchmarks","last_synced_at":"2026-06-05T05:31:40.758Z","repository":{"id":247814382,"uuid":"768171740","full_name":"powersync-ja/react-native-database-benchmarks","owner":"powersync-ja","description":null,"archived":false,"fork":false,"pushed_at":"2024-07-18T12:27:32.000Z","size":1615,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-12-19T13:46:37.888Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/powersync-ja.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-03-06T15:47:38.000Z","updated_at":"2024-07-18T12:27:33.000Z","dependencies_parsed_at":"2024-07-15T15:23:05.621Z","dependency_job_id":null,"html_url":"https://github.com/powersync-ja/react-native-database-benchmarks","commit_stats":null,"previous_names":["powersync-ja/react-native-database-benchmarks"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/powersync-ja/react-native-database-benchmarks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powersync-ja%2Freact-native-database-benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powersync-ja%2Freact-native-database-benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powersync-ja%2Freact-native-database-benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powersync-ja%2Freact-native-database-benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/powersync-ja","download_url":"https://codeload.github.com/powersync-ja/react-native-database-benchmarks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/powersync-ja%2Freact-native-database-benchmarks/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33932040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-05T02:00:06.157Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2025-03-10T17:27:27.982Z","updated_at":"2026-06-05T05:31:40.739Z","avatar_url":"https://github.com/powersync-ja.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Native Database Benchmarks\n\nA project to compare performance between various databases on React Native.\n\n## Install dependencies\n\nYou can install dependencies using yarn\n\n- `yarn install`\n\n## Generate Android and iOS native bindings\n\n- npx expo run:android\n- npx expo run:ios\n\n## Running the project\n\nPlease ensure you have generated the native bindings before running the app.\n\n## Android\n\n1. Open the `android` directory in Android Studio.\n2. It will take some time to sync and build gradle dependencies.\n3. Select `Build` in the top menu \u003e Select `Build Variant`.\n4. Change the `:app` active build variant to `release`.\n5. Run the app using the default configuration.\n6. Click on the `Logcat` option in the bottom tool window (under the Run button).\n7. You can use the `package:mine` filter in the filter bar to filter the results.\n8. Once all the benchmarks are done running, it will print out the results in the log for all the tests in a CSV format.\n\n## iOS\n\n1. Open the `ios/reactnativedatabasebenchmarks.xcworkspace` in xcode.\n2. Edit the scheme and choose the `Release` build configuration for the run.\n3. Click the play button to run the app.\n\n## Benchmark limitations\n\n1. Does not measure UI performance during database operations yet.\n2. Only a single run of each test is recorded.\n3. No UI yet - all results are logged to the console.\n4. Does not test concurrent operations.\n\n### OP SQLite\n\nOP SQLite can be run using a performance mode fla set in the `package.json` file. Using the following commands to set this up for the project. This must be done before the project is built.\n\n`1` is thread unsafe, you should only use transactions but will be the fastest option for single operations. `2` is thread-safe and marginally slower.\n\n```\n\"op-sqlite\": {\n    \"performanceMode\": \"2\"\n}\n```\n\n### Expo-sqlite\n\nExpo sqlite does not support batching of queries out the box. Prepared statements are used to achieve functionality simillar to batching.\n\n## Running the original react-native-quick-sqlite tests\n\n#### Steps to setup the library:\n\n- `yarn remove @powersync/react-native-quick-sqlite`\n- `yarn add react-native-quick-sqlite`\n- From Expo 51 onwards a patch is required to compile RNQS `yarn patch-package`\n- Comment out the code in the file referencing PowersyncSqliteAdapter which includes `adapters/powersync-sqlite-adapter.ts`. Also comment out lines 6, 23 and 27 in `App.tsx`.\n- Uncomment out the code referencing react-native-quick-sqlite (line 6 onwards) in `adapters/rn-quick-sqlite-adapter.ts` and lines 13, 24 and 29 in `App.tsx`.\n- You can follow the inverse of the above steps to test the powersync fork of react-native-quick-sqlite\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowersync-ja%2Freact-native-database-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpowersync-ja%2Freact-native-database-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpowersync-ja%2Freact-native-database-benchmarks/lists"}