Commit f1bdc47
Fix BenchmarkTools.DEFAULT_PARAMETERS const assignment error in Julia 1.12 (#765)
* Fix BenchmarkTools.DEFAULT_PARAMETERS const assignment error in Julia 1.12
- Remove global modification of BenchmarkTools.DEFAULT_PARAMETERS which
fails in Julia 1.12+ due to const restriction
- Pass seconds and samples parameters directly to @benchmark macro
- Remove try/finally block that was only needed for parameter restoration
- Fixes issue #744
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Fix BenchmarkTools.DEFAULT_PARAMETERS const assignment error in Julia 1.12
- Remove global modification of BenchmarkTools.DEFAULT_PARAMETERS which
fails in Julia 1.12+ due to const restriction
- Use @benchmarkable and BenchmarkTools.run with custom parameters
- Remove try/finally block that was only needed for parameter restoration
- Fixes issue #744
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
---------
Co-authored-by: ChrisRackauckas <accounts@chrisrackauckas.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent e86eb88 commit f1bdc47
1 file changed
+8
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
94 | 93 | | |
95 | 94 | | |
96 | 95 | | |
| |||
111 | 110 | | |
112 | 111 | | |
113 | 112 | | |
114 | | - | |
115 | | - | |
| 113 | + | |
116 | 114 | | |
117 | 115 | | |
118 | 116 | | |
| |||
234 | 232 | | |
235 | 233 | | |
236 | 234 | | |
237 | | - | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
| |||
269 | 270 | | |
270 | 271 | | |
271 | 272 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | 273 | | |
278 | 274 | | |
279 | 275 | | |
| |||
0 commit comments