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 common SI prefixes for Farads (used in circuit design) #108

Closed GlenHertz closed 5 months ago

MilesCranmer commented 5 months ago

Cheers!

github-actions[bot] commented 5 months ago

Benchmark Results

main 35327d7a9ee96b... t[main]/t[35327d7a9ee96b...]
Quantity/creation/Quantity(x) 3.1 ± 0.01 ns 4.33 ± 0.01 ns 0.717
Quantity/creation/Quantity(x, length=y) 3.11 ± 0.001 ns 3.11 ± 0.01 ns 1
Quantity/with_numbers/*real 3.1 ± 0.01 ns 3.1 ± 0.01 ns 1
Quantity/with_numbers/^int 8.67 ± 2.2 ns 8.05 ± 2.2 ns 1.08
Quantity/with_numbers/^int * real 8.36 ± 2.2 ns 8.67 ± 2.2 ns 0.964
Quantity/with_quantity/+y 4.04 ± 0.001 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.41 ± 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.15 ± 0.001 ms 0.145 ± 0.00059 ms 1.04
QuantityArray/broadcasting/multi_normal_array 0.0498 ± 0.00018 ms 0.0529 ± 0.00017 ms 0.943
QuantityArray/broadcasting/multi_quantity_array 0.155 ± 0.00067 ms 0.155 ± 0.00061 ms 1
QuantityArray/broadcasting/x^2_array_of_quantities 23.1 ± 1.4 μs 22.7 ± 1.4 μs 1.02
QuantityArray/broadcasting/x^2_normal_array 4.1 ± 0.87 μs 4.12 ± 0.86 μs 0.995
QuantityArray/broadcasting/x^2_quantity_array 6.98 ± 0.24 μs 7.01 ± 0.24 μs 0.996
QuantityArray/broadcasting/x^4_array_of_quantities 0.0785 ± 0.00053 ms 0.0784 ± 0.00042 ms 1
QuantityArray/broadcasting/x^4_normal_array 0.0498 ± 0.00019 ms 0.0467 ± 0.00017 ms 1.07
QuantityArray/broadcasting/x^4_quantity_array 0.0499 ± 0.00017 ms 0.0529 ± 0.00017 ms 0.943
time_to_load 0.128 ± 0.00032 s 0.129 ± 0.00045 s 0.994

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