{"id":15070218,"url":"https://github.com/laserborg/circuitpython_benchmark","last_synced_at":"2026-01-02T20:44:25.689Z","repository":{"id":216800944,"uuid":"742377059","full_name":"LaserBorg/circuitpython_benchmark","owner":"LaserBorg","description":"Raspberry Pi Pico (RP2040) and Adafruit Metro M7 (NXP IMXRT10XX) benchmark","archived":false,"fork":false,"pushed_at":"2024-01-12T11:20:24.000Z","size":9,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-22T21:41:18.704Z","etag":null,"topics":["adafruit","adafruit-metro-m7","benchmark","circuitpython","float32","matmul","mcu","python3","raspberry-pi-pico"],"latest_commit_sha":null,"homepage":"","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/LaserBorg.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-12T10:40:46.000Z","updated_at":"2024-06-30T20:22:32.000Z","dependencies_parsed_at":"2024-02-01T21:00:46.519Z","dependency_job_id":null,"html_url":"https://github.com/LaserBorg/circuitpython_benchmark","commit_stats":{"total_commits":2,"total_committers":1,"mean_commits":2.0,"dds":0.0,"last_synced_commit":"94215d557969e3b89bbf05e5226c9c05231cc0a2"},"previous_names":["laserborg/circuitpython_benchmark"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaserBorg%2Fcircuitpython_benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaserBorg%2Fcircuitpython_benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaserBorg%2Fcircuitpython_benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LaserBorg%2Fcircuitpython_benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LaserBorg","download_url":"https://codeload.github.com/LaserBorg/circuitpython_benchmark/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243849527,"owners_count":20357794,"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":["adafruit","adafruit-metro-m7","benchmark","circuitpython","float32","matmul","mcu","python3","raspberry-pi-pico"],"created_at":"2024-09-25T02:00:57.667Z","updated_at":"2026-01-02T20:44:25.616Z","avatar_url":"https://github.com/LaserBorg.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# circuitpython benchmark\n\nRaspberry Pi Pico (RP2040), Adafruit Metro M7 (NXP IMXRT10XX) and Intel i7 CPU benchmark.\n\n## abstract\nScript for Python and CircuitPython measures computation time, covering:\n- int and float datatypes\n- vectorized vs. looped operations \n- arithmetic, algebraic and trigonometric operations.\n\n\n## results\n\n|\u003cbr\u003e datatype|\u003cbr\u003eoperation| **Raspberry Pi Pico**\u003cbr\u003et (s)|  |**Adafruit Metro M7**\u003cbr\u003et (s)| \u003cbr\u003evs. Pico|  | **Intel i7-6700HQ Laptop** \u003cbr\u003et (s)| \u003cbr\u003e vs. Pico |\n|----------------:|------------:|------------:|---------:|----------------------:|---------:|-----:|---------------------:|---------:|\n|                 |             |             |          |                       |          |      |                      |          |\n| int             | bitshift    | 31.614      |          | 6.710                 | 4.7 x    |      | 0.164                | 192.5 x  |\n|                 |             |             |          |                       |          |      |                      |          |\n| int             | modulo      | 12.077      |          | 2.404                 | 5.0 x    |      | 0.147                | 82.0 x   |\n| int             | bitwise-and | 11.597      |          | 2.313                 | 5.0 x    |      | 0.145                | 80.1 x   |\n| int             | bitwise-or  | 11.596      |          | 2.314                 | 5.0 x    |      | 0.152                | 76.5 x   |\n| int             | bitwise-xor | 11.598      |          | 2.312                 | 5.0 x    |      | 0.152                | 76.4 x   |\n|                 |             |             |          |                       |          |      |                      |          |\n| int             | add         | 19.694      |          | 4.051                 | 4.9 x    |      | 0.152                | 129.2 x  |\n| float           | add         | 13.319      |          | 2.629                 | 5.1 x    |      | 0.127                | 105.1 x  |\n| array(np.float) | add         | 1.561       |          | 0.183                 | 8.5 x    |      | 0.006                | 248.7 x  |\n| vec speedup     |             | 8.5 x       |          | 14.4 x                |          |      | 20.2 x               |          |\n|                 |             |             |          |                       |          |      |                      |          |\n| int             | sub         | 11.597      |          | 2.313                 | 5.0 x    |      | 0.147                | 79.1 x   |\n| float           | sub         | 13.566      |          | 2.633                 | 5.2 x    |      | 0.132                | 102.5 x  |\n| array(np.float) | sub         | 1.754       |          | 0.179                 | 9.8 x    |      | 0.006                | 272.3 x  |\n| vec speedup     |             | 7.7 x       |          | 14.7 x                |          |      | 20.5 x               |          |\n|                 |             |             |          |                       |          |      |                      |          |\n| int             | mul         | 34.808      |          | 6.549                 | 5.3 x    |      | 0.144                | 241.6 x  |\n| float           | mul         | 13.383      |          | 2.639                 | 5.1 x    |      | 0.135                | 98.9 x   |\n| array(np.float) | mul         | 1.890       |          | 0.204                 | 9.3 x    |      | 0.006                | 311.1 x  |\n| vec speedup     |             | 7.1 x       |          | 12.9 x                |          |      | 22.3 x               |          |\n|                 |             |             |          |                       |          |      |                      |          |\n| int             | div         | 13.549      |          | 2.381                 | 5.7 x    |      | 0.138                | 97.9 x   |\n| float           | div         | 13.991      |          | 2.692                 | 5.2 x    |      | 0.125                | 111.5 x  |\n| array(np.float) | div         | 2.097       |          | 0.238                 | 8.8 x    |      | 0.006                | 340.9 x  |\n| vec speedup     |             | 6.7 x       |          | 11.3 x                |          |      | 20.4 x               |          |\n|                 |             |             |          |                       |          |      |                      |          |\n| int             | exp         | 20.625      |          | 3.221                 | 6.4 x    |      | 0.297                | 69.4 x   |\n| float           | exp         | 20.457      |          | 3.547                 | 5.8 x    |      | 0.285                | 71.7 x   |\n| array(np.float) | exp         | 6.627       |          | 0.510                 | 13.0 x   |      | 0.012                | 548.1 x  |\n| vec speedup     |             | 3.1 x       |          | 7.0 x                 |          |      | 23.6 x               |          |\n|                 |             |             |          |                       |          |      |                      |          |\n| int             | sqr         | 17.391      |          | 3.241                 | 5.4 x    |      | 0.288                | 60.4 x   |\n| float           | sqr         | 17.134      |          | 3.301                 | 5.2 x    |      | 0.276                | 62.2 x   |\n| array(np.float) | sqr         | 2.844       |          | 1.017                 | 2.8 x    |      | 0.006                | 445.9 x  |\n| vec speedup     |             | 6.0 x       |          | 3.2 x                 |          |      | 43.2 x               |          |\n|                 |             |             |          |                       |          |      |                      |          |\n| float           | sin         | 23.491      |          | 3.550                 | 6.6 x    |      | 0.281                | 83.7 x   |\n| array(np.float) | sin         | 6.638       |          | 0.605                 | 11.0 x   |      | 0.015                | 451.7 x  |\n| vec speedup     |             | 3.5 x       |          | 5.9 x                 |          |      | 19.1 x               |          |\n|                 |             |             |          |                       |          |      |                      |          |\n| float           | cos         | 20.729      |          | 3.539                 | 5.9 x    |      | 0.299                | 69.3 x   |\n| array(np.float) | cos         | 6.625       |          | 0.603                 | 11.0 x   |      | 0.014                | 467.0 x  |\n| vec speedup     |             | 3.1 x       |          | 5.9 x                 |          |      | 21.1 x               |          |\n|                 |             |             |          |                       |          |      |                      |          |\n| float           | tan         | 21.281      |          | 3.682                 | 5.8 x    |      | 0.287                | 74.0 x   |\n| array(np.float) | tan         | 7.151       |          | 0.768                 | 9.3 x    |      | 0.025                | 290.2 x  |\n| vec speedup     |             | 3.0 x       |          | 4.8 x                 |          |      | 11.7 x               |          |\n|                 |             |             |          |                       |          |      |                      |          |\n| float           | log         | 23.290      |          | 3.514                 | 6.6 x    |      | 0.331                | 70.3 x   |\n| array(np.float) | log         | 8.475       |          | 0.625                 | 13.6 x   |      | 0.012                | 724.0 x  |\n| vec speedup     |             | 2.7 x       |          | 5.6 x                 |          |      | 28.3 x               |          |\n|                 |             |             |          |                       |          |      |                      |          |\n| for(int)        | matmul      | 9.812       |          | 2.049                 | 4.8 x    |      | 0.274                | 35.9 x   |\n| M(np.int16)     | matmul      | 1.146       |          | 0.045                 | 25.5 x   |      | 0.001                | 1200.4 x |\n| vec speedup     |             | 8.6 x       |          | 45.6 x                |          |      | 286.5 x              |          |\n|                 |             |             |          |                       |          |      |                      |          |\n| for(float)      | matmul      | 11.020      |          | 2.632                 | 4.2 x    |      | 0.253                | 43.6 x   |\n| M(np.float)     | matmul      | 0.802       |          | 0.041                 | 19.6 x   |      | 0.000                | 1914.1 x |\n| vec speedup     |             | 13.7 x      |          | 64.2 x                |          |      | 603.6 x              |          |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaserborg%2Fcircuitpython_benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flaserborg%2Fcircuitpython_benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flaserborg%2Fcircuitpython_benchmark/lists"}