@@ -117,44 +117,44 @@ let perf () =
117
117
let use_fastpath = ! use_fastpath in
118
118
let use_framing = ! use_framing in
119
119
let transport = if ! use_ssl then with_stunnel else with_connection in
120
- Printf. printf " 1 thread non-persistent connections: " ;
120
+ Printf. printf " 1 thread non-persistent connections: " ;
121
121
let nonpersistent =
122
- let @ () = sample 1 in
123
- let @ () = per_nsec 1. in
122
+ let @ () = sample 10 in
123
+ let @ () = per_nsec 0.1 in
124
124
transport ! ip ! port (one ~use_fastpath ~use_framing false )
125
125
in
126
126
Printf. printf " %s RPCs/sec\n %!" (Normal_population. to_string nonpersistent) ;
127
- Printf. printf " 1 thread non-persistent connections (query): " ;
127
+ Printf. printf " 1 thread non-persistent connections (query): " ;
128
128
let nonpersistent_query =
129
- let @ () = sample 1 in
130
- let @ () = per_nsec 1. in
129
+ let @ () = sample 10 in
130
+ let @ () = per_nsec 0.1 in
131
131
transport ! ip ! port (query ~use_fastpath ~use_framing false )
132
132
in
133
133
Printf. printf " %s RPCs/sec\n %!"
134
134
(Normal_population. to_string nonpersistent_query) ;
135
- Printf. printf " 10 threads non-persistent connections: " ;
135
+ Printf. printf " 10 threads non-persistent connections: " ;
136
136
let thread_nonpersistent =
137
- let @ () = sample 1 in
137
+ let @ () = sample 10 in
138
138
let @ () = threads 10 in
139
- let @ () = per_nsec 5. in
139
+ let @ () = per_nsec 0.1 in
140
140
transport ! ip ! port (one ~use_fastpath ~use_framing false )
141
141
in
142
142
Printf. printf " %s RPCs/sec\n %!"
143
143
(Normal_population. to_string thread_nonpersistent) ;
144
- Printf. printf " 1 thread persistent connection: " ;
144
+ Printf. printf " 1 thread persistent connection: " ;
145
145
let persistent =
146
- let @ () = sample 1 in
146
+ let @ () = sample 10 in
147
147
let @ s = transport ! ip ! port in
148
- let @ () = per_nsec 1. in
148
+ let @ () = per_nsec 0.1 in
149
149
one ~use_fastpath ~use_framing true s
150
150
in
151
151
Printf. printf " %s RPCs/sec\n %!" (Normal_population. to_string persistent) ;
152
- Printf. printf " 10 threads persistent connections: " ;
152
+ Printf. printf " 10 threads persistent connections: " ;
153
153
let thread_persistent =
154
- let @ () = sample 1 in
154
+ let @ () = sample 10 in
155
155
let @ () = threads 10 in
156
156
let @ s = transport ! ip ! port in
157
- let @ () = per_nsec 5. in
157
+ let @ () = per_nsec 0.1 in
158
158
one ~use_fastpath ~use_framing true s
159
159
in
160
160
Printf. printf " %s RPCs/sec\n %!" (Normal_population. to_string thread_persistent)
0 commit comments