@@ -65,17 +65,15 @@ let make_tests (type v) (module Protoc: Protoc_impl) (module Plugin: Plugin_impl
65
65
let test_encode =
66
66
Test. make_grouped ~name: " Encode"
67
67
[
68
- Test. make ~name: " Plugin balanced" (Staged. stage @@ fun () -> Plugin.M. to_proto' Ocaml_protoc_plugin.Writer. (init ~mode: Balanced () ) v_plugin |> Ocaml_protoc_plugin.Writer. contents |> Sys. opaque_identity);
69
- Test. make ~name: " Plugin speed" (Staged. stage @@ fun () -> Plugin.M. to_proto' Ocaml_protoc_plugin.Writer. (init ~mode: Speed () ) v_plugin |> Ocaml_protoc_plugin.Writer. contents |> Sys. opaque_identity);
70
- Test. make ~name: " Plugin space" (Staged. stage @@ fun () -> Plugin.M. to_proto' Ocaml_protoc_plugin.Writer. (init ~mode: Space () ) v_plugin |> Ocaml_protoc_plugin.Writer. contents |> Sys. opaque_identity);
71
- Test. make ~name: " Protoc" (Staged. stage @@ fun () -> let encoder = Pbrt.Encoder. create () in Protoc. encode_pb_m v_protoc encoder; (Pbrt.Encoder. to_string encoder) |> Sys. opaque_identity)
68
+ Test. make ~name: " Plugin" (Staged. stage @@ fun () -> Plugin.M. to_proto' Ocaml_protoc_plugin.Writer. (init () ) v_plugin);
69
+ Test. make ~name: " Protoc" (Staged. stage @@ fun () -> let encoder = Pbrt.Encoder. create () in Protoc. encode_pb_m v_protoc encoder; Pbrt.Encoder. to_string encoder)
72
70
]
73
71
in
74
72
let test_decode =
75
73
Test. make_grouped ~name: " Decode"
76
74
[
77
- Test. make ~name: " Plugin" (Staged. stage @@ fun () -> Plugin.M. from_proto_exn (Ocaml_protoc_plugin.Reader. create data_plugin |> Sys. opaque_identity ));
78
- Test. make ~name: " Protoc" (Staged. stage @@ fun () -> Protoc. decode_pb_m (Pbrt.Decoder. of_string data_protoc |> Sys. opaque_identity ))
75
+ Test. make ~name: " Plugin" (Staged. stage @@ fun () -> Plugin.M. from_proto_exn (Ocaml_protoc_plugin.Reader. create data_plugin));
76
+ Test. make ~name: " Protoc" (Staged. stage @@ fun () -> Protoc. decode_pb_m (Pbrt.Decoder. of_string data_protoc))
79
77
]
80
78
in
81
79
Test. make_grouped ~name: (Plugin.M. name' () ) [test_encode; test_decode]
@@ -134,12 +132,12 @@ let create_test_data ~depth () =
134
132
let benchmark tests =
135
133
let open Bechamel in
136
134
let instances = [ meassure ] in
137
- let cfg = Benchmark. cfg ~limit: 500 ~quota: ( Time. second 5.0 ) ~ kde: (Some 100 ) ~stabilize: true ~compaction: false () in
135
+ let cfg = Benchmark. cfg ~compaction: false ~ kde: (Some 1 ) ~quota: ( Time. second 1.0 ) () in
138
136
Benchmark. all cfg instances tests
139
137
140
138
let analyze results =
141
139
let open Bechamel in
142
- let ols = Analyze. ols ~bootstrap: 5 ~r_square: false
140
+ let ols = Analyze. ols ~bootstrap: 5 ~r_square: true
143
141
~predictors: [| Measure. run |] in
144
142
let results = Analyze. all ols meassure results in
145
143
Analyze. merge ols [ meassure ] [ results ]
0 commit comments