A Go-based random fake data generator extension for k6 performance tests, offering faster startup and lower memory usage.
xk6-faker is a Go extension for the k6 load testing tool that generates random fake data for performance test scenarios. It solves the problem of JavaScript fake data libraries causing high download size, memory usage, and slow startup times in k6 tests by providing a native, efficient alternative.
Developers and QA engineers writing performance tests with k6 who need to generate realistic test data without compromising test execution speed or resource consumption.
Developers choose xk6-faker for its performance advantages over JavaScript alternatives—faster test startup, lower memory usage, and smaller binary size—while maintaining a familiar API similar to Faker.js for easy adoption.
Random fake data generator for k6.
Built as a Go extension, it minimizes memory footprint and accelerates test startup compared to JavaScript libraries, as the README highlights reduced download size and memory usage.
Mirrors Faker.js usage patterns for ease of adoption, with examples in the README showing similar import and method calls, though naming differs due to the underlying gofakeit library.
Supports seeding via constructor or the XK6_FAKER_SEED environment variable, ensuring consistent fake data across test runs, as demonstrated in the README examples.
Includes TypeScript declaration files for improved IDE integration and type safety, with configuration instructions provided in the README for setup.
The README admits it has a smaller feature set compared to popular JavaScript fake data generators, which may not cover advanced or locale-specific data needs.
Requires using the xk6 build tool to incorporate the extension, adding an extra step over standard k6 usage and potentially complicating setup for custom builds.
Category and function names differ from Faker.js due to the underlying gofakeit library, which can cause confusion and require migration effort for teams familiar with Faker.js.
xk6-faker is an open-source alternative to the following products:
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.