Module Encodings_benchmarks.Encodings
val make_encode_fixed_size :
?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 :
?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_variable_size_to_string :
?check:(unit -> unit) ->
name:string ->
to_string:('a -> string) ->
generator:
(Stdlib.Random.State.t ->
'a
* Mavryk_shell_benchmarks__Encoding_benchmarks_helpers.Shared_linear.workload) ->
unit ->
(module Mavryk_benchmark.Benchmark.Simple_with_num)
val make_decode_fixed_size_from_string :
?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 :
?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)
val make_decode_variable_size_from_string :
?check:(unit -> unit) ->
name:string ->
to_string:('a -> string) ->
from_string:(string -> 'a) ->
generator:
(Stdlib.Random.State.t ->
'a
* Mavryk_shell_benchmarks__Encoding_benchmarks_helpers.Shared_linear.workload) ->
unit ->
(module Mavryk_benchmark.Benchmark.Simple_with_num)
val make_decode_variable_size_from_bytes :
?check:(unit -> unit) ->
name:string ->
to_bytes:('a -> bytes) ->
from_bytes:(bytes -> 'a) ->
generator:
(Stdlib.Random.State.t ->
'a
* Mavryk_shell_benchmarks__Encoding_benchmarks_helpers.Shared_linear.workload) ->
unit ->
(module Mavryk_benchmark.Benchmark.Simple_with_num)