{"id":18917784,"url":"https://github.com/tus/load-tester","last_synced_at":"2026-03-12T00:30:15.578Z","repository":{"id":229930140,"uuid":"774231147","full_name":"tus/load-tester","owner":"tus","description":"A load testing tool for resumable upload servers","archived":false,"fork":false,"pushed_at":"2024-03-19T07:16:33.000Z","size":47,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":6,"default_branch":"main","last_synced_at":"2024-12-31T15:34:50.515Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tus.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}},"created_at":"2024-03-19T07:16:20.000Z","updated_at":"2024-07-17T08:15:21.000Z","dependencies_parsed_at":"2024-03-27T02:13:23.433Z","dependency_job_id":"6d82da21-74ec-4b61-837d-fdc40f0836df","html_url":"https://github.com/tus/load-tester","commit_stats":null,"previous_names":["tus/load-tester"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tus%2Fload-tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tus%2Fload-tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tus%2Fload-tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tus%2Fload-tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tus","download_url":"https://codeload.github.com/tus/load-tester/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239914930,"owners_count":19717760,"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-11-08T10:28:08.466Z","updated_at":"2026-03-12T00:30:15.540Z","avatar_url":"https://github.com/tus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Upload load testing tool\n\nThis repository contains a simple tool for testing the performance of resumable upload servers using [k6](https://k6.io/). It currently supports [draft-ietf-httpbis-resumable-upload-03](https://datatracker.ietf.org/doc/draft-ietf-httpbis-resumable-upload/03/).\n\nTo use, please [install k6](https://grafana.com/docs/k6/latest/get-started/installation/) and clone this repository. Running the load tester is then a matter of adjusting the configuration variables in the beginning of `uploads.js` and then executing it using k6:\n\n```\n$ k6 run uploads.js\n\n          /\\      |‾‾| /‾‾/   /‾‾/   \n     /\\  /  \\     |  |/  /   /  /    \n    /  \\/    \\    |     (   /   ‾‾\\  \n   /          \\   |  |\\  \\ |  (‾)  | \n  / __________ \\  |__| \\__\\ \\_____/ .io\n\n     execution: local\n        script: uploads.js\n        output: -\n\n     scenarios: (100.00%) 1 scenario, 2 max VUs, 1m0s max duration (incl. graceful stop):\n              * contacts: 10 iterations for each of 2 VUs (maxDuration: 30s, gracefulStop: 30s)\n\n\n     ✓ response code was 201\n     ✓ response includes Tus-Resumable header\n     ✓ response includes upload URL\n     ✓ response includes upload offset\n     ✓ response code was 204\n     ✓ offset matches upload length\n\n     checks.........................: 100.00% ✓ 160      ✗ 0  \n     data_received..................: 40 kB   5.4 kB/s\n     data_sent......................: 21 MB   2.9 MB/s\n     http_req_blocked...............: avg=15.75ms  min=1µs      med=5µs      max=315.09ms p(90)=12µs     p(95)=15.76ms \n     http_req_connecting............: avg=5.27ms   min=0s       med=0s       max=106.75ms p(90)=0s       p(95)=5.21ms  \n     http_req_duration..............: avg=333.15ms min=143.31ms med=273.95ms max=1.11s    p(90)=503.73ms p(95)=579.21ms\n       { expected_response:true }...: avg=333.15ms min=143.31ms med=273.95ms max=1.11s    p(90)=503.73ms p(95)=579.21ms\n     http_req_failed................: 0.00%   ✓ 0        ✗ 40 \n     http_req_receiving.............: avg=82.07µs  min=20µs     med=65.5µs   max=202µs    p(90)=138.7µs  p(95)=149.35µs\n     http_req_sending...............: avg=36.98ms  min=11µs     med=683.5µs  max=776.72ms p(90)=5.57ms   p(95)=37.4ms  \n     http_req_tls_handshaking.......: avg=7.16ms   min=0s       med=0s       max=144.67ms p(90)=0s       p(95)=7.1ms   \n     http_req_waiting...............: avg=296.09ms min=143.18ms med=272.39ms max=553.41ms p(90)=462.87ms p(95)=499.34ms\n     http_reqs......................: 40      5.46181/s\n     iteration_duration.............: avg=698.85ms min=492.47ms med=611.67ms max=1.61s    p(90)=836.37ms p(95)=1.55s   \n     iterations.....................: 20      2.730905/s\n     vus............................: 1       min=1      max=2\n     vus_max........................: 2       min=2      max=2\n\n\nrunning (0m07.3s), 0/2 VUs, 20 complete and 0 interrupted iterations\ncontacts ✓ [======================================] 2 VUs  07.3s/30s  20/20 iters, 10 per VU\n```\n\nIn the output you can see that all built-in asserts were met as well as statistics on the transferred data volume and the overall throughput.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftus%2Fload-tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftus%2Fload-tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftus%2Fload-tester/lists"}