package tezos-benchmark

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Base_samplers.AdversarialSource

Sampling of "adversarial" values in the sense that they exhibit the worst-case performance of the usual comparison functions.

These samplers generate pairs of a common prefix that has a size uniformly sampled in prefix_size, and a list of card distinct (with high-probability) elements sharing this common prefix.

  • raises Invalid_argument

    if prefix_size.max < prefix_size.min or if prefix_size.min < 0 or of card <= 0.

Sourceval integers : prefix_size:range -> card:int -> (Z.t * Z.t list) sampler
Sourceval strings : prefix_size:range -> card:int -> (string * string list) sampler
Sourceval bytes : prefix_size:range -> card:int -> (bytes * bytes list) sampler
OCaml

Innovation. Community. Security.