{"id":18830131,"url":"https://github.com/brycedorn/deno-node-redis-postgres-benchmarks","last_synced_at":"2026-04-09T12:38:48.574Z","repository":{"id":65702207,"uuid":"597468561","full_name":"brycedorn/deno-node-redis-postgres-benchmarks","owner":"brycedorn","description":"Benchmarking Redis and Postgres performance for Deno vs a combination of Deno and Node.","archived":false,"fork":false,"pushed_at":"2023-02-05T12:00:35.000Z","size":34,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-29T15:41:58.073Z","etag":null,"topics":["benchmark","benchmarking","deno","nodejs","redis","redis-client","supabase-js"],"latest_commit_sha":null,"homepage":"","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/brycedorn.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}},"created_at":"2023-02-04T16:43:55.000Z","updated_at":"2023-02-07T06:37:26.000Z","dependencies_parsed_at":"2023-02-18T23:30:32.024Z","dependency_job_id":null,"html_url":"https://github.com/brycedorn/deno-node-redis-postgres-benchmarks","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/brycedorn/deno-node-redis-postgres-benchmarks","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brycedorn%2Fdeno-node-redis-postgres-benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brycedorn%2Fdeno-node-redis-postgres-benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brycedorn%2Fdeno-node-redis-postgres-benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brycedorn%2Fdeno-node-redis-postgres-benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brycedorn","download_url":"https://codeload.github.com/brycedorn/deno-node-redis-postgres-benchmarks/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brycedorn%2Fdeno-node-redis-postgres-benchmarks/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263480898,"owners_count":23473165,"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":["benchmark","benchmarking","deno","nodejs","redis","redis-client","supabase-js"],"created_at":"2024-11-08T01:47:56.505Z","updated_at":"2025-12-30T22:17:32.836Z","avatar_url":"https://github.com/brycedorn.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deno vs Node Redis/Postgres benchmarking\n\nAs part of a dev.to [article](https://dev.to/bryce/when-not-to-use-deno-5bnm).\n\n## Results\n\nResults from running on Apple M1 Max 64GB Ventura 13.1 from Amsterdam with both hosted services in `eu-west-1`:\n\n| Uses node? | Benchmark | Time (avg) | (min … max) | p75 | p99 |\n| --- | --- | --- | --- | --- | --- |\n| no | Deno -\u003e Redis | 65.06 ms/iter | (792 ns … 114.68 ms) | 111.41 ms | 114.68 ms |\n| no | Deno -\u003e Postgres | **42.98 ms/iter** | (916 ns … 89.29 ms) | 79.8 ms | 89.29 ms |\n| yes | Deno -\u003e Node -\u003e Redis | **34.79 ms/iter** | (28.4 ms … 41.7 ms) | 36.53 ms | 41.7 ms |\n| yes | Deno -\u003e Node -\u003e Postgres | 88.24 ms/iter | (667 ns … 205.44 ms) | 160.8 ms | 205.44 ms |\n\n## Running locally\n\n#### Prerequisites\n\n - Deno \u003e= v1.30.2.\n - V8 \u003e= v10.9.194.5.\n - TS \u003e= v4.9.4.\n - Node \u003e= v16.15.0.\n - Redis instance, I'm using [Redis Enterprise Cloud](https://redis.com/redis-enterprise-cloud/overview/) (has free tier).\n - Postgres instance, I'm using [supabase](https://supabase.com/) (has free tier).\n   - This example uses `hex` as the lookup key but this is simple to replace for your table.\n\nOnce you have the above you can then initialize your environment:\n\n```\ncp .env.example .env\n```\n\nThen set the values to your credentials.\n\n### Deno\n\nFirst switch to `deno` directory:\n\n```\ncd deno\n```\n\nTo run benchmarks for Redis:\n\n```\ndeno task deno-redis\n```\n\nTo run benchmarks for Postgres:\n\n```\ndeno task deno-postgres\n```\n\n### Deno + Node\n\nFirst switch to `node` directory, install dependencies and start the express server:\n\n```\ncd deno\nnpm i\nnpm run redis_bench\n```\n\nThen in another tab run the benchmark:\n\n```\ncd deno\ndeno task deno-node-redis\n```\n\nTo run benchmarks for Postgres, follow same steps as above but instead start express server for Postgres:\n\n```\nnpm run postgres_bench\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrycedorn%2Fdeno-node-redis-postgres-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrycedorn%2Fdeno-node-redis-postgres-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrycedorn%2Fdeno-node-redis-postgres-benchmarks/lists"}