Module goose::util

source ·
Expand description

Utility functions used by Goose, and available when writing load tests.

Functions

Calculate the greatest common divisor of two integers using binary GCD (or Stein’s) algorithm.
Convert optional string to f32, otherwise return None.
Convert optional string to f32, otherwise defaulting to 1.0.
Helper function to determine if a host can be parsed.
Calculate median for a BTreeMap of usizes.
Determine if a timer expired, with millisecond granularity.
Parse a string representing a time span and return the number of seconds.
Sleep for a specified duration, minus the time spent doing other things.
Calculate the standard deviation between two f32 numbers.
Determine if a timer expired, with second granularity.
Truncate strings when they’re too long to display.