Module Encoding_benchmarks_helpers.Make
Parameters
module Info : sig ... end
Signature
val make_encode_fixed_size :
'a. ?check:(unit -> unit) ->
name:string ->
encoding:'a Mavryk_base.TzPervasives.Data_encoding.t ->
generator:(Stdlib.Random.State.t -> 'a) ->
unit ->
Mavryk_benchmark.Benchmark.simple_with_num
val make_decode_fixed_size :
'a. ?check:(unit -> unit) ->
name:string ->
encoding:'a Mavryk_base.TzPervasives.Data_encoding.t ->
generator:(Stdlib.Random.State.t -> 'a) ->
unit ->
(module Mavryk_benchmark.Benchmark.Simple_with_num)
val make_encode_fixed_size_to_string :
'a. ?check:(unit -> unit) ->
name:string ->
to_string:('a -> string) ->
generator:(Stdlib.Random.State.t -> 'a) ->
unit ->
(module Mavryk_benchmark.Benchmark.Simple_with_num)
val make_encode_fixed_size_to_bytes :
'a. ?check:(unit -> unit) ->
name:string ->
to_bytes:('a -> bytes) ->
generator:(Stdlib.Random.State.t -> 'a) ->
unit ->
(module Mavryk_benchmark.Benchmark.Simple_with_num)
val make_decode_fixed_size_from_string :
'a. ?check:(unit -> unit) ->
name:string ->
to_string:('a -> string) ->
from_string:(string -> 'a) ->
generator:(Stdlib.Random.State.t -> 'a) ->
unit ->
(module Mavryk_benchmark.Benchmark.Simple_with_num)
val make_decode_fixed_size_from_bytes :
'a. ?check:(unit -> unit) ->
name:string ->
to_bytes:('a -> bytes) ->
from_bytes:(bytes -> 'a) ->
generator:(Stdlib.Random.State.t -> 'a) ->
unit ->
(module Mavryk_benchmark.Benchmark.Simple_with_num)