{"id":22288565,"url":"https://github.com/anpep/cache_query","last_synced_at":"2026-05-05T22:37:25.655Z","repository":{"id":195620469,"uuid":"230308632","full_name":"anpep/cache_query","owner":"anpep","description":"Utilities for performance event measurement in Linux","archived":false,"fork":false,"pushed_at":"2020-02-08T12:02:25.000Z","size":10,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-30T18:34:08.620Z","etag":null,"topics":["c","cache","linux","perf","performance","python"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/anpep.png","metadata":{"files":{"readme":"README","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2019-12-26T18:16:36.000Z","updated_at":"2020-02-08T12:02:27.000Z","dependencies_parsed_at":"2023-09-19T00:49:52.677Z","dependency_job_id":null,"html_url":"https://github.com/anpep/cache_query","commit_stats":null,"previous_names":["anpep/cache_query"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anpep%2Fcache_query","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anpep%2Fcache_query/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anpep%2Fcache_query/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/anpep%2Fcache_query/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/anpep","download_url":"https://codeload.github.com/anpep/cache_query/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245543426,"owners_count":20632648,"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":["c","cache","linux","perf","performance","python"],"created_at":"2024-12-03T17:05:36.400Z","updated_at":"2026-05-05T22:37:25.617Z","avatar_url":"https://github.com/anpep.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"cache_query\n===========\n\nIntroduction\n------------\ncache_query is an experimental (and buggy) framework for simple cache access\nbenchmarks on C programs.\n\nIn order to write a benchmark, include your C program inside of the `test'\ndirectory and annotate it accordingly. For instance,\n\n    1   //! var variantName_16: -DCOLS=16 -DHELLO\n    2   //! var variantName_32: -DCOLS=32 -DEXAMPLE\n\nNote that the syntax for variant specification is as follows:\n    \n    //! var \u003cidentificator\u003e_\u003cnumber\u003e: \u003cextra CFLAGS\u003e\n\nThe supplied \u003cnumber\u003e will be the value of the X axis in the generated plot,\nwhile the Y axis will hold the cache miss rate captured during execution.\n\nHacking\n-------\ncache_query relies on the perf_event_open(2) system call for counting hardware\nperformance events (PERF_COUNT_HW_CACHE_MISSES and PERF_COUNT_HW_CACHE_REFERENCES\nas of now). Refer to the cache_query.c file in order to add or remove performance\ncounters.\n\nThe current code for reading child process events is somewhat buggy, and may not\nbe indicative of the real state of the executing process. Don't use cache_query\nfor production or mission-critical systems.\n\nContact\n-------\nContact angel \u003cangel@ttm.sh\u003e for any question or suggestion regarding this software.\n\nLicensing\n---------\nThis software is licensed under the public domain and may be modified and\nredistributed at will with no restrictions or licensing constraints.\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanpep%2Fcache_query","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanpep%2Fcache_query","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanpep%2Fcache_query/lists"}