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 Ohm SI prefixes used in circuit design #109

Closed GlenHertz closed 5 months ago

github-actions[bot] commented 5 months ago

Benchmark Results

main 493e54601eef89... t[main]/t[493e54601eef89...]
Quantity/creation/Quantity(x) 4.02 ± 0.92 ns 2.79 ± 0 ns 1.44
Quantity/creation/Quantity(x, length=y) 3.11 ± 0.001 ns 3.41 ± 0.01 ns 0.912
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 ± 1.8 ns 1.08
Quantity/with_numbers/^int * real 8.36 ± 2.2 ns 8.37 ± 1.9 ns 0.999
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.11 ± 0.001 ns 1.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.149 ± 0.0012 ms 0.149 ± 0.0013 ms 1
QuantityArray/broadcasting/multi_normal_array 0.0499 ± 0.0002 ms 0.0529 ± 0.00025 ms 0.944
QuantityArray/broadcasting/multi_quantity_array 0.155 ± 0.00074 ms 0.158 ± 0.00075 ms 0.982
QuantityArray/broadcasting/x^2_array_of_quantities 24.6 ± 2.3 μs 24 ± 2.3 μs 1.03
QuantityArray/broadcasting/x^2_normal_array 4.34 ± 0.99 μs 4.3 ± 1.2 μs 1.01
QuantityArray/broadcasting/x^2_quantity_array 6.97 ± 0.25 μs 6.93 ± 0.25 μs 1.01
QuantityArray/broadcasting/x^4_array_of_quantities 0.0785 ± 0.00054 ms 0.0784 ± 0.00049 ms 1
QuantityArray/broadcasting/x^4_normal_array 0.0498 ± 0.00017 ms 0.0497 ± 0.00017 ms 1
QuantityArray/broadcasting/x^4_quantity_array 0.05 ± 0.00018 ms 0.0499 ± 0.00015 ms 1
time_to_load 0.13 ± 0.003 s 0.128 ± 0.0011 s 1.01

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

MilesCranmer commented 5 months ago

Cheers!