{"id":19164455,"url":"https://github.com/cupy/cupy-benchmark","last_synced_at":"2025-05-07T12:11:04.139Z","repository":{"id":103432079,"uuid":"125499327","full_name":"cupy/cupy-benchmark","owner":"cupy","description":"CuPy Benchmark","archived":false,"fork":false,"pushed_at":"2019-04-15T05:29:19.000Z","size":36,"stargazers_count":12,"open_issues_count":6,"forks_count":5,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-04-28T23:25:55.947Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cupy.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null},"funding":{"github":["cupy"]}},"created_at":"2018-03-16T10:11:26.000Z","updated_at":"2021-11-12T13:04:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"e8553bdf-2279-4983-bfa0-bc5a6e62dc2c","html_url":"https://github.com/cupy/cupy-benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cupy%2Fcupy-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cupy%2Fcupy-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cupy%2Fcupy-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cupy%2Fcupy-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cupy","download_url":"https://codeload.github.com/cupy/cupy-benchmark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252873949,"owners_count":21817714,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T09:22:08.947Z","updated_at":"2025-05-07T12:11:04.118Z","avatar_url":"https://github.com/cupy.png","language":"Python","funding_links":["https://github.com/sponsors/cupy"],"categories":[],"sub_categories":[],"readme":"CuPy Benchmark\n==============\n\nBenchmarking CuPy with Airspeed Velocity.\n\nRequirements\n------------\n\nYou need to install ``asv`` benchmark framework.\n\n.. code-block:: console\n\n    pip install asv\n\nUsage\n-----\n\n.. code-block:: sh\n\n    # Enable ccache for performance (optional).\n    export PATH=\"/usr/lib/ccache:${PATH}\"\n    export NVCC=\"ccache nvcc\"\n\n    # Run benchmark against target commit-ish of CuPy.\n    asv run --step 1 master\n    asv run --step 1 v4.0.0b4\n\n    # Compare the benchmark results between two commits to see regression\n    # and/or performance improvements in command line.\n    alias git_commit='git show --format=\"%H\"'\n    asv compare $(git_commit v4.0.0b4) $(git_commit master)\n\n    # Convert the results into HTML.\n    # The result will be in `html` directory.\n    asv publish\n\n    # Start the HTTP server to browse HTML.\n    asv preview\n\nAlternatively you can use Docker.\n\n.. code-block:: sh\n\n    # Build docker image for benchmark.\n    docker build -t cupy-benchmark docker\n\n    # Create a machine configuration file (`.asv-machine.json`) in this directory (first time only).\n    nvidia-docker run --rm -u $(id -u):$(id -g) -v ${PWD}:/benchmarks -w /benchmarks -e HOME=/benchmarks cupy-benchmark asv machine --machine $(hostname)\n\n    # Run benchmark.\n    nvidia-docker run --rm -u $(id -u):$(id -g) -v ${PWD}:/benchmarks -w /benchmarks -e HOME=/benchmarks cupy-benchmark asv run --step 1 master\n\nNumPy Benchmark\n---------------\n\n``benchmarks/numpy`` directory contains `benchmark scripts \u003chttps://github.com/numpy/numpy/tree/master/benchmarks\u003e`_ forked from NumPy 1.14.2, with the following modifications:\n\n* Replace ``import numpy as np`` with ``import cupy as np``.\n* Add ``@sync`` decorator to each benchmark classes.\n\nSome other tiny modifications (remove unsupported dtypes etc.) are also applied to fill the gap between NumPy and CuPy.\n\nBenchmarks for features implemented in NumPy but not in CuPy are left intentionally.\nIt is an expected behavior to see such error (e.g., ``AttributeError: module 'cupy' has no attribute 'tril'``) during benchmark.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcupy%2Fcupy-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcupy%2Fcupy-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcupy%2Fcupy-benchmark/lists"}