{"id":13728059,"url":"https://github.com/myzhan/locust4j","last_synced_at":"2025-08-26T00:27:33.175Z","repository":{"id":27058363,"uuid":"112300116","full_name":"myzhan/locust4j","owner":"myzhan","description":"Locust4j is a load generator for locust, written in Java.","archived":false,"fork":false,"pushed_at":"2025-02-07T03:16:10.000Z","size":279,"stargazers_count":81,"open_issues_count":3,"forks_count":33,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-03-30T10:06:26.694Z","etag":null,"topics":["benchmark","benchmark-framework","locust","performance","performance-testing"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/myzhan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-11-28T07:15:51.000Z","updated_at":"2025-02-07T03:16:14.000Z","dependencies_parsed_at":"2024-04-16T18:59:04.101Z","dependency_job_id":"4f79bc4b-52d3-48b2-ab83-b4efe70c8f0c","html_url":"https://github.com/myzhan/locust4j","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myzhan%2Flocust4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myzhan%2Flocust4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myzhan%2Flocust4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/myzhan%2Flocust4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/myzhan","download_url":"https://codeload.github.com/myzhan/locust4j/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247471517,"owners_count":20944158,"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","benchmark-framework","locust","performance","performance-testing"],"created_at":"2024-08-03T02:00:36.689Z","updated_at":"2025-04-06T11:07:24.241Z","avatar_url":"https://github.com/myzhan.png","language":"Java","funding_links":[],"categories":["Tools \u0026 Integrations"],"sub_categories":["Workers"],"readme":"# Locust4j [![Build Status](https://travis-ci.org/myzhan/locust4j.svg?branch=master)](https://travis-ci.org/myzhan/locust4j) [![Coverage Status](https://codecov.io/gh/myzhan/locust4j/branch/master/graph/badge.svg)](https://codecov.io/gh/myzhan/locust4j)\n\n## Links\n\n* Locust Website: \u003ca href=\"http://locust.io\"\u003elocust.io\u003c/a\u003e\n* Locust Documentation: \u003ca href=\"http://docs.locust.io\"\u003edocs.locust.io\u003c/a\u003e\n\n## Description\n\nLocust4j is a load generator for locust, written in Java. It's inspired by [boomer](https://github.com/myzhan/boomer) \nand [nomadacris](https://github.com/vrajat/nomadacris).\n\nIt's a **benchmarking library**, not a general purpose tool. To use it, you must implement test scenarios by yourself.\n\n### Usage examples\n\n- [locust4j-http](https://github.com/myzhan/locust4j-http) is a demo and a good start\n- [nejckorasa/locust4j-http-load](https://github.com/nejckorasa/locust4j-http-load) is another example project\n\n## Features\n\n* **Write user test scenarios in Java** \u003cbr\u003e\nBecause it's written in Java, you can use all the things in the Java Ecosystem.\n\n* **Thread-based concurrency** \u003cbr\u003e\nLocust4j uses threadpool to execute your code with low overhead.\n\n## Build\n\n```bash\ngit clone https://github.com/myzhan/locust4j\ncd locust4j\nmvn package\n```\n\n## Locally Install\n```bash\nmvn install\n```\n\n## Maven\n\nAdd this to your Maven project's pom.xml.\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.github.myzhan\u003c/groupId\u003e\n    \u003cartifactId\u003elocust4j\u003c/artifactId\u003e\n    \u003cversion\u003eLATEST\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n## More Examples\n\nSee [Main.java](examples/task/Main.java).\n\nThis file represents all the exposed APIs of Locust4j.\n\n## NOTICE\n1. The task instance is shared across multiply threads, the execute method must be thread-safe.\n2. Don't catch all exceptions in the execute method, just leave every unexpected exceptions to locust4j.\n\n## Author\n\n* myzhan\n* vrajat\n\n## Known Issues\n\n* When stop-the-world happens in the JVM, you may get wrong response time reported to the master.\n* Because of the JIT compiler, Locust4j will run faster as time goes by, which will lead to shorter response time.\n\n## License\n\nOpen source licensed under the MIT license (see _LICENSE_ file for details).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyzhan%2Flocust4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmyzhan%2Flocust4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmyzhan%2Flocust4j/lists"}