File tree 1 file changed +14
-0
lines changed
1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -82,6 +82,19 @@ let noop () = Sys.opaque_identity ()
82
82
83
83
let db_lock_uncontended () : unit = Xapi_database.Db_lock. with_lock noop
84
84
85
+ let event =
86
+ let open Event_types in
87
+ {
88
+ id= " id"
89
+ ; ts= " 1000"
90
+ ; ty= " test"
91
+ ; op= `add
92
+ ; reference= " test"
93
+ ; snapshot= Some (Rpc. Dict [] )
94
+ }
95
+
96
+ let test_rpc_of_event () = Event_types. rpc_of_event event
97
+
85
98
let benchmarks =
86
99
[
87
100
Test. make ~name: " local_session_hook" (Staged. stage local_session_hook)
@@ -95,6 +108,7 @@ let benchmarks =
95
108
; Test. make ~name: " Mutex+incr" (Staged. stage inc_with_mutex)
96
109
; Test. make ~name: " Db_lock.with_lock uncontended"
97
110
(Staged. stage db_lock_uncontended)
111
+ ; Test. make ~name: " rpc_of_event" (Staged. stage test_rpc_of_event)
98
112
]
99
113
100
114
let () = Bechamel_simple_cli. cli benchmarks
You can’t perform that action at this time.
0 commit comments