{"id":26244704,"url":"https://github.com/blacha/s3-response-time","last_synced_at":"2025-06-14T18:04:36.610Z","repository":{"id":280536932,"uuid":"863300765","full_name":"blacha/s3-response-time","owner":"blacha","description":"benchmark s3 response times across regions","archived":false,"fork":false,"pushed_at":"2025-03-04T00:29:31.000Z","size":123,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-04T01:24:42.185Z","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/blacha.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-09-26T04:11:37.000Z","updated_at":"2025-03-04T00:29:34.000Z","dependencies_parsed_at":"2025-03-04T01:24:45.114Z","dependency_job_id":"fae20386-cab9-4543-ac32-4a30055f1d04","html_url":"https://github.com/blacha/s3-response-time","commit_stats":null,"previous_names":["blacha/s3-response-time"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fs3-response-time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fs3-response-time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fs3-response-time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/blacha%2Fs3-response-time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/blacha","download_url":"https://codeload.github.com/blacha/s3-response-time/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243396904,"owners_count":20284432,"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":"2025-03-13T11:32:31.220Z","updated_at":"2025-03-13T11:32:32.372Z","avatar_url":"https://github.com/blacha.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AWS s3 response time checker\n\nDeploy a lambda function into each region and check lambda -\u003e s3 response time when querying random 64KB chunks from a 10MB file\n\n## Summary\n\n### Response by region\n\n![Response time by region](./response-time-region.webp)\n\n### Response by request size\n\n![Response time by request size](./response-time-size.webp)\n\n### Other tests\n\nComparing lambda memory allocation\n\n| Env    | Language        | Read Size | Approx duration |\n| ------ | --------------- | --------- | --------------- |\n| Lambda | NodeJs 128mb    | 64KB      | 100ms           |\n| Lambda | NodeJs 256mb    | 64KB      | 60ms            |\n| Lambda | NodeJs 512mb    | 64KB      | 30ms            |\n| Lambda | NodeJs \u003e=1024mb | 64KB      | 20ms            |\n| Lambda | Go \u003e=128mb      | 64KB      | 20ms            |\n\n\nWith VPC Endpoints\n\n| Env    | Language              | Read Size | Approx duration |\n| ------ | --------------------- | --------- | --------------- |\n| Lambda | NodeJs + VPC endpoint | 64KB      | 20ms            |\n| Lambda | Go + VPC endpoint     | 64KB      | 20ms            |\n| EKS    | NodeJs + VPC Endpoint | 64KB      | 20ms            |\n\n\u003e ARM vs x86 did not make any difference for the response times\n\nComparing file request size\n\n| Env    | Language        | Read Size | Approx duration |\n| ------ | --------------- | --------- | --------------- |\n| Lambda | NodeJs 2048mb   | 32KB      | 22ms            |\n| Lambda | NodeJs 2048mb   | 64KB      | 22ms            |\n| Lambda | NodeJs 2048mb   | 128KB     | 22ms            |\n| Lambda | NodeJs 2048mb   | 256KB     | 24ms            |\n| Lambda | NodeJs 2048mb   | 512KB     | 25ms            |\n| Lambda | NodeJs 2048mb   | 1024KB    | 28ms            |\n| Lambda | NodeJs 2048mb   | 2048KB    | 35ms            |\n\n\n## Run local\n\n```\nexport BUCKET_NAME=some-test-bucket\nnpx tsx src/bin.ts\n```\n\n## Deploy\n\n```\nnpx cdk --app \"npx tsx src/cdk.ts\" deploy --all\n```\n\n## Invoke\n\n```\nwget https://......lambda-url.us-east-1.on.aws/\n```\n\nTime in MS to read the chunk\n\n```javascript\n{\n  // Where the file was read from including its size\n  \"source\": {\n    \"fileName\": \"100m.bin\",\n    \"size\": 104857600\n  },\n  // Response times of warmups\n  \"warmup\": [121.85784, 31.196322, 24.152334],\n  // Response times when reading \n  \"reads\": {\n    \"32\": [15.0719425, 15.2015945, ..],\n    \"64\": [14.65914101, 15.251433, 17.85522, ...],\n    \"128\": [16.938128, 17.03634, 18.418076, 18.624904, ...],\n    \"256\": [17.116748, 17.638852,  ...],\n    \"512\": [17.8666437, 18.246256, ...],\n    \"768\": [20.73919101, 20.75183, ...],\n    \"1024\": [20.9210934, 21.932467, 22.0450661...],\n    \"2048\": [26.991036, 27.46798201, 29.579123, ..]\n  },\n  // Order the reads were run in, randomized every run\n  \"readOrder\": [128, 2048, 768, 64, 256, 32, 1024, 512]\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacha%2Fs3-response-time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fblacha%2Fs3-response-time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fblacha%2Fs3-response-time/lists"}