{"id":17158187,"url":"https://github.com/msoap/factorial-multi-language","last_synced_at":"2025-04-13T13:30:41.984Z","repository":{"id":2756592,"uuid":"3754407","full_name":"msoap/factorial-multi-language","owner":"msoap","description":"Calc factorial in any languages","archived":false,"fork":false,"pushed_at":"2025-02-16T22:05:41.000Z","size":322,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-27T04:33:22.924Z","etag":null,"topics":["awk","benchmark","coffeescript","dart","erlang","golang","haskell","java","javascript","kotlin","languages","lua","ocaml","pascal","perl","php","python","ruby","rust","swift"],"latest_commit_sha":null,"homepage":"","language":"Perl","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/msoap.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":"2012-03-18T11:13:46.000Z","updated_at":"2025-02-23T17:27:16.000Z","dependencies_parsed_at":"2022-09-08T05:51:03.078Z","dependency_job_id":"f0811cc5-2a35-4cce-bed5-a83158af3db7","html_url":"https://github.com/msoap/factorial-multi-language","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/msoap%2Ffactorial-multi-language","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msoap%2Ffactorial-multi-language/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msoap%2Ffactorial-multi-language/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msoap%2Ffactorial-multi-language/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msoap","download_url":"https://codeload.github.com/msoap/factorial-multi-language/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248720949,"owners_count":21151017,"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":["awk","benchmark","coffeescript","dart","erlang","golang","haskell","java","javascript","kotlin","languages","lua","ocaml","pascal","perl","php","python","ruby","rust","swift"],"created_at":"2024-10-14T22:10:46.575Z","updated_at":"2025-04-13T13:30:41.959Z","avatar_url":"https://github.com/msoap.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"Comparison of languages for speed by calculation of factorial in different languages\n====================================================================================\n\nHardware:\n---------\nApple M1 Pro / 3.2 GHz / 8 Cores\n\n\nReport:\n-------\n\n### statistic with versions:\n\n| Language   | Version        | Time, sec | Iterations | RPS       |\n|------------|----------------|-----------|------------|-----------|\n|      Go-mt |         1.24.0 |      2.72 | 1000000000 | 368312242 |\n|  C gcc -O1 |         16.0.0 |      3.29 |  500000000 | 152010059 |\n|       Java |         22.0.1 |      3.08 |  300000000 |  97328163 |\n|      Swift |          6.0.3 |      3.31 |  200000000 |  60458121 |\n|         Go |         1.24.0 |      2.48 |  150000000 |  60363878 |\n|      OCaml |          5.2.1 |      3.16 |  150000000 |  47487954 |\n|          C |         16.0.0 |      2.29 |  100000000 |  43649629 |\n|     Pascal |          3.2.2 |      2.93 |  100000000 |  34123098 |\n|     luajit | 2.1.1736781742 |      1.50 |   50000000 |  33335445 |\n|       Dart |          3.7.0 |      6.13 |  200000000 |  32639633 |\n|       Rust |         1.84.1 |      0.63 |   20000000 |  31685658 |\n|     Go-cgo |         1.24.0 |      1.71 |   50000000 |  29217052 |\n|        nim |          2.2.2 |      1.21 |   30000000 |  24852630 |\n|     JSCore |           18.3 |      3.18 |   50000000 |  15718209 |\n|     Kotlin |         1.4.10 |     17.59 |  200000000 |  11370540 |\n|    node.js |         23.7.0 |      5.52 |   50000000 |   9057589 |\n|       PyPy |         7.3.18 |      2.29 |   10000000 |   4368677 |\n|     Erlang |         15.2.2 |      1.72 |    7000000 |   4065669 |\n|        lua |          5.4.7 |      1.21 |    3000000 |   2473240 |\n|        php |          8.4.4 |      2.90 |    7000000 |   2411103 |\n|    Haskell |         9.12.1 |      6.03 |   10000000 |   1658778 |\n|    python3 |         3.13.2 |      1.56 |    2000000 |   1283701 |\n|       ruby |         2.6.10 |      3.95 |    5000000 |   1264967 |\n|       gawk |          5.3.1 |      1.29 |    1000000 |    774202 |\n|       perl |         5.34.1 |      1.67 |    1000000 |    599218 |\n|        awk |       20200816 |      2.39 |    1000000 |    417936 |\n|      perl6 |             ta |      1.07 |     300000 |    280319 |\n\n## Chart\n\n### report for all:\n\n        Go-mt - 368312242 rps: ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■\n    C gcc -O1 - 152010059 rps: ■■■■■■■■■■■■■■■■■■■■■■■■\n         Java -  97328163 rps: ■■■■■■■■■■■■■■■\n        Swift -  60458121 rps: ■■■■■■■■■\n           Go -  60363878 rps: ■■■■■■■■■\n        OCaml -  47487954 rps: ■■■■■■■\n            C -  43649629 rps: ■■■■■■■\n       Pascal -  34123098 rps: ■■■■■\n       luajit -  33335445 rps: ■■■■■\n         Dart -  32639633 rps: ■■■■■\n         Rust -  31685658 rps: ■■■■■\n       Go-cgo -  29217052 rps: ■■■■\n          nim -  24852630 rps: ■■■■\n       JSCore -  15718209 rps: ■■\n       Kotlin -  11370540 rps: ■\n      node.js -   9057589 rps: ■\n         PyPy -   4368677 rps: \n       Erlang -   4065669 rps: \n          lua -   2473240 rps: \n          php -   2411103 rps: \n      Haskell -   1658778 rps: \n      python3 -   1283701 rps: \n         ruby -   1264967 rps: \n         gawk -    774202 rps: \n         perl -    599218 rps: \n          awk -    417936 rps: \n        perl6 -    280319 rps: \n\n### report for fast languages:\n\n        Go-mt - 368312242 rps: ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■\n    C gcc -O1 - 152010059 rps: ■■■■■■■■■■■■■■■■■■■■■■■■\n         Java -  97328163 rps: ■■■■■■■■■■■■■■■\n        Swift -  60458121 rps: ■■■■■■■■■\n           Go -  60363878 rps: ■■■■■■■■■\n        OCaml -  47487954 rps: ■■■■■■■\n            C -  43649629 rps: ■■■■■■■\n       Pascal -  34123098 rps: ■■■■■\n       luajit -  33335445 rps: ■■■■■\n         Dart -  32639633 rps: ■■■■■\n         Rust -  31685658 rps: ■■■■■\n       Go-cgo -  29217052 rps: ■■■■\n          nim -  24852630 rps: ■■■■\n       JSCore -  15718209 rps: ■■\n       Kotlin -  11370540 rps: ■\n      node.js -   9057589 rps: ■\n\n### report for slow languages:\n\n         PyPy -   4368677 rps: ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■\n       Erlang -   4065669 rps: ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■\n          lua -   2473240 rps: ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■\n          php -   2411103 rps: ■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■■\n      Haskell -   1658778 rps: ■■■■■■■■■■■■■■■■■■■■■■\n      python3 -   1283701 rps: ■■■■■■■■■■■■■■■■■\n         ruby -   1264967 rps: ■■■■■■■■■■■■■■■■■\n         gawk -    774202 rps: ■■■■■■■■■■\n         perl -    599218 rps: ■■■■■■■■\n          awk -    417936 rps: ■■■■■\n        perl6 -    280319 rps: ■■■\n\n\n\nSee also\n--------\n\n  * [Wikipedia](http://en.wikipedia.org/wiki/Factorial)\n  * [Rosettacode](http://rosettacode.org/wiki/Factorial)\n  * [Stackoverflow](http://stackoverflow.com/questions/23930/factorial-algorithms-in-different-languages)\n  * [The Computer Language Benchmarks Game](https://benchmarksgame-team.pages.debian.net/benchmarksgame/index.html)\n  * [Recursive Fibonacci Benchmark using top languages on Github](https://github.com/drujensen/fib)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsoap%2Ffactorial-multi-language","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsoap%2Ffactorial-multi-language","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsoap%2Ffactorial-multi-language/lists"}