You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now, instead of tuning `suite` every time we load the benchmarks in a new Julia session, we can simply load the parameters in the JLD file using the `loadparams!` function:
885
+
Now, instead of tuning `suite` every time we load the benchmarks in a new Julia session, we can simply load the parameters in the JSON file using the `loadparams!` function. The `[1]` on the `load` call gets the first value that was serialized into the JSON file, which in this case is the parameters.
886
886
887
887
```julia
888
888
# syntax is loadparams!(group, paramsgroup, fields...)
Copy file name to clipboardExpand all lines: doc/reference.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -185,11 +185,11 @@ Return an iterator over `x`'s leaf index/value pairs. Relevant manual documentat
185
185
186
186
##### `save(filename, args...)`
187
187
188
-
Not exported. This function is a thin wrapper around a call to `JLD.save(filename, args...)` that maintains compatibility between BenchmarkTools versions.
188
+
Not exported. This function calls `JSON.print` with custom serialization to write benchmarking data in a custom JSON format.
189
189
190
190
##### `load(filename, args...)`
191
191
192
-
Not exported. This function is a thin wrapper around a call to `JLD.load(filename, args...)` that maintains compatibility between BenchmarkTools versions.
192
+
Not exported. This function calls `JSON.parse` with custom deserialization to read back benchmarking data written from `save`.
0 commit comments