SymbolicML / DynamicQuantities.jl

Efficient and type-stable physical quantities in Julia
https://symbolicml.org/DynamicQuantities.jl/dev/
Apache License 2.0
120 stars 15 forks source link

Test 1.11 #126

Closed MilesCranmer closed 2 months ago

MilesCranmer commented 3 months ago

Also cleans up [compat] by creating a Project.toml in the test folder instead

github-actions[bot] commented 3 months ago

Benchmark Results

main ba519ccceccaaf... main/ba519ccceccaaf...
Quantity/creation/Quantity(x) 3.11 ± 0.91 ns 3.41 ± 0.01 ns 0.912
Quantity/creation/Quantity(x, length=y) 3.11 ± 0.001 ns 3.11 ± 0.01 ns 1
Quantity/with_numbers/*real 3.11 ± 0.001 ns 3.11 ± 0.01 ns 1
Quantity/with_numbers/^int 8.67 ± 2.5 ns 8.05 ± 2.2 ns 1.08
Quantity/with_numbers/^int * real 8.36 ± 2.2 ns 8.67 ± 2.5 ns 0.964
Quantity/with_quantity/+y 4.06 ± 0.02 ns 4.04 ± 0.001 ns 1
Quantity/with_quantity//y 3.42 ± 0.01 ns 3.42 ± 0.01 ns 1
Quantity/with_self/dimension 3.1 ± 0.01 ns 3.1 ± 0.01 ns 1
Quantity/with_self/inv 3.42 ± 0.01 ns 3.11 ± 0.001 ns 1.1
Quantity/with_self/ustrip 3.1 ± 0.01 ns 2.79 ± 0.01 ns 1.11
QuantityArray/broadcasting/multi_array_of_quantities 0.142 ± 0.00078 ms 0.141 ± 0.0011 ms 1
QuantityArray/broadcasting/multi_normal_array 0.0509 ± 0.003 ms 0.0557 ± 0.003 ms 0.914
QuantityArray/broadcasting/multi_quantity_array 0.157 ± 0.0006 ms 0.157 ± 0.00065 ms 0.999
QuantityArray/broadcasting/x^2_array_of_quantities 23 ± 1.8 μs 22.7 ± 1.8 μs 1.01
QuantityArray/broadcasting/x^2_normal_array 5.35 ± 0.72 μs 4.44 ± 1.1 μs 1.21
QuantityArray/broadcasting/x^2_quantity_array 7.09 ± 0.28 μs 6.98 ± 0.24 μs 1.02
QuantityArray/broadcasting/x^4_array_of_quantities 0.0814 ± 0.00058 ms 0.0814 ± 0.00058 ms 1
QuantityArray/broadcasting/x^4_normal_array 0.0498 ± 0.00018 ms 0.0482 ± 0.0031 ms 1.03
QuantityArray/broadcasting/x^4_quantity_array 0.0499 ± 0.00016 ms 0.0501 ± 0.00022 ms 0.997
time_to_load 0.135 ± 0.00094 s 0.135 ± 0.00039 s 1

Benchmark Plots

A plot of the benchmark results have been uploaded as an artifact to the workflow run for this PR. Go to "Actions"->"Benchmark a pull request"->[the most recent run]->"Artifacts" (at the bottom).