{"id":19775768,"url":"https://github.com/nsiatras/programming-languages-benchmark","last_synced_at":"2026-04-12T14:53:03.747Z","repository":{"id":58708636,"uuid":"533247555","full_name":"nsiatras/programming-languages-benchmark","owner":"nsiatras","description":"A performance comparison for various programming languages","archived":false,"fork":false,"pushed_at":"2022-09-07T17:22:31.000Z","size":402,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T01:32:27.344Z","etag":null,"topics":["benchmark","c","csharp","delphi","freebasic","freepascal","java","python"],"latest_commit_sha":null,"homepage":"","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/nsiatras.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":"2022-09-06T09:16:01.000Z","updated_at":"2022-09-07T08:22:38.000Z","dependencies_parsed_at":"2023-01-17T23:00:30.715Z","dependency_job_id":null,"html_url":"https://github.com/nsiatras/programming-languages-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/nsiatras%2Fprogramming-languages-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsiatras%2Fprogramming-languages-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsiatras%2Fprogramming-languages-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nsiatras%2Fprogramming-languages-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nsiatras","download_url":"https://codeload.github.com/nsiatras/programming-languages-benchmark/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241106015,"owners_count":19910733,"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":["benchmark","c","csharp","delphi","freebasic","freepascal","java","python"],"created_at":"2024-11-12T05:17:28.711Z","updated_at":"2025-12-31T01:12:23.868Z","avatar_url":"https://github.com/nsiatras.png","language":"C#","readme":"# Programming Languages Benchmark\n\nThis repository holds a matrix multiplication benchmark written for different programming languages. In case you want to write this benchmark to an other language and see it published here, feel free to contact me.\n\nThe matrices are of size 1024x1024 (1.073.741.824 multiplication and addition operations) and I populated them with random values between 0.0 and 1.0.\nEach experiment is run 5 times and the total time it took to complete is displayed as a result.\n\n##  Matrix Multiplication Benchmark Results\n\n| Language  | Elapsed Time (Seconds) | Notes |\n| ------------- | ------------- |------------- |\n| FreePascal    | 21.0020  | Free Pascal Compiler (FPC) 3.2.2       |\n| Java          | 22.1462       | GraalVM 22.2 Community Edition\u003cbr\u003e(OpenJDK version 17.0.4)  |\n| FreeBasic     | 25.8051       |FreeBASIC 1.09.0         |\n| C             | 28.0330       |gcc.exe (\u003cb\u003eNo optimization\u003c/b\u003e)\u003cbr\u003e(x86_64-posix-seh-rev0, Built by MinGW-W64 project) 8.1.0|\n| C#            | 56.1140       |.NET Framework 6.0        |\n| Python        | 4426.7331     |Python 3.10.7        |\n\n### Conclusion: \nFreePascal is 1.054 times faster than Java, Java Is 1.26 times faster than C and Python proves that sometimes it is faster to perform calculations using a pencil and a piece of paper. \n\n##  Machine Information\nAll results have come from the same PC with the following details:\u003cbr\u003e\u003cbr\u003e\n\u003cimg src=\"https://github.com/nsiatras/programming-languages-benchmark/blob/main/Images/CPUZ_1.png\" alt=\"CPUZ #1\"\u003e\n\u003cimg src=\"https://github.com/nsiatras/programming-languages-benchmark/blob/main/Images/CPUZ_2.png\" alt=\"CPUZ #2\"\u003e\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsiatras%2Fprogramming-languages-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnsiatras%2Fprogramming-languages-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnsiatras%2Fprogramming-languages-benchmark/lists"}