Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. k6
  3. xk6-faker

xk6-faker

AGPL-3.0JavaScriptv0.5.1

A Go-based random fake data generator extension for k6 performance tests, offering faster startup and lower memory usage.

Visit WebsiteGitHubGitHub
117 stars21 forks0 contributors

What is xk6-faker?

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.

Target Audience

Developers and QA engineers writing performance tests with k6 who need to generate realistic test data without compromising test execution speed or resource consumption.

Value Proposition

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.

Overview

Random fake data generator for k6.

Use Cases

Best For

  • Generating fake user data in k6 load tests
  • Creating reproducible test scenarios with seeded random data
  • Reducing memory footprint in large-scale performance tests
  • Accelerating test execution by avoiding JavaScript runtime overhead
  • Building k6 tests with TypeScript type safety for fake data
  • Integrating fake data generation directly into k6 without external dependencies

Not Ideal For

  • Projects requiring a wide variety of locale-specific or niche fake data types beyond basic categories
  • Teams already using JavaScript fake data libraries in non-k6 environments without performance concerns
  • Developers who need drop-in compatibility with existing Faker.js code without API adjustments
  • Use cases outside load testing where general-purpose, feature-rich fake data generators are preferred

Pros & Cons

Pros

Performance Efficiency

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.

Familiar API

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.

Test Reproducibility

Supports seeding via constructor or the XK6_FAKER_SEED environment variable, ensuring consistent fake data across test runs, as demonstrated in the README examples.

TypeScript Support

Includes TypeScript declaration files for improved IDE integration and type safety, with configuration instructions provided in the README for setup.

Cons

Limited Feature Breadth

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.

Build Complexity

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.

API Deviation

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.

Open Source Alternative To

xk6-faker is an open-source alternative to the following products:

F
Faker.js

A JavaScript library for generating massive amounts of fake data such as names, addresses, and phone numbers for testing and development.

Frequently Asked Questions

Quick Stats

Stars117
Forks21
Contributors0
Open Issues3
Last commit2 days ago
CreatedSince 2021

Tags

#load-testing#performance-testing#fake-data#grafana#k6#k6-extension#data-generation#xk6#test-automation#go

Built With

G
Go
x
xk6

Links & Resources

Website

Included in

k6748
Auto-fetched 1 day ago

Related Projects

xk6-kafkaxk6-kafka

k6 extension to load test Apache Kafka with support for various serialization formats, SASL, TLS, compression, Schema Registry client and beyond

Stars216
Forks95
Last commit16 days ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub