Skip to main content

7 posts tagged with "performance"

View All Tags

What's new in fast-check 4.6.0?

· 9 min read
Nicolas Dubien
fast-check maintainer

Until now, stringMatching had no built-in way to cap the length of the produced strings except applying a manual post-filter on the generated values. This release adds a maxLength constraint to ensure that values stay within bounds by construct without relying on excessive and costly filtering.

Our published bundle is also lighter by 17% as it went from 1618 kB to 1344 kB.

Continue reading to explore the detailed updates it brings.

What's new in fast-check 4.3.0?

· 3 min read
Nicolas Dubien
fast-check maintainer

Dealing with potentially infinite data structures can quickly lead to memory issues. Up until now, the arbitrary responsible for generating infinite streams was keeping every generated element in memory for debugging and reporting purposes. While helpful, this behavior could cause unwanted memory growth when users pulled from these streams for a long time. This release introduces a way to avoid that intentional leak.

Continue reading to explore the detailed updates it brings.

What's new in fast-check 3.23.0?

· 7 min read
Nicolas Dubien
fast-check maintainer

The previous release introduced the unit concept to the string arbitraries, enhancing control over string generation. In version 3.23.0, we’ve extended this feature to even more arbitraries, broadening its applicability. This update also includes several performance optimizations to make your testing faster and more efficient.

Continue reading to explore the detailed updates it brings.