{"id":19006989,"url":"https://github.com/yowainwright/format-comparison-benchmark","last_synced_at":"2026-06-22T22:32:13.442Z","repository":{"id":42427825,"uuid":"478421665","full_name":"yowainwright/format-comparison-benchmark","owner":"yowainwright","description":"A quick Frontend related (JS, JSON, MD, CSS) format comparison test","archived":false,"fork":false,"pushed_at":"2023-10-07T22:54:58.000Z","size":95,"stargazers_count":0,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-21T14:31:27.385Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"CSS","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/yowainwright.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-04-06T05:53:22.000Z","updated_at":"2022-04-06T08:15:26.000Z","dependencies_parsed_at":"2024-11-08T18:39:43.823Z","dependency_job_id":"7cf49aab-70ca-4f77-bd86-bfa4a032aa16","html_url":"https://github.com/yowainwright/format-comparison-benchmark","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yowainwright/format-comparison-benchmark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yowainwright%2Fformat-comparison-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yowainwright%2Fformat-comparison-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yowainwright%2Fformat-comparison-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yowainwright%2Fformat-comparison-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yowainwright","download_url":"https://codeload.github.com/yowainwright/format-comparison-benchmark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yowainwright%2Fformat-comparison-benchmark/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34668500,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-11-08T18:35:38.089Z","updated_at":"2026-06-22T22:32:13.425Z","avatar_url":"https://github.com/yowainwright.png","language":"CSS","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Rome vs Prettier Format Comparison Benchmark\n\nThe npm scripts within this repository's `package.json` can be used to compare Rome Format vs Prettier. Initial notes written 04/06/2022. The scripts were written to be run on Mac. Specifically, a M1 Mac Pro was used.\n\n\u003e I'm excited about [Rome tools](https://rome.tools/) and [Rust](https://www.rust-lang.org/) 🦀 so I decided to do my own experiment after [this post](https://rome.tools/blog/2022/04/05/rome-formatter-release)!\n\n---\n\n## Setup\n\nUtilities setup\n\n```sh\nnvm i \u0026\u0026 npm i pnpm -g \u0026\u0026 pnpm i\n```\n\nRunning scripts\n\n```sh\npnpm \u003ctest:\u003cformatter\u003e:\u003cunique-script-identifier\u003e\n# see all available script in the package.json \u003e script or in the #scripts section below\n```\n\n## Scripts\n\n- **`test:prettier:js`**: Run prettier on all JavaScript files added to a temp directory.\n- **`test:rome:js`**: Run rome format on all JavaScript files added to temp directory.\n- **`test:prettier:all`**: Run prettier on all CSS, JSON, JavaScript, Markdown in a temp directory.\n- **`test:rome:feature-parity`**: Run rome format, markdownlint, jsonlint, and stylelint on all CSS, JSON, JavaScript, Markdown in a temp directory.\n\n### Script Anatomy\n\nEach script creates a temp directory (`/dump`), copies config files and [rambda](https://www.npmjs.com/package/ramda) from `node_modules` to run prettier and rome format. Tiems are measured using [gnomon](https://www.npmjs.com/package/gnomon).👌\n\n---\n\n## Benchmarks\n\nLocal Benchmarks\n\n| Script | Rome | Prettier |\n| :---: | :---: | :---: |\n| js only | 1.5404s | 2.0353s |\n| all | *2.2669s | 2.7163s |\n\nInitial [Github Action Benchmarks](https://github.com/yowainwright/format-comparison-benchmark/actions)\n\n| Script | Rome | Prettier |\n| :---: | :---: | :---: |\n| js only | 17s | 18s |\n| all | *12s | 17s |\n\n\n\\*I think I've written the script `test:rome:feature-parity` so that stylelint \u0026 markdownlint basically don't run. Will review. 🧐\n\n\n---\n\n## Some code was copied from these projects for speed 🏎️\n\n- **[kerns](https://raw.githubusercontent.com/kerns/dummy/master/README.md)**: a dummy toolkit\n- **[jsonplaceholder](https://jsonplaceholder.typicode.com/)** a json placeholder toolkit\n- **[Simple CSS](https://simplecss.org/)**: a no-css-class css framework\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyowainwright%2Fformat-comparison-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyowainwright%2Fformat-comparison-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyowainwright%2Fformat-comparison-benchmark/lists"}