File tree 1 file changed +8
-5
lines changed
1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -190,21 +190,24 @@ profile: function [
190
190
all [word? :blk block? code: get /any :blk ][]
191
191
code: to block! :blk
192
192
]
193
- code: copy/deep code
194
- data: try [delta-profile :code ]
193
+ ; to get the most precise results, make a deep copy for each test!
194
+ ; GC is done in `delta-profile` call.
195
+ test: copy/deep :code
196
+ data: try [delta-profile :test ]
195
197
if error? data [
196
198
keep/only reduce [0:0:0 0 0 0 0 :blk ]
197
199
continue
198
200
]
199
201
loop count - 1 [
200
- temp: delta-profile copy/deep :code
202
+ test: copy/deep :code
203
+ temp: delta-profile :test
201
204
foreach [k v] data [ data/ (k): v + temp/: k ]
202
205
]
203
206
keep/only reduce [
204
207
data/timer / count
205
208
to integer! data/evals / count
206
- to integer! data/series-made / count
207
- to integer! data/series-expanded / count
209
+ to integer! round /ceiling data/series-made / count
210
+ to integer! round /ceiling data/series-expanded / count
208
211
to integer! data/series-bytes / count
209
212
:blk
210
213
]
You can’t perform that action at this time.
0 commit comments