{"id":20760407,"url":"https://github.com/vanng822/pyperf","last_synced_at":"2026-04-20T08:02:25.028Z","repository":{"id":145813533,"uuid":"11862155","full_name":"vanng822/pyperf","owner":"vanng822","description":"for some simple performance test on python","archived":false,"fork":false,"pushed_at":"2013-08-11T09:03:13.000Z","size":292,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-11T16:49:43.422Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C","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/vanng822.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}},"created_at":"2013-08-03T11:24:39.000Z","updated_at":"2013-08-11T09:03:14.000Z","dependencies_parsed_at":"2023-03-23T03:26:17.514Z","dependency_job_id":null,"html_url":"https://github.com/vanng822/pyperf","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vanng822/pyperf","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fpyperf","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fpyperf/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fpyperf/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fpyperf/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vanng822","download_url":"https://codeload.github.com/vanng822/pyperf/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vanng822%2Fpyperf/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32038455,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"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":[],"created_at":"2024-11-17T10:13:31.573Z","updated_at":"2026-04-20T08:02:25.014Z","avatar_url":"https://github.com/vanng822.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"pyperf\n======\n\nfor some simple performance test on python\n\n# How to\n\t# assume python 2.7\n\t\n\t\u003e virtualenv -p python python2.7\n\t\n\t\u003e source python2.7/bin/activate\n\t\n\t\u003e pip install cython\n\t\n\t# for compiling latest version of cymandelbrot\n\t\u003e cython mandelbrot/cymandelbrot.pyx\n\t\n\t# run the test code\n\t\u003e python setup.py test -s tests.test_mandelbrot_compare.MandelbrotTest\n\t\n\t# Compiling using swig on Mac but inchecked binary may work if you don't have swig\n\t\u003e cd mandelbrot\n\t\n\t\u003e swig -python swigmandelbrot.i \n\t\n\t\u003e gcc -c mandelbrot.c swigmandelbrot_wrap.c -I../python2.7/include/python2.7/\n\t\n\t\u003e gcc -bundle `python-config --ldflags` mandelbrot.o swigmandelbrot_wrap.o -o _swigmandelbrot.so\n\n\n# Result\n## Mandelbrot\n\nC-module\n\n4 function calls in 0.015 seconds\n\nCython\n\n4 function calls in 0.018 seconds\n\nSwig on same c code as C-module\n\n4 function calls in 0.027 seconds\n\nPython\n\n12329 function calls in 2.347 seconds\n\n## Sieve of Eratosthenes\n\nPython\n\n7 function calls in 9.984 seconds\n\nCython\n\n4 function calls in 0.180 seconds\n \nC-module\n\n4 function calls in 0.173 seconds\n\nSwig\n\n4 function calls in 0.269 seconds\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanng822%2Fpyperf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvanng822%2Fpyperf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvanng822%2Fpyperf/lists"}