{"id":13466550,"url":"https://github.com/atemerev/skynet","last_synced_at":"2025-05-16T05:05:42.945Z","repository":{"id":48414383,"uuid":"51696777","full_name":"atemerev/skynet","owner":"atemerev","description":"Skynet 1M threads microbenchmark","archived":false,"fork":false,"pushed_at":"2023-11-10T14:53:36.000Z","size":279,"stargazers_count":1057,"open_issues_count":31,"forks_count":122,"subscribers_count":48,"default_branch":"master","last_synced_at":"2025-04-08T15:06:50.693Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/atemerev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-02-14T13:59:19.000Z","updated_at":"2025-03-18T16:09:48.000Z","dependencies_parsed_at":"2024-01-05T21:46:12.973Z","dependency_job_id":"f30f48c3-dd91-444c-96e1-a82fb03838b8","html_url":"https://github.com/atemerev/skynet","commit_stats":{"total_commits":79,"total_committers":28,"mean_commits":"2.8214285714285716","dds":0.810126582278481,"last_synced_commit":"f341a131210fa1044ecf1b5db46af49410c13e88"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atemerev%2Fskynet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atemerev%2Fskynet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atemerev%2Fskynet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/atemerev%2Fskynet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/atemerev","download_url":"https://codeload.github.com/atemerev/skynet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254471061,"owners_count":22076585,"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":"2024-07-31T15:00:46.061Z","updated_at":"2025-05-16T05:05:42.260Z","avatar_url":"https://github.com/atemerev.png","language":"C#","funding_links":[],"categories":["C#","Benchmarks","C# #","基准","基准点","基准测试","基準測試","Twitter"],"sub_categories":["Other Software","其他软件","其他軟件"],"readme":"# Skynet 1M concurrency microbenchmark\n\nCreates an actor (goroutine, whatever), which spawns 10 new actors, each of them spawns 10 \nmore actors, etc. until one million actors are created on the final level. Then, each of them returns\nback its ordinal number (from 0 to 999999), which are summed on the previous level and sent back upstream,\nuntil reaching the root actor. (The answer should be 499999500000).\n\n## Results (on my shitty Macbook 12\" '2015, **Core M**, OS X): \n\n### Actors\n\n- Scala/Akka: 6379 ms. \n- Erlang (non-HIPE): 4414 ms.\n- Erlang (HIPE): 3999 ms.\n\n### Coroutines / fibers / channels\n\n- Haskell (GHC 7.10.3): 6181 ms.\n- Go: 979 ms.\n- Quasar fibers and channels (Java 8): TODO\n\n### Futures / promises\n\n- .NET Core: 650 ms.\n- RxJava: 219 ms.\n\n## Results (**i7-4770**, Win8.1): \n\n### Actors\n\n- Scala/Akka: 4419 ms\n- Erlang (non-HIPE): 1700 ms.\n\n### Coroutines / fibers / channels\n\n- Haskell (GHC 7.10.3): 2820 ms.\n- Go: 629 ms.\n- F# MailboxProcessor: 756ms. (should be faster?..)\n- Quasar fibers and channels (Java 8): TODO\n\n### Futures / promises\n\n- .NET Core: Async (8 threads) 290 ms\n- Node-bluebird (Promise) 285ms / 195ms (after warmup)\n- .NET Full (TPL): 118 ms.\n\n## Results (**i7-4771**, Ubuntu 15.10): \n\n- Scala/Akka: 1700-2700 ms\n- Haskell (GHC 7.10.3): 41-44 ms\n- Erlang (non-HIPE): 700-1100 ms\n- Erlang (HIPE): 2100-3500 ms\n- Go: 200-224 ms\n- LuaJit: 297 ms\n\n## How to run\n\n### Scala/Akka\n\nInstall latest Scala and SBT. \n\nGo to `scala/`, then run `sbt compile run`.\n\n### Java/Quasar\n\nInstall the Java 8 SDK.\n\nGo to `java-quasar/`\n`./gradlew`\n\n### Go\n\nInstall latest Go compiler/runtime.\n\nIn `go/`, run `go run skynet.go`.\n\n### Pony\n\nInstall latest Pony compiler.\n\nIn `pony/`, run `ponyc -b skynet \u0026\u0026 ./skynet`.\n\n### Erlang\n\nInstall latest Erlang runtime.\n\nIn `erlang`, run `erl +P 2000000` (to raise process limit), then compile:\n\n- For non-HIPE: `c(skynet).`\n- For HIPE (if supported on your system): `hipe:c(skynet).`\n\nThen, run:\n\n`skynet:skynet(1000000,10).`\n\n### .NET Core: \n\nInstall latest version of .NET Core\n\nGo to `dnx/`  \n`dotnet restore` (first time)  \n`dotnet run --configuration Release`\n\n### Haskell\n\nInstall [Stack](http://haskellstack.org)\n\nIn `haskell/`, run `stack build \u0026\u0026 stack exec skynet +RTS -N`\n\n### Node (bluebird)\n\nInstall node.js\n\nin `node-bluebird/` run `npm install` then `node skynet`\n\n### FSharp\n\nInstall FSharp Interactive\n\nRun fsi skynet.fsx, or run fsi and paste the code in (runs faster this way)\n\n### Crystal:\n\nInstall [latest version of Crystal](http://crystal-lang.org/docs/installation/index.html).\n\nGo to `crystal/`\n`crystal build skynet.cr --release`\n`./skynet`\n\n### .NET/TPL\n\nBuild the solution with VS2015. Windows only :(\n\n=======\n### Java\n\nInstall the Java 8 SDK.\n\nGo to `java/`\n`./gradlew :run`\n\n### Rust (with [coroutine-rs](https://github.com/rustcc/coroutine-rs))\n\n```bash\ncd ./rust-coroutine\ncargo build --release\ncargo run --release\n```\n\n### LuaJIT\n\nInstall luajit\n\nRun `luajit luajit/skynet.lua`\n\n### Scheme/Guile Fibers\n\nInstall Guile, Guile fibers, and wisp; for example via `guix package -i guile guile-fibers guile-wisp`.\n\nGo to `guile-fibers`\n`./skynet.scm`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatemerev%2Fskynet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fatemerev%2Fskynet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fatemerev%2Fskynet/lists"}