Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Conversation

@thuydotm
Copy link
Contributor

This PR adds benchmarking for aspect()

@thuydotm
Copy link
Contributor Author

thuydotm commented Jan 24, 2022

$ asv run -b Aspect
· Fetching recent changes
· Creating environments
· Discovering benchmarks
· Running 1 total benchmarks (1 commits * 1 environments * 1 benchmarks)
[  0.00%] · For xarray-spatial commit 0ed48198 <master>:
[  0.00%] ·· Benchmarking virtualenv-py3.8-pyct
[ 50.00%] ··· Running (aspect.Aspect.time_aspect--).
[100.00%] ··· aspect.Aspect.time_aspect                                       ok
[100.00%] ··· ======= ============= ======
              --              type        
              ------- --------------------
                 nx       numpy      cupy 
              ======= ============= ======
                100      387±9μs     n/a  
                300    2.50±0.01ms   n/a  
                1000   28.2±0.06ms   n/a  
                3000    258±0.1ms    n/a  
               10000     2.87±0s     n/a  
              ======= ============= ======

@ianthomas23
Copy link
Contributor

On my dev machine with RTX 3060:

[100.00%] ··· aspect.Aspect.time_aspect                                                                       ok
[100.00%] ··· ======= ============= =============
              --                  type           
              ------- ---------------------------
                 nx       numpy          cupy    
              ======= ============= =============
                100      251±4μs       495±20μs  
                300    1.54±0.01ms     479±20μs  
                1000   17.0±0.05ms     587±20μs  
                3000    159±0.4ms    2.81±0.01ms 
               10000     1.79±0s     32.0±0.02ms 
              ======= ============= =============

aspect

which is 30 - 60 times faster on GPU than CPU.

@ianthomas23 ianthomas23 merged commit 2d5d300 into master Jan 28, 2022
@thuydotm thuydotm deleted the benchmark_aspect branch June 1, 2022 04:28
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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.