{"id":16079179,"url":"https://github.com/pat/json_template_benchmarking","last_synced_at":"2026-01-10T17:03:55.971Z","repository":{"id":66006493,"uuid":"74098719","full_name":"pat/json_template_benchmarking","owner":"pat","description":null,"archived":false,"fork":false,"pushed_at":"2020-06-24T23:51:12.000Z","size":53,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-10T21:26:03.401Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/pat.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":"2016-11-18T05:38:43.000Z","updated_at":"2021-01-17T07:19:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"7e7121e9-53b2-4653-8e91-789230db2f52","html_url":"https://github.com/pat/json_template_benchmarking","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pat/json_template_benchmarking","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat%2Fjson_template_benchmarking","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat%2Fjson_template_benchmarking/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat%2Fjson_template_benchmarking/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat%2Fjson_template_benchmarking/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pat","download_url":"https://codeload.github.com/pat/json_template_benchmarking/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat%2Fjson_template_benchmarking/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275623477,"owners_count":25498340,"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","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"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-10-09T10:41:11.729Z","updated_at":"2025-09-17T16:33:33.585Z","avatar_url":"https://github.com/pat.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JSON Template Library Benchmarks\n\nCurrently extremely simple, comparing [Jbuilder](https://github.com/rails/jbuilder), [ActiveModel::Serializers](https://github.com/rails-api/active_model_serializers), [Roar](https://github.com/apotonick/roar), and [Oat](https://github.com/ismasan/oat). The latest committed results are [here](OUTPUT.markdown).\n\nPatches are very much welcome for additional benchmarks that you feel are useful, or contributions that tweak libraries to get their best performance.\n\nAnd of course, this is *just* a performance comparison. There are other aspects to keep in mind when choosing libraries, such as:\n\n* How well maintained are they?\n* Do they work with the latest versions of Ruby?\n* Do you need something that is separate from Rails?\n* Do you have JSON structure requirements, such as JSON-API, JSON-HAL, etc?\n* Do you need something that handles serialising in formats other than JSON?\n\nAlso, these benchmarks are run on a single version of Ruby, and within the context of a Rails app - doesn't hurt to run them yourself on your expected setup.\n\n## Running it yourself\n\n```\nbundle install\nrake db:create db:migrate RAILS_ENV=production\nrake benchmarks:all RAILS_ENV=production\n```\n\nOr, use the `benchmarks:write` to regenerate the [OUTPUT.markdown](OUTPUT.markdown) file. Using the production environment is recommended, to have templates cached appropriately (and thus, a better reflection of a real production environment).\n\n## Contributing\n\nPlease note that this project is released with [a Contributor Code of Conduct](http://contributor-covenant.org/version/1/0/0/). By participating in this project you agree to abide by its terms.\n\n## Licence\n\nCopyright (c) 2016. Developed and maintained by Pat Allan, and released under the open MIT Licence. It was strongly influenced by the work of [Kirill Platonov](https://kirillplatonov.com/2014/11/04/active_model_serializer_vs_jbuilder/) - I've just neatened things up, updated gem versions and added more libraries in.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpat%2Fjson_template_benchmarking","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpat%2Fjson_template_benchmarking","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpat%2Fjson_template_benchmarking/lists"}