{"id":19365631,"url":"https://github.com/nikvolf/sub-bench-random","last_synced_at":"2025-07-31T17:36:42.091Z","repository":{"id":40728979,"uuid":"237261095","full_name":"NikVolf/sub-bench-random","owner":"NikVolf","description":null,"archived":false,"fork":false,"pushed_at":"2023-01-04T14:08:21.000Z","size":691,"stargazers_count":0,"open_issues_count":11,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-06T21:20:49.710Z","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/NikVolf.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":"2020-01-30T17:00:27.000Z","updated_at":"2022-06-28T01:26:55.000Z","dependencies_parsed_at":"2023-02-02T15:17:00.903Z","dependency_job_id":null,"html_url":"https://github.com/NikVolf/sub-bench-random","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikVolf%2Fsub-bench-random","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikVolf%2Fsub-bench-random/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikVolf%2Fsub-bench-random/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikVolf%2Fsub-bench-random/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NikVolf","download_url":"https://codeload.github.com/NikVolf/sub-bench-random/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240483804,"owners_count":19808653,"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-10T07:41:37.567Z","updated_at":"2025-02-24T13:21:35.822Z","avatar_url":"https://github.com/NikVolf.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sub-bench-random\n\nYou can use this bench routine to run against `substrate --dev` node. No configuration needed!\n\nThis sends transfers from around 1000 endowed accounts to _random_ new accounts, thus trying to avoid state cache hits in substrate.\n\nHaving your substrate started in `--dev` mode with default websockets config, run here\n\n```\nnpm install\nnpx tsc\nnode dist/index.js\n```\n\nor just if already npm-installed \u0026 compiled\n\n```\nnode dist/index.js\n```\n\n### some configuration\n\nYou can change how long will it spam transactions in bench.config.json:\n\n`processedTransactions = 1000`\n\nreplace it with any number to spam more/less\n\nIn the same file, you can change how much is spammed per seccond:\n\n`tps = 100`\n\nwebsockets url is set in `polkadot.bench.config.json`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikvolf%2Fsub-bench-random","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikvolf%2Fsub-bench-random","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikvolf%2Fsub-bench-random/lists"}