bulk

Mock Jutsu HOW-TO | UK

The bulk command within the mock-jutsu ecosystem serves as a high-performance utility designed for developers who require massive volumes of synthetic information. Unlike specific data generators that focus on a single attribute, such as an email or a credit card number, the bulk function acts as a versatile multiplier. It enables the rapid creation of N values across any supported data type, seamlessly integrating with the library’s extensive range of generation flags. Whether you are working with network configurations, currency formats, or localised geographic strings, this command provides a streamlined method to scale your datasets without writing repetitive loops or complex scripts.

To ensure the highest quality of mock data, mock-jutsu utilises sophisticated algorithms that maintain structural integrity while ensuring statistical variance. When generating bulk outputs, the engine respects the underlying standards of the chosen data type—such as RFC specifications for network protocols or ISO codes for financial applications. This rigorous approach ensures that the generated test data remains valid for validation logic and database schema constraints. By supporting global flags like --locale, the bulk command allows teams to simulate diverse user bases, making it an essential tool for internationalisation testing and cross-border system audits.

From a practical perspective, the utility is invaluable for performance and load testing scenarios. Engineers can use mock-jutsu to populate staging databases with millions of records, simulating real-world traffic patterns or stress-testing indexing strategies. Because the command is accessible via the CLI, a dedicated Python API, and even JMeter functions, it fits perfectly into CI/CD pipelines and automated testing frameworks. This flexibility significantly reduces the time spent on manual data preparation, allowing development teams to focus on identifying bottlenecks and optimising system throughput before a product reaches production.

Ultimately, the primary benefit of using the bulk function is the sheer efficiency it brings to the modern development lifecycle. By automating the creation of high-fidelity test data, mock-jutsu eliminates the risks associated with using sensitive production data in non-secure environments. Developers gain a reliable, repeatable method for generating exactly what they need, exactly when they need it. As modern software demands more robust testing against large-scale datasets, mastering this command becomes a critical skill for ensuring application stability and performance under pressure.

CLI Usage
mockjutsu bulk tckn --count 10 --locale TRmockjutsu bulk tckn --count 10 --locale DEmockjutsu bulk tckn --count 50 --locale TR
Python API
from mockjutsu import jutsujutsu.generate('bulk', locale='TR')jutsu.bulk('bulk', count=10, locale='TR')jutsu.template(['bulk'], count=5, locale='TR')# with --count parameterjutsu.generate('bulk', count='int', locale='TR')
JMeter
${__mockjutsu(bulk,TR)}# JMeter Function: __mockjutsu# Parameter 1: bulk# Parameter 2: locale (TR/UK/US/DE/FR/RU)${__mockjutsu(bulk,DE)}
REST API
GET /generate/bulk?locale=TR# → {"type":"bulk","result":"...","status":"ok"}GET /bulk/bulk?count=10&locale=TRPOST /template {"types":["bulk"],"count":1,"locale":"TR"}

Parameters

Parameter Values Description
--locale TR|UK|US|DE|FR|RU Region / locale for locale-aware output
--count int Number of records to generate (default: 10)

Other Languages