Skip to content

Improve test coverage of arrays #173

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 29, 2025
Merged

Improve test coverage of arrays #173

merged 2 commits into from
Mar 29, 2025

Conversation

MilesCranmer
Copy link
Member

No description provided.

Copy link
Contributor

Benchmark Results

main 15ffe99... main / 15ffe99...
Quantity/creation/Quantity(x) 4.02 ± 0.01 ns 4.02 ± 0.01 ns 1
Quantity/creation/Quantity(x, length=y) 3.73 ± 0.01 ns 3.73 ± 0.01 ns 1
Quantity/with_numbers/*real 2.79 ± 0.001 ns 2.79 ± 0.001 ns 1
Quantity/with_numbers/^int 8.37 ± 1.6 ns 8.37 ± 1.6 ns 1
Quantity/with_numbers/^int * real 8.98 ± 1.6 ns 8.99 ± 1.6 ns 0.999
Quantity/with_quantity/+y 4.35 ± 0 ns 4.35 ± 0 ns 1
Quantity/with_quantity//y 3.42 ± 0.011 ns 3.42 ± 0.011 ns 1
Quantity/with_self/dimension 3.11 ± 0.001 ns 3.1 ± 0.01 ns 1
Quantity/with_self/inv 3.11 ± 0.001 ns 3.11 ± 0.001 ns 1
Quantity/with_self/ustrip 3.1 ± 0.01 ns 3.1 ± 0.01 ns 1
QuantityArray/broadcasting/multi_array_of_quantities 0.0878 ± 0.0095 ms 0.0878 ± 0.0011 ms 1
QuantityArray/broadcasting/multi_normal_array 0.0496 ± 0.0024 ms 0.0496 ± 0.0021 ms 1
QuantityArray/broadcasting/multi_quantity_array 0.0591 ± 0.0062 ms 0.053 ± 0.0014 ms 1.11
QuantityArray/broadcasting/x^2_array_of_quantities 14 ± 2.6 μs 14.5 ± 3.3 μs 0.964
QuantityArray/broadcasting/x^2_normal_array 2.58 ± 1.9 μs 2.44 ± 2.3 μs 1.06
QuantityArray/broadcasting/x^2_quantity_array 3.58 ± 0.67 μs 3.58 ± 0.39 μs 1
QuantityArray/broadcasting/x^4_array_of_quantities 0.0815 ± 0.0012 ms 0.0815 ± 0.0072 ms 0.999
QuantityArray/broadcasting/x^4_normal_array 0.0496 ± 0.0025 ms 0.0496 ± 0.00023 ms 1
QuantityArray/broadcasting/x^4_quantity_array 0.0467 ± 0.00097 ms 0.0467 ± 0.00025 ms 1
time_to_load 0.197 ± 0.0016 s 0.199 ± 0.0016 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).

@MilesCranmer MilesCranmer merged commit 6bade48 into main Mar 29, 2025
8 checks passed
@MilesCranmer MilesCranmer deleted the improve-coverage branch March 29, 2025 20:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant