Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions asv.conf.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"version": 1,
"project": "astropy",
"project_url": "http://astropy.org/",
"repo": "https://github.com/Cadair/astropy.git",
"branches": ["performance_issues_decompress_tile"],
"environment_type": "virtualenv",
"show_commit_url": "https://github.com/Cadair/astropy/commit/",
"pythons": ["3.11"],
"build_command": [
"python -m pip install build",
"python -m build --wheel -o {build_cache_dir} {build_dir}",
]
}
Empty file added benchmarks/__init__.py
Empty file.
16 changes: 16 additions & 0 deletions benchmarks/benchmarks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import os
from astropy.io import fits

AIA_DATA = os.path.join(os.path.dirname(__file__), '..', 'data', 'aia_lev1_193a_2013_03_15t12_01_06_84z_image_lev1.fits')


class TimeDataAccess:
"""
An example benchmark that times the performance of various kinds
of iterating over dictionaries in Python.
"""
def setup(self):
self.hdu = fits.open(AIA_DATA)[1]

def time_access_data_aia(self):
self.hdu.data
7 changes: 7 additions & 0 deletions run_asv.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash -xe

# Last commit before FITS changes
taskset -c 0 asv run -e 9409d02ff9e101d4215f83aa1f9a23d805230fd0^!

# All commits since
taskset -c 0 asv run -e NEW