File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -349,15 +349,15 @@ julia> R8 = Dimensions{DynamicQuantities.FixedRational{Int8,6}};
349
349
350
350
julia> R32 = Dimensions{DynamicQuantities. FixedRational{Int32,2 ^ 4 * 3 ^ 2 * 5 ^ 2 * 7 }}; # Default
351
351
352
- julia> q8 = [Quantity (randn (), R8 , length= rand (- 2 : 2 )) for i in 1 : 1000 ];
352
+ julia> q8 = [Quantity {Float64,R8} (randn (), length= rand (- 2 : 2 )) for i in 1 : 1000 ];
353
353
354
- julia> q32 = [Quantity (randn (), R32 , length= rand (- 2 : 2 )) for i in 1 : 1000 ];
354
+ julia> q32 = [Quantity {Float64,R32} (randn (), length= rand (- 2 : 2 )) for i in 1 : 1000 ];
355
355
356
356
julia> f (x) = @. x ^ 2 * 0.5 ;
357
357
358
358
julia> @btime f ($ q8);
359
- 7.750 μs (1 allocation : 15.75 KiB)
359
+ 1.433 μs (3 allocations : 15.77 KiB)
360
360
361
361
julia> @btime f ($ q32);
362
- 8.417 μs (2 allocations: 39.11 KiB)
362
+ 1.883 μs (4 allocations: 39.12 KiB)
363
363
```
You can’t perform that action at this time.
0 commit comments