{"id":26730941,"url":"https://github.com/daedalus/powmodtimings","last_synced_at":"2025-03-27T23:34:19.558Z","repository":{"id":66971586,"uuid":"368382997","full_name":"daedalus/powmodtimings","owner":"daedalus","description":"Timing powmod","archived":false,"fork":false,"pushed_at":"2023-11-27T21:00:27.000Z","size":3,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-11-28T21:53:30.045Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/daedalus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-05-18T02:54:12.000Z","updated_at":"2023-11-28T21:53:30.046Z","dependencies_parsed_at":"2023-11-27T21:53:14.006Z","dependency_job_id":null,"html_url":"https://github.com/daedalus/powmodtimings","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daedalus%2Fpowmodtimings","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daedalus%2Fpowmodtimings/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daedalus%2Fpowmodtimings/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/daedalus%2Fpowmodtimings/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/daedalus","download_url":"https://codeload.github.com/daedalus/powmodtimings/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245944020,"owners_count":20697945,"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":"2025-03-27T23:33:09.810Z","updated_at":"2025-03-27T23:34:19.547Z","avatar_url":"https://github.com/daedalus.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"A simple script to measure powmod timings\n\n=== Python 2.7 ===\n```\npython powmodtest.py\n================================================================================\nIterations: 1200\nFunc Name:                     Native Func:                  Time:\n================================================================================\n_pow2mod_bitshift              None                           1.065336\n_pow2mod_f                     pow                            0.682585\n_pow2mod_f                     powmod                         1.073672\n================================================================================\nIterations: 100\nFunc Name:                     Native Func:                  Time:\n================================================================================\npow                            None                           0.273095\npowmod                         None                           0.562275\n_powmod_bs                     None                           1.513844\n--------------------------------------------------------------------------------\n_powmod_catch2                 pow                            0.415599\n_powmod_catch2                 powmod                         0.771345\n_powmod_catch22                None                           0.712725\n_powmod_catch2                 _powmod_bs                     1.649839\n--------------------------------------------------------------------------------\n_powmod_catchEven              pow                            0.695169\n_powmod_catchEven              powmod                         1.203543\n_powmod_catchEven              _powmod_bs                     2.020275\n--------------------------------------------------------------------------------\n_pow                           pow                            5.693182\n_pow                           powmod                         6.001722\n_pow                           _powmod_bs                     6.634488\n```\n\n=== Python 3.9 ===\n```\npython3 powmodtest.py\n================================================================================\nIterations: 1200\nFunc Name:                     Native Func:                  Time:\n================================================================================\n_pow2mod_bitshift              None                           0.880005\n_pow2mod_f                     pow                            1.938313\n_pow2mod_f                     powmod                         1.154819\n================================================================================\nIterations: 100\nFunc Name:                     Native Func:                  Time:\n================================================================================\npow                            None                           0.991846\npowmod                         None                           0.585883\n_powmod_bs                     None                           1.533876\n--------------------------------------------------------------------------------\n_powmod_catch2                 pow                            1.220823\n_powmod_catch2                 powmod                         0.795703\n_powmod_catch22                None                           0.706532\n_powmod_catch2                 _powmod_bs                     1.755621\n--------------------------------------------------------------------------------\n_powmod_catchEven              pow                            1.508047\n_powmod_catchEven              powmod                         1.414726\n_powmod_catchEven              _powmod_bs                     2.115719\n--------------------------------------------------------------------------------\n_pow                           pow                            8.119277\n_pow                           powmod                         8.132482\n_pow                           _powmod_bs                     9.281946\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaedalus%2Fpowmodtimings","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdaedalus%2Fpowmodtimings","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdaedalus%2Fpowmodtimings/lists"}