{"id":15101755,"url":"https://github.com/imertz/bun-sqlite-benchmark","last_synced_at":"2026-01-18T10:28:05.994Z","repository":{"id":253272107,"uuid":"842655846","full_name":"imertz/bun-sqlite-benchmark","owner":"imertz","description":"A high-performance  benchmark tool built with Bun:sqlite, designed to measure and compare the speed of insert and select operations on large datasets.","archived":false,"fork":false,"pushed_at":"2024-08-15T15:23:27.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T11:14:09.679Z","etag":null,"topics":["benchmark","bun","sqlite3"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/imertz.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}},"created_at":"2024-08-14T19:42:40.000Z","updated_at":"2024-08-15T16:30:42.000Z","dependencies_parsed_at":"2024-08-15T17:15:12.166Z","dependency_job_id":"6dc940f3-20a0-4275-9c50-f9ddbfdeb36c","html_url":"https://github.com/imertz/bun-sqlite-benchmark","commit_stats":null,"previous_names":["imertz/bun-sqlite-benchmark"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imertz/bun-sqlite-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imertz%2Fbun-sqlite-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imertz%2Fbun-sqlite-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imertz%2Fbun-sqlite-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imertz%2Fbun-sqlite-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imertz","download_url":"https://codeload.github.com/imertz/bun-sqlite-benchmark/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imertz%2Fbun-sqlite-benchmark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534387,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T10:13:46.436Z","status":"ssl_error","status_checked_at":"2026-01-18T10:13:11.045Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["benchmark","bun","sqlite3"],"created_at":"2024-09-25T18:29:32.418Z","updated_at":"2026-01-18T10:28:05.978Z","avatar_url":"https://github.com/imertz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bun:sqlite Benchmark\n\nThis project is a performance benchmark for SQLite operations using Bun, a fast all-in-one JavaScript runtime. It measures the speed of insert and select operations, with and without an index, on a large number of records.\n\n## Features\n\n- Inserts and selects a large number of records (default: 1,000,000)\n- Compares performance with and without an index on the email column\n- Uses worker threads for parallel processing\n- Provides detailed performance metrics\n\n## Prerequisites\n\n- [Bun](https://bun.sh) v1.1.24 or later\n\n## Installation\n\n1. Clone this repository:\n\n   ```bash\n   git clone https://github.com/yourusername/bun-sqlite-benchmark.git\n   cd bun-sqlite-benchmark\n   ```\n\n## Usage\n\nTo run the benchmark:\n\n```bash\nbun run benchmark\n```\n\nThis will execute the benchmark and display the results in the console.\n\n## Configuration\n\nYou can modify the following constants in `bun-sqlite-benchmark.js` to adjust the benchmark parameters:\n\n- `NUM_RECORDS`: Number of records to insert (default: 1,000,000)\n- `NUM_WORKERS`: Number of worker threads to use (default: number of CPU cores)\n- `BATCH_SIZE`: Number of records to insert in a single transaction (default: 100)\n- `LOG_INTERVAL`: Interval for logging progress (default: 100,000 records)\n- `MAX_SELECT_TIME`: Maximum time for select operations (default: 10 seconds)\n\n## Results\n\nThe benchmark will output performance metrics for insert and select operations, both with and without an index on the email column. It will also calculate the speedup percentage for select operations when using an index.\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n## License\n\nThis project is open source and available under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimertz%2Fbun-sqlite-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimertz%2Fbun-sqlite-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimertz%2Fbun-sqlite-benchmark/lists"}