{"id":21739757,"url":"https://github.com/yakivyusin/benchmarkcmp","last_synced_at":"2026-05-16T20:33:51.848Z","repository":{"id":54153070,"uuid":"338607757","full_name":"yakivyusin/BenchmarkCmp","owner":"yakivyusin","description":"Benchmarks comparison tool","archived":false,"fork":false,"pushed_at":"2023-07-01T12:13:30.000Z","size":65,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-25T21:26:40.202Z","etag":null,"topics":["benchmark","benchmarkdotnet","benchmarking","console-tool","csharp","dotnet","dotnet-tool","performance","ukraine"],"latest_commit_sha":null,"homepage":"","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/yakivyusin.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-02-13T15:43:26.000Z","updated_at":"2024-02-24T12:43:41.000Z","dependencies_parsed_at":"2025-01-25T21:24:44.122Z","dependency_job_id":"30d609e9-09e3-4a3b-8256-641831c0794c","html_url":"https://github.com/yakivyusin/BenchmarkCmp","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakivyusin%2FBenchmarkCmp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakivyusin%2FBenchmarkCmp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakivyusin%2FBenchmarkCmp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yakivyusin%2FBenchmarkCmp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yakivyusin","download_url":"https://codeload.github.com/yakivyusin/BenchmarkCmp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244717336,"owners_count":20498283,"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":["benchmark","benchmarkdotnet","benchmarking","console-tool","csharp","dotnet","dotnet-tool","performance","ukraine"],"created_at":"2024-11-26T06:10:32.950Z","updated_at":"2026-05-16T20:33:51.808Z","avatar_url":"https://github.com/yakivyusin.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"﻿# dotnet-benchmarkcmp [![NuGet](https://img.shields.io/nuget/v/BenchmarkCmp.svg)](https://www.nuget.org/packages/BenchmarkCmp/) [![Made in Ukraine](https://img.shields.io/badge/made_in-ukraine-ffd700.svg?labelColor=0057b7)](https://stand-with-ukraine.pp.ua)\n\nInspired by `go-benchcmp`, `dotnet-benchmarkcmp` displays performance changes between benchmarks.\n\n`benchmarkcmp` parses the output of two `BenchmarkDotNet` benchmark runs, correlates the results per benchmark (based on name), and displays the deltas.\n\n## Getting started\n\n### Installation\nTo install the tool, use `dotnet tool install` command:\n\n```\ndotnet tool install -g BenchmarkCmp\n```\n\n### Use\nTo measure the performance impact of a change, use `BenchmarkDotNet` to run benchmarks before / after the change and save artifacts. Then feed the benchmark artifacts (check Supported exporters section to see supported artifacts) to `benchmarkcmp`:\n\n```\ndotnet benchmarkcmp old.json new.json\n```\n\n`benchmarkcmp` will summarize and display the performance changes, in a format like this:\n```\n benchmark                     | old time/op | new time/op | delta\n-------------------------------+-------------+-------------+--------\n SimpleBenchmark.A: DefaultJob | 1,210 s     | 1,108 s     | -8,44%\n\n benchmark                     | old allocs | new allocs | delta\n-------------------------------+------------+------------+-------\n SimpleBenchmark.A: DefaultJob | 0          | 0          | ~\n\n benchmark                     | old G0 collects | new G0 collects | delta\n                               | per 1k ops      | per 1k ops      |\n-------------------------------+-----------------+-----------------+-------\n SimpleBenchmark.A: DefaultJob | 0               | 0               | ~\n\n benchmark                     | old G1 collects | new G1 collects | delta\n                               | per 1k ops      | per 1k ops      |\n-------------------------------+-----------------+-----------------+-------\n SimpleBenchmark.A: DefaultJob | 0               | 0               | ~\n\n benchmark                     | old G2 collects | new G2 collects | delta\n                               | per 1k ops      | per 1k ops      |\n-------------------------------+-----------------+-----------------+-------\n SimpleBenchmark.A: DefaultJob | 0               | 0               | ~\n```\n\n## Supported data\n* Base Statistics\n  * Min / median / mean / max run time\n* Memory Diagnoser\n  * Allocated memory\n  * Gen 0, 1, 2 allocation\n* Threading Diagnoser\n  * Completed work items\n  * Lock contentions\n* Native Memory Profiler\n  * Allocated native memory\n  * Native memory leak\n* Hardware Counter Diagnoser\n  * Branch instructions\n  * Branch mispredictions\n  * Cache misses\n* Exception Diagnoser\n  * Exception frequency\n* JIT Stats Diagnoser\n  * Amount of JITted methods\n  * Amount of tiered methods\n  * JIT allocated memory\n\n## Supported exporters\n* JsonExporter.Brief\n* JsonExporter.Full\n* XmlExporter.Brief\n* XmlExporter.Full\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyakivyusin%2Fbenchmarkcmp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyakivyusin%2Fbenchmarkcmp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyakivyusin%2Fbenchmarkcmp/lists"}