benchmarks: add perf benchs framework and test suites - #477
Open
GermanAizek wants to merge 1 commit into
Open
Conversation
- Framework (benchmark-framework.h/c):
- High-precision timing via clock_gettime(CLOCK_MONOTONIC)
- Warmup cycles to eliminate cache and branch predictor cold starts
- Full statistical profile: Mean, Median (p50), Min, Max, p95/p99 tail
latencies, relative standard deviation (RSD% jitter), throughput (ops/s),
and process RSS memory delta
- Formatted terminal table output with color coding
- Machine-readable JSON export (--output) and baseline comparison (--compare)
for automated performance regression detection in CI/CD
- Benchmark Suites:
- config: single-file parsing (small, standard, large 50 seats), drop-in
directory merging (5 and 20 conf.d files), seat pattern globbing resolution,
and high-frequency key lookup throughput
- user_list: algorithmic scaling of sorted user insertions (10, 100, 1000,
and 5000 users), user lookup by name, UID and shell filtering, and
~/.dmrc parsing
- xauthority: MIT-MAGIC-COOKIE-1 generation, atomic record writes, entry
matching and updates in 10- and 50-entry files
- xdmcp: packet serialization/deserialization (Request, Manage, Accept),
roundtrip encode-decode throughput, and string formatting
- Tooling and Build Integration:
- CLI runner: benchmarks/lightdm-benchmark
- Automation helper: benchmarks/run-benchmarks.sh (--quick, --full, etc.)
- Makefile targets: 'make bench' and 'make bench-quick'
- Comprehensive documentation in benchmarks/README.md
Collaborator
|
So... I don't think we (Neal and I) intended for LightDM to uh... "expand" as much, more of less just keep maintaining, add features That being said while this is cool, I'm not sure if as a project LightDM should have this? I invite you to discuss this on Matrix. Also, if LLMs were used, please disclose it :) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Framework (benchmark-framework.h/c):
Benchmark Suites:
Tooling and Build Integration:
How to use benchmarks (fast tutorial)