Commit 2b8d749
committed
fix two bugs related to overhead
We were always dividing the total function execution time by
the number of cores, however sometimes the user sets 'ntasks'
so instead we should divide by '_get_max_tasks()'.
Also the future start_time wasn't measured in the case where
one uses a SequentialExecutor because the Future that is
returned already contains the result.1 parent f8ff1d8 commit 2b8d749
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
204 | | - | |
| 204 | + | |
205 | 205 | | |
206 | 206 | | |
207 | 207 | | |
| |||
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
| 223 | + | |
223 | 224 | | |
224 | | - | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
0 commit comments