{"id":18001676,"url":"https://github.com/rigtorp/c2clat","last_synced_at":"2025-10-19T13:43:56.649Z","repository":{"id":48198432,"uuid":"302520751","full_name":"rigtorp/c2clat","owner":"rigtorp","description":"A tool to measure CPU core to core latency","archived":false,"fork":false,"pushed_at":"2023-03-06T01:57:49.000Z","size":14,"stargazers_count":146,"open_issues_count":0,"forks_count":24,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T00:31:28.505Z","etag":null,"topics":["benchmark","cpu","latency"],"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/rigtorp.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":"2020-10-09T03:16:51.000Z","updated_at":"2025-03-17T08:16:57.000Z","dependencies_parsed_at":"2024-10-29T23:42:50.160Z","dependency_job_id":null,"html_url":"https://github.com/rigtorp/c2clat","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/rigtorp%2Fc2clat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigtorp%2Fc2clat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigtorp%2Fc2clat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rigtorp%2Fc2clat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rigtorp","download_url":"https://codeload.github.com/rigtorp/c2clat/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245618589,"owners_count":20645026,"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","cpu","latency"],"created_at":"2024-10-29T23:18:24.826Z","updated_at":"2025-10-19T13:43:56.549Z","avatar_url":"https://github.com/rigtorp.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# c2clat\n\nA tool to measure CPU core to core latency (inter-core latency).\n\nBuild:\n\n```console\ng++ -O3 -DNDEBUG c2clat.cpp -o c2clat -pthread\n```\n\nExample usage:\n\n```console\n$ ./c2clat \n CPU    0    1    2    3    4    5    6    7\n   0    0   92   66   62   16   56   54   53\n   1   92    0   50   54   53   14   49   50\n   2   66   50    0   48   51   49   13   48\n   3   62   54   48    0   53   50   48   13\n   4   16   53   51   53    0   53   51   53\n   5   56   14   49   50   53    0   49   50\n   6   54   49   13   48   51   49    0   48\n   7   53   50   48   13   53   50   48    0\n```\n\nCreate plot using [gnuplot](http://gnuplot.sourceforge.net/):\n\n```console\nc2clat -p | gnuplot -p\n```\n\n![Plot of inter-core latency](https://github.com/rigtorp/c2clat/blob/master/c2clat.png)\n\nIf you want to run on a subset of cores use [taskset](https://www.man7.org/linux/man-pages/man1/taskset.1.html):\n\n```console\n$ taskset -c 10-11 ./c2clat\n CPU   10   11\n  10    0   52\n  11   52    0\n```\n\nIf you want to label the heatmap plot replace the plot command with:\n\n```gnuplot\nplot '$data' matrix rowheaders columnheaders using 2:1:3 with image, \\\n     '$data' matrix rowheaders columnheaders using 2:1:(sprintf(\"%g\",$3)) with labels\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frigtorp%2Fc2clat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frigtorp%2Fc2clat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frigtorp%2Fc2clat/lists"}