[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-2186":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":16,"stars7d":17,"stars30d":18,"stars90d":16,"forks30d":16,"starsTrendScore":19,"compositeScore":20,"rankGlobal":10,"rankLanguage":10,"license":21,"archived":22,"fork":22,"defaultBranch":23,"hasWiki":24,"hasPages":22,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":36,"readmeContent":37,"aiSummary":38,"trendingCount":16,"starSnapshotCount":16,"syncStatus":39,"lastSyncTime":40,"discoverSource":41},2186,"locust","locustio\u002Flocust","locustio","Write scalable load tests in plain Python 🚗💨","",null,"Python",27894,3217,414,5,0,31,117,14,95.5,"MIT License",false,"master",true,[26,27,28,29,30,31,5,32,33,34,35],"benchmarking","http","load-generator","load-test","load-testing","load-tests","performance","performance-testing","python","socketio","2026-06-12 04:00:13","# Locust\n\n[![PyPI](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Flocust.svg)](https:\u002F\u002Fpypi.org\u002Fproject\u002Flocust\u002F)\n[![Supported Python Versions](https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fpyversions\u002Flocust?color=brightgreen)](https:\u002F\u002Fpypi.org\u002Fproject\u002Flocust\u002F)\n[![Downloads](https:\u002F\u002Fstatic.pepy.tech\u002Fpersonalized-badge\u002Flocust?period=total&units=INTERNATIONAL_SYSTEM&left_color=GREY&right_color=GREEN&left_text=downloads)](https:\u002F\u002Fpepy.tech\u002Fprojects\u002Flocust)\n[![GitHub contributors](https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Fcontributors\u002Flocustio\u002Flocust.svg)](https:\u002F\u002Fgithub.com\u002Flocustio\u002Flocust\u002Fgraphs\u002Fcontributors)\n[![Support Ukraine Badge](https:\u002F\u002Fbit.ly\u002Fsupport-ukraine-now)](https:\u002F\u002Fgithub.com\u002Fsupport-ukraine\u002Fsupport-ukraine)\n\nLocust is an open source performance\u002Fload testing tool for HTTP and other protocols. Its developer-friendly approach lets you define your tests in regular Python code.\n\nLocust tests can be run from command line or using its web-based UI. Throughput, response times and errors can be viewed in real time and\u002For exported for later analysis.\n\nYou can import regular Python libraries into your tests, and with Locust's pluggable architecture it is infinitely expandable. Unlike when using most other tools, your test design will never be limited by a GUI or domain-specific language.\n\nTo get started right away, head over to the [documentation](http:\u002F\u002Fdocs.locust.io\u002Fen\u002Fstable\u002Finstallation.html).\n\n## Features\n\n#### Write user test scenarios in plain old Python\n\nIf you want your users to loop, perform some conditional behaviour or do some calculations, you just use the regular programming constructs provided by Python. Locust runs every user inside its own greenlet (a lightweight process\u002Fcoroutine). This enables you to write your tests like normal (blocking) Python code instead of having to use callbacks or some other mechanism. Because your scenarios are “just python” you can use your regular IDE, and version control your tests as regular code (as opposed to some other tools that use XML or binary formats)\n\n```python\nfrom locust import HttpUser, task, between\n\nclass QuickstartUser(HttpUser):\n    wait_time = between(1, 2)\n\n    def on_start(self):\n        self.client.post(\"\u002Flogin\", json={\"username\":\"foo\", \"password\":\"bar\"})\n\n    @task\n    def hello_world(self):\n        self.client.get(\"\u002Fhello\")\n        self.client.get(\"\u002Fworld\")\n\n    @task(3)\n    def view_item(self):\n        for item_id in range(10):\n            self.client.get(f\"\u002Fitem?id={item_id}\", name=\"\u002Fitem\")\n```\n\n#### Distributed & Scalable - supports hundreds of thousands of users\n\nLocust makes it easy to run load tests distributed over multiple machines. It is event-based (using [gevent](http:\u002F\u002Fwww.gevent.org\u002F)), which makes it possible for a single process to handle many thousands concurrent users. While there may be other tools that are capable of doing more requests per second on a given hardware, the low overhead of each Locust user makes it very suitable for testing highly concurrent workloads.\n\n#### Web-based UI\n\nLocust has a user friendly web interface that shows the progress of your test in real-time. You can even change the load while the test is running. It can also be run without the UI, making it easy to use for CI\u002FCD testing.\n\n\u003Cpicture>\n\u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002Flocustio\u002Flocust\u002Frefs\u002Fheads\u002Fmaster\u002Fdocs\u002Fimages\u002Fbottlenecked-server-light.png\" alt=\"Locust UI charts\" height=\"100\" width=\"200\"\u002F>\n\u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002Flocustio\u002Flocust\u002Frefs\u002Fheads\u002Fmaster\u002Fdocs\u002Fimages\u002Fbottlenecked-server-dark.png\" alt=\"Locust UI charts\" height=\"100\" width=\"200\"\u002F>\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Flocustio\u002Flocust\u002Frefs\u002Fheads\u002Fmaster\u002Fdocs\u002Fimages\u002Fbottlenecked-server-light.png\" alt=\"Locust UI charts\" height=\"100\" width=\"200\"\u002F>\n\u003C\u002Fpicture>\n\u003Cpicture>\n\u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002Flocustio\u002Flocust\u002Frefs\u002Fheads\u002Fmaster\u002Fdocs\u002Fimages\u002Fwebui-running-statistics-light.png\" alt=\"Locust UI stats\" height=\"100\" width=\"200\"\u002F>\n\u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002Flocustio\u002Flocust\u002Frefs\u002Fheads\u002Fmaster\u002Fdocs\u002Fimages\u002Fwebui-running-statistics-dark.png\" alt=\"Locust UI stats\" height=\"100\" width=\"200\"\u002F>\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Flocustio\u002Flocust\u002Frefs\u002Fheads\u002Fmaster\u002Fdocs\u002Fimages\u002Fwebui-running-statistics-light.png\" alt=\"Locust UI stats\" height=\"100\" width=\"200\"\u002F>\n\u003C\u002Fpicture>\n\u003Cpicture>\n\u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002Flocustio\u002Flocust\u002Frefs\u002Fheads\u002Fmaster\u002Fdocs\u002Fimages\u002Flocust-workers-light.png\" alt=\"Locust UI workers\" height=\"100\" width=\"200\"\u002F>\n\u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002Flocustio\u002Flocust\u002Frefs\u002Fheads\u002Fmaster\u002Fdocs\u002Fimages\u002Flocust-workers-dark.png\" alt=\"Locust UI workers\" height=\"100\" width=\"200\"\u002F>\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Flocustio\u002Flocust\u002Frefs\u002Fheads\u002Fmaster\u002Fdocs\u002Fimages\u002Flocust-workers-light.png\" alt=\"Locust UI workers\" height=\"100\" width=\"200\"\u002F>\n\u003C\u002Fpicture>\n\u003Cpicture>\n\u003Csource media=\"(prefers-color-scheme: light)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002Flocustio\u002Flocust\u002Frefs\u002Fheads\u002Fmaster\u002Fdocs\u002Fimages\u002Fwebui-splash-light.png\" alt=\"Locust UI start test\" height=\"100\" width=\"200\"\u002F>\n\u003Csource media=\"(prefers-color-scheme: dark)\" srcset=\"https:\u002F\u002Fraw.githubusercontent.com\u002Flocustio\u002Flocust\u002Frefs\u002Fheads\u002Fmaster\u002Fdocs\u002Fimages\u002Fwebui-splash-dark.png\" alt=\"Locust UI start test\" height=\"100\" width=\"200\"\u002F>\n\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Flocustio\u002Flocust\u002Frefs\u002Fheads\u002Fmaster\u002Fdocs\u002Fimages\u002Fwebui-splash-light.png\" alt=\"Locust UI start test\" height=\"100\" width=\"200\"\u002F>\n\u003C\u002Fpicture>\n\n#### Can test any system\n\nEven though Locust primarily works with web sites\u002Fservices, it can be used to test almost any system or protocol. Just [write a client](https:\u002F\u002Fdocs.locust.io\u002Fen\u002Flatest\u002Ftesting-other-systems.html#testing-other-systems) for what you want to test, or [explore some created by the community](https:\u002F\u002Fgithub.com\u002FSvenskaSpel\u002Flocust-plugins#users).\n\n## Hackable\n\nLocust's code base is intentionally kept small and doesn't solve everything out of the box. Instead, we try to make it easy to adapt to any situation you may come across, using regular Python code. There is nothing stopping you from: \n\n* [Send real time reporting data to TimescaleDB and visualize it in Grafana](https:\u002F\u002Fgithub.com\u002FSvenskaSpel\u002Flocust-plugins\u002Fblob\u002Fmaster\u002Flocust_plugins\u002Fdashboards\u002FREADME.md)\n* [Wrap calls to handle the peculiarities of your REST API](https:\u002F\u002Fgithub.com\u002FSvenskaSpel\u002Flocust-plugins\u002Fblob\u002F8af21862d8129a5c3b17559677fe92192e312d8f\u002Fexamples\u002Frest_ex.py#L87) \n* [Use a totally custom load shape\u002Fprofile](https:\u002F\u002Fdocs.locust.io\u002Fen\u002Flatest\u002Fcustom-load-shape.html#custom-load-shape)\n* [...](https:\u002F\u002Fgithub.com\u002Flocustio\u002Flocust\u002Fwiki\u002FExtensions)\n\n## Links\n\n* Documentation: [docs.locust.io](https:\u002F\u002Fdocs.locust.io)\n* Support\u002FQuestions: [StackOverflow](https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002Ftagged\u002Flocust)\n* Github Discussions: [Github Discussions](https:\u002F\u002Fgithub.com\u002Forgs\u002Flocustio\u002Fdiscussions)\n* Chat\u002Fdiscussion: [Slack](https:\u002F\u002Flocustio.slack.com) [(signup)](https:\u002F\u002Fcommunityinviter.com\u002Fapps\u002Flocustio\u002Flocust)\n\n## Authors\n\n* Maintainer: [Lars Holmberg](https:\u002F\u002Fgithub.com\u002Fcyberw)\n* UI: [Andrew Baldwin](https:\u002F\u002Fgithub.com\u002Fandrewbaldwin44)\n* Original creator: [Jonatan Heyman](https:\u002F\u002Fgithub.com\u002Fheyman)\n* Massive thanks to [all of our contributors](https:\u002F\u002Fgithub.com\u002Flocustio\u002Flocust\u002Fgraphs\u002Fcontributors)\n\n## License\n\nOpen source licensed under the MIT license (see _LICENSE_ file for details).\n","Locust 是一个开源的性能和负载测试工具，主要用于HTTP及其他协议。它允许开发者使用纯Python代码编写可扩展的负载测试脚本，通过简洁直观的方式定义用户行为和场景。该工具支持分布式执行，可以轻松地在多台机器上运行，模拟成千上万甚至数十万并发用户的访问情况。此外，Locust 提供了一个基于Web的界面来管理和监控测试过程，实时展示吞吐量、响应时间和错误率等关键指标，并支持导出数据以供后续分析。适用于需要对Web应用进行压力测试、性能调优或容量规划的各种场景。",2,"2026-06-11 02:48:42","top_language"]