{"id":25951481,"url":"https://github.com/k1lgor/cython","last_synced_at":"2025-09-03T22:37:53.608Z","repository":{"id":176073804,"uuid":"654919568","full_name":"k1lgor/cython","owner":"k1lgor","description":"Benchmark repo comparing Python and Cython","archived":false,"fork":false,"pushed_at":"2024-03-21T17:40:58.000Z","size":128,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-04T21:07:16.526Z","etag":null,"topics":["benchmark","cython","fibonacci","fibonacci-numbers","fibonacci-sequence","lcg","prime","prime-numbers","python","python3"],"latest_commit_sha":null,"homepage":"https://k1lgor.github.io/cython/","language":"SCSS","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/k1lgor.png","metadata":{"files":{"readme":"README.md","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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-06-17T10:31:13.000Z","updated_at":"2023-06-18T13:48:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"a8145152-ff8c-4160-8c14-02543747f46c","html_url":"https://github.com/k1lgor/cython","commit_stats":null,"previous_names":["k1lgor/cython"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/k1lgor/cython","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1lgor%2Fcython","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1lgor%2Fcython/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1lgor%2Fcython/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1lgor%2Fcython/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/k1lgor","download_url":"https://codeload.github.com/k1lgor/cython/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/k1lgor%2Fcython/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273523364,"owners_count":25120861,"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","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["benchmark","cython","fibonacci","fibonacci-numbers","fibonacci-sequence","lcg","prime","prime-numbers","python","python3"],"created_at":"2025-03-04T13:48:34.907Z","updated_at":"2025-09-03T22:37:53.545Z","avatar_url":"https://github.com/k1lgor.png","language":"SCSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# *Python vs Cython Benchmark*\n\n## **Description**\n\nThis repository contains a collection of benchmark scripts to compare the performance between Python and Cython implementations. The benchmark focuses on measuring the execution time of various algorithms and tasks implemented in both Python and Cython, highlighting the potential performance improvements achieved by using Cython.\n\n## **Key Features**\n\n- Benchmark scripts for different algorithms and tasks implemented in Python and Cython.\n- Performance measurements for each benchmark, including execution time comparisons.\n- Detailed documentation and explanations of the benchmarking methodology.\n- Instructions for running the benchmarks and interpreting the results.\n- Sample code showcasing the usage of Python and Cython for performance optimization.\n\n## **Purpose**\n\nThe main purpose of this repository is to provide developers and enthusiasts with a practical reference for understanding the performance differences between Python and Cython. By comparing the execution times of various scripts implemented in both languages, users can gain insights into the potential speed improvements that can be achieved by utilizing Cython's static typing and optimizations.\n\n## **How to Use**\n\nTo run the benchmark, follow these steps:\n\n1. Make sure you have Python and Cython installed on your machine.\n    - \u003cu\u003eUnix/Linux\u003c/u\u003e\n        - Python Installation\n\n            ```bash\n            # Check if Python and pip are already installed\n            python3 --version\n            pip3 --version\n\n            # If Python and pip are not installed, install using package manager\n            # For Debian/Ubuntu\n            sudo apt update\n            sudo apt install python3 python3-pip \n\n            # For RedHat/Fedora/CentOS\n            sudo dnf update\n            sudo dnf install python3 python3-pip \n\n            # For Arch/Manjaro\n            sudo pacman -Sy python python-pip \n\n            # For OpenSUSE\n            sudo zypper refresh\n            sudo zypper install python3 python3-pip \n            \n            ```\n\n        - Cython Installation\n\n            ```bash\n            # Install Cython using pip\n            pip3 install cython\n            ```\n\n    - \u003cu\u003emacOS\u003c/u\u003e\n        - Python Installation\n\n            ```bash\n            # Check if Python and pip are already installed\n            python3 --version\n            pip3 --version\n\n            # If Python and pip are not installed, install using Homebrew\n            brew update\n            brew install python python-pip\n            ```\n\n        - Cython Installation\n\n            ```bash\n            pip install cython\n            ```\n\n    - \u003cu\u003eWindows\u003c/u\u003e\n        - Python Installation\n            1. Go to the official Python website: \u003chttps://www.python.org/downloads/windows/\u003e\n            2. Download the latest Python installer for Windows.\n            3. Run the installer and follow the installation instructions. Make sure to check the box that adds Python to the system PATH.\n\n        - Cython Installation\n\n            ```powershell\n            # Install Cython using pip\n            pip install cython\n            ```\n\n2. Clone this repository to your local machine.\n\n    ```bash\n    git clone git@github.com:k1lgor/cython.git\n    ```\n\n3. Navigate to the repository's directory.\n\n    ```bash\n    cd cython\n    ```\n\n4. Open a terminal and run the following command to execute the benchmark:\n\n   ```bash\n   python \u003cfilename\u003e.py\n   ```\n\n## **Automatic Trigger (Workflow)**\n\nA GitHub Actions workflow has been set up to automatically run the benchmarks and generate the performance results. The workflow is triggered whenever changes are pushed to the repository's main branch. The benchmark results, including execution times and performance comparisons, are saved as artifacts and can be accessed from the Actions tab in the repository.\n\n## **Contribution**\n\nContributions to this repository are welcome! If you have additional benchmark scripts, performance optimizations, or improvements to the existing benchmarks, feel free to submit a pull request. Please ensure that the benchmarks follow the established guidelines and provide clear documentation for **reproducibility** and accuracy.\n\n## **License**\n\nThis repository is licensed under the [MIT License](./LICENSE), allowing users to freely use, modify, and distribute the benchmark scripts. However, it's recommended to review the license file in the repository for more information.\n\n## **Disclaimer**\n\nThe benchmark results may vary depending on the specific hardware, software configuration, and optimization techniques used. The purpose of this repository is to provide general insights and comparisons between Python and Cython, but individual results may differ. Users are encouraged to conduct their own benchmarks and performance measurements based on their specific use cases and requirements.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1lgor%2Fcython","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fk1lgor%2Fcython","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fk1lgor%2Fcython/lists"}