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 more prefixes #100

Closed MilesCranmer closed 7 months ago

MilesCranmer commented 7 months ago

Apparently the common prefixes are not too uncommon, so we can add them:

github-actions[bot] commented 7 months ago

Benchmark Results

main c260429c55885c... t[main]/t[c260429c55885c...]
Quantity/creation/Quantity(x) 3.1 ± 0.01 ns 3.1 ± 0.01 ns 1
Quantity/creation/Quantity(x, length=y) 3.1 ± 0.24 ns 3.11 ± 0.01 ns 0.996
Quantity/with_numbers/*real 3.1 ± 0.01 ns 3.1 ± 0.01 ns 1
Quantity/with_numbers/^int 8.28 ± 2.5 ns 8.36 ± 2.5 ns 0.99
Quantity/with_numbers/^int * real 8.37 ± 2.5 ns 8.36 ± 2.5 ns 1
Quantity/with_quantity/+y 5.27 ± 0.01 ns 5.27 ± 0.01 ns 1
Quantity/with_quantity//y 3.11 ± 0.001 ns 3.11 ± 0.001 ns 1
Quantity/with_self/dimension 1.55 ± 0.01 ns 1.55 ± 0.01 ns 1
Quantity/with_self/inv 3.11 ± 0.001 ns 3.11 ± 0.01 ns 1
Quantity/with_self/ustrip 1.55 ± 0.01 ns 1.55 ± 0.01 ns 1
QuantityArray/broadcasting/multi_array_of_quantities 0.149 ± 0.14 ms 0.147 ± 0.0051 ms 1.02
QuantityArray/broadcasting/multi_normal_array 0.0498 ± 0.00022 ms 0.0589 ± 0.0079 ms 0.844
QuantityArray/broadcasting/multi_quantity_array 0.158 ± 0.00095 ms 0.158 ± 0.00082 ms 1
QuantityArray/broadcasting/x^2_array_of_quantities 25.1 ± 2.2 μs 24.6 ± 1.6 μs 1.02
QuantityArray/broadcasting/x^2_normal_array 4.05 ± 1.1 μs 4.16 ± 0.99 μs 0.973
QuantityArray/broadcasting/x^2_quantity_array 6.88 ± 0.19 μs 6.91 ± 0.21 μs 0.996
QuantityArray/broadcasting/x^4_array_of_quantities 0.0783 ± 0.00042 ms 0.0783 ± 0.00037 ms 1
QuantityArray/broadcasting/x^4_normal_array 0.0497 ± 0.00014 ms 0.0497 ± 0.00017 ms 1
QuantityArray/broadcasting/x^4_quantity_array 0.0591 ± 0.00016 ms 0.0592 ± 0.00019 ms 1
time_to_load 0.239 ± 0.0016 s 0.239 ± 0.00088 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).