{"id":20862395,"url":"https://github.com/bencheeorg/benchee_json","last_synced_at":"2025-12-12T00:24:05.179Z","repository":{"id":51127954,"uuid":"64929306","full_name":"bencheeorg/benchee_json","owner":"bencheeorg","description":"Benche formatter to output json","archived":false,"fork":false,"pushed_at":"2023-12-10T10:24:53.000Z","size":93,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-08-05T09:13:09.983Z","etag":null,"topics":["benchee","benchmarking","formatter","json","plugin"],"latest_commit_sha":null,"homepage":null,"language":"Elixir","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/bencheeorg.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":"CODE_OF_CONDUCT.md","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-08-04T11:31:31.000Z","updated_at":"2023-11-09T10:07:25.000Z","dependencies_parsed_at":"2023-12-10T10:26:02.506Z","dependency_job_id":"5c5c6df6-d704-4808-93fb-d25816d37369","html_url":"https://github.com/bencheeorg/benchee_json","commit_stats":null,"previous_names":["pragtob/benchee_json"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/bencheeorg/benchee_json","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencheeorg%2Fbenchee_json","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencheeorg%2Fbenchee_json/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencheeorg%2Fbenchee_json/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencheeorg%2Fbenchee_json/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bencheeorg","download_url":"https://codeload.github.com/bencheeorg/benchee_json/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bencheeorg%2Fbenchee_json/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014779,"owners_count":26085594,"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-10-13T02:00:06.723Z","response_time":61,"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":["benchee","benchmarking","formatter","json","plugin"],"created_at":"2024-11-18T05:23:32.822Z","updated_at":"2025-10-13T17:36:39.562Z","avatar_url":"https://github.com/bencheeorg.png","language":"Elixir","funding_links":[],"categories":[],"sub_categories":[],"readme":"# benchee_json [![Hex Version](https://img.shields.io/hexpm/v/benchee_json.svg)](https://hex.pm/packages/benchee_json) [![Hex Docs](https://img.shields.io/badge/hex-docs-lightgreen.svg)](https://hexdocs.pm/benchee_json/) [![CI](https://github.com/bencheeorg/benchee_json/actions/workflows/main.yml/badge.svg)](https://github.com/bencheeorg/benchee_json/actions/workflows/main.yml) [![Coverage Status](https://coveralls.io/repos/github/bencheeorg/benchee_json/badge.svg?branch=main)](https://coveralls.io/github/bencheeorg/benchee_json?branch=main) [![Total Download](https://img.shields.io/hexpm/dt/benchee_json.svg)](https://hex.pm/packages/benchee_json) [![License](https://img.shields.io/hexpm/l/benchee_json.svg)](https://github.com/bencheeorg/benchee_json/blob/master/LICENSE)\n\nFormats a benchee benchmarking suite to a JSON representation and can also write it to disk. Actively used in [benchee_html](https://github.com/PragTob/benchee_html) to generate JSON, and embed it into the JavaScript to give the JS access to the benchmarking results for graphing purposes.\n\n## Installation\n\nAdd `:benchee_json` to your list of dependencies in `mix.exs`:\n\n```elixir\ndef deps do\n  [\n    {:benchee_json, \"~\u003e 1.0\", only: :dev}\n  ]\nend\n```\n\n## Usage\n\nLike a normal benchee formatter:\n\n```elixir\nlist = Enum.to_list(1..10_000)\nmap_fun = fn(i) -\u003e [i, i * i] end\n\nBenchee.run(%{\n  \"flat_map\"    =\u003e fn -\u003e Enum.flat_map(list, map_fun) end,\n  \"map.flatten\" =\u003e fn -\u003e list |\u003e Enum.map(map_fun) |\u003e List.flatten end\n},\n  formatters: [\n    {Benchee.Formatters.JSON, file: \"my.json\"},\n    Benchee.Formatters.Console\n  ]\n)\n```\n\n## Contributing\n\nContributions to `:benchee_json` are very welcome! Bug reports, documentation, spelling corrections, whole features, feature ideas, bugfixes, new plugins, fancy graphics... all of those (and probably more) are much appreciated contributions!\n\nPlease respect the [Code of Conduct](//github.com/PragTob/benchee_json/blob/master/CODE_OF_CONDUCT.md).\n\nYou can get started with a look at the [open issues](https://github.com/PragTob/benchee_json/issues).\n\nA couple of (hopefully) helpful points:\n\n* Feel free to ask for help and guidance on an issue/PR (\"How can I implement this?\", \"How could I test this?\", ...)\n* Feel free to open early/not yet complete pull requests to get some early feedback\n* When in doubt if something is a good idea open an issue first to discuss it\n* In case I don't respond feel free to bump the issue/PR or ping me on other places\n\n## Development\n\n* `mix deps.get` to install dependencies\n* `mix test` to run tests\n* `mix credo` or `mix credo --strict` to find code style problems (not too strict with the 80 width limit for sample output in the docs)\n\n## Copyright and License\n\nCopyright (c) 2016 Tobias Pfeiffer\n\nThis library is released under the MIT License. See the [LICENSE.md](./LICENSE.md) file\nfor further details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbencheeorg%2Fbenchee_json","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbencheeorg%2Fbenchee_json","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbencheeorg%2Fbenchee_json/lists"}