{"id":16879000,"url":"https://github.com/jonas/scala-js-benchmarks","last_synced_at":"2025-04-11T11:42:11.940Z","repository":{"id":66495358,"uuid":"13572556","full_name":"jonas/scala-js-benchmarks","owner":"jonas","description":"Scala.js Benchmarks","archived":false,"fork":false,"pushed_at":"2014-03-01T22:26:41.000Z","size":645,"stargazers_count":6,"open_issues_count":0,"forks_count":10,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-25T08:02:47.788Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jonas.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}},"created_at":"2013-10-14T20:34:37.000Z","updated_at":"2018-05-14T19:34:46.000Z","dependencies_parsed_at":"2023-02-20T09:00:37.727Z","dependency_job_id":null,"html_url":"https://github.com/jonas/scala-js-benchmarks","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/jonas%2Fscala-js-benchmarks","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonas%2Fscala-js-benchmarks/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonas%2Fscala-js-benchmarks/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonas%2Fscala-js-benchmarks/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonas","download_url":"https://codeload.github.com/jonas/scala-js-benchmarks/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248385573,"owners_count":21094911,"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-10-13T15:52:26.590Z","updated_at":"2025-04-11T11:42:11.915Z","avatar_url":"https://github.com/jonas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Scala.js Benchmarks\n\nThis is a port of the Dart\n[benchmark harness](https://github.com/dart-lang/benchmark_harness) to\n[Scala.js](https://github.com/scala-js/scala-js).\n\nYou can see the benchmarks in action\n[here](http://jonas.github.io/scala-js-benchmarks/).\n\nAll derivative work is the copyright of their respective authors and\ndistributed under their original license. All original work unless otherwise\nstated is distributed under the [same license as\nScala.js](https://github.com/jonas/scala-js-benchmarks/LICENSE).\n\n## Get started\n\nTo run the benchmarks, first install the Scala.js compiler by following the\ninstructions in the [Scala.js README](https://github.com/lampepfl/scala-js).\n\nNext, open `sbt` either in the root folder or in the folder of the benchmark\nyou want to run. Issue `packageJS` to compile the Scala code to JavaScript.\nFor benchmarks with a web version, open the `index-dev.html` of the in your\nfavorite Web browser. For benchmarks without a web version execute the\n`run.sh` script inside the benchmark folder.\n\nDuring development, it is useful to use `~packageJS` in sbt, so that each\ntime you save a source file, a compilation of the project is triggered.\nHence only a refresh of your Web page is needed to see the effects of your\nchanges.\n\n## The optimized version\n\nInstead of running `packageJS`, you can also run `optimizeJS` to generate\na much more compact version of the JavaScript code. While `index-dev.html`\nrefers to the JavaScript emitted by `packageJS`, `index.html` refers to the\noptimized JavaScript emitted by `optimizeJS`.\n\nThe optimization phase is performed by the Advanced Optimizations of the\n[Google Closure Compiler](https://developers.google.com/closure/compiler/),\nwhich make\n[strong assumptions](https://developers.google.com/closure/compiler/docs/api-tutorial3)\nabout the code being compiled.\n\nAll the code generated by Scala.js respects these assumptions. But if you\nmodify `exports.js`, make sure that you comply with them if you want to be\nable to use `optimizeJS`.\n\n## Troubleshooting\n\n### I have unresolved dependencies on `scala-js-...`\n\nYou have probably forgotten to execute `publishLocal` from the sbt prompt in\nScala.js.\n\n### WARNING - dangerous use of the global this object\n\nThis warning is emitted by the Google Closure Compiler when running\n`optimizeJS`. The global `this` object is used in the `exports.js`\nscript as an alternative to `window` to export symbols used by the\nvarious startup code.  This allows the benchmarks to run both in the web\nbrowser and in the `d8` (the V8 shell), which does not define global\nobjects like `window`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonas%2Fscala-js-benchmarks","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonas%2Fscala-js-benchmarks","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonas%2Fscala-js-benchmarks/lists"}