{"repo":"GhMartingit/xk6-mongo","free":true,"listed":false,"github":"https://github.com/GhMartingit/xk6-mongo","clone":"git clone https://github.com/GhMartingit/xk6-mongo.git","description":"MongoDB extension for k6 - High-performance load testing with MongoDB support","language":"Go","stars":16,"topics":["extension","k6","load-testing","mongo","performance-testing","xk6","database","go","golang","k6-extension"],"license":"Apache-2.0","category":"databases-storage","readme_excerpt":"xk6-mongo A k6 extension for interacting with MongoDB while performance testing. Features - CRUD Operations : Insert, InsertMany, Find, FindOne, FindAll, UpdateOne, UpdateMany, DeleteOne, DeleteMany - Advanced Operations : Upsert, FindOneAndUpdate, Aggregate, Distinct, CountDocuments - Bulk Operations : BulkWrite for mixed insert/update/delete operations - Index Management : CreateIndex, DropIndex, ListIndexes - Change Streams : Watch for real-time collection changes (requires replica set) - Transactions : Session-based transaction support with Insert, FindOne, UpdateOne, DeleteOne - Database Management : DropDatabase, ListCollections, DropCollection - Flexible Filters : Complex query support for all filter parameters - Connection Management : Automatic connection verification with timeout handling - Performance : Built-in operation timeouts and cursor management Build To build a custom k6 binary with this extension, first ensure you have the prerequisites: - Go toolchain - Git 1. Download xk6: 2. Build the k6 binary: This will create a k6 binary that includes the xk6-mongo extension in your local folder. This k6 binary can now run a k6 test. Development To make development a little smoother, use the Makefile in the root folder. The default target will format your code, run tests, and create a k6 binary with your local code rather than from GitHub. Using the k6 binary with xk6-mongo , run the k6 test as usual: Configuration Connection Timeouts The extension includes built-in ","default_branch":null,"files":null,"tree":[],"storefront":"/r/GhMartingit","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/GhMartingit/xk6-mongo/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}