Skip to content

Commit 479f663

Browse files
authored
Update timings
1 parent 8449f43 commit 479f663

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -349,15 +349,15 @@ julia> R8 = Dimensions{DynamicQuantities.FixedRational{Int8,6}};
349349

350350
julia> R32 = Dimensions{DynamicQuantities.FixedRational{Int32,2^4 * 3^2 * 5^2 * 7}}; # Default
351351

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];
353353

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];
355355

356356
julia> f(x) = @. x ^ 2 * 0.5;
357357

358358
julia> @btime f($q8);
359-
7.750 μs (1 allocation: 15.75 KiB)
359+
1.433 μs (3 allocations: 15.77 KiB)
360360

361361
julia> @btime f($q32);
362-
8.417 μs (2 allocations: 39.11 KiB)
362+
1.883 μs (4 allocations: 39.12 KiB)
363363
```

0 commit comments

Comments
 (0)