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

Add example of `AngleDimensions` #121

Closed MilesCranmer closed 3 months ago

github-actions[bot] commented 3 months ago

Benchmark Results

main 8b2dcde4d87590... main/8b2dcde4d87590...
Quantity/creation/Quantity(x) 2.79 ± 0 ns 2.81 ± 0.92 ns 0.996
Quantity/creation/Quantity(x, length=y) 3.42 ± 0.01 ns 3.41 ± 0.01 ns 1
Quantity/with_numbers/*real 3.11 ± 0.01 ns 3.11 ± 0.01 ns 1
Quantity/with_numbers/^int 8.37 ± 2.2 ns 8.36 ± 2.2 ns 1
Quantity/with_numbers/^int * real 8.05 ± 1.9 ns 8.05 ± 1.8 ns 1
Quantity/with_quantity/+y 4.04 ± 0.001 ns 4.04 ± 0.001 ns 1
Quantity/with_quantity//y 3.11 ± 0.001 ns 3.11 ± 0.001 ns 1
Quantity/with_self/dimension 2.79 ± 0.009 ns 2.79 ± 0.009 ns 1
Quantity/with_self/inv 3.11 ± 0.001 ns 3.11 ± 0.001 ns 1
Quantity/with_self/ustrip 2.79 ± 0.01 ns 2.79 ± 0 ns 1
QuantityArray/broadcasting/multi_array_of_quantities 0.149 ± 0.0011 ms 0.15 ± 0.00084 ms 0.999
QuantityArray/broadcasting/multi_normal_array 0.0498 ± 0.00015 ms 0.0498 ± 0.00018 ms 1
QuantityArray/broadcasting/multi_quantity_array 0.155 ± 0.0006 ms 0.155 ± 0.00055 ms 1
QuantityArray/broadcasting/x^2_array_of_quantities 23.3 ± 2.4 μs 22.8 ± 1.5 μs 1.02
QuantityArray/broadcasting/x^2_normal_array 4.44 ± 1.1 μs 4.03 ± 0.73 μs 1.1
QuantityArray/broadcasting/x^2_quantity_array 6.95 ± 0.23 μs 7.01 ± 0.25 μs 0.991
QuantityArray/broadcasting/x^4_array_of_quantities 0.0787 ± 0.00046 ms 0.0787 ± 0.00048 ms 1
QuantityArray/broadcasting/x^4_normal_array 0.0498 ± 0.00016 ms 0.0498 ± 0.00017 ms 1
QuantityArray/broadcasting/x^4_quantity_array 0.0499 ± 0.00017 ms 0.0499 ± 0.00016 ms 1
time_to_load 0.128 ± 0.0007 s 0.129 ± 0.00092 s 0.993

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).