-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simple cycle-measuring based profiling setup in tests/prof.c - uses rdtsc instruction for cycle-level measurement - averages each test repeatedly over PROF_INTERVAL cycles - test best result of PROF_RUNS runs to throw out unexpected interrupts - percentage comparison with previous versions for tangible results To profile a single instance: make prof To compare two runs (this will show rough measurement error): make prof > results.txt && cat results.txt | make prof
- Loading branch information
Showing
3 changed files
with
375 additions
and
10 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,15 @@ | ||
script: | ||
# Strict compilation of library | ||
- CFLAGS='-pedantic -Werror' make | ||
|
||
# Runtime tests | ||
- make test | ||
|
||
# Relative profiling with current master | ||
- if ( git clone https://github.com/geky/events tests/master && | ||
make -s -C tests/master prof | tee tests/results.txt ) ; | ||
then | ||
cat tests/results.txt | make prof ; | ||
else | ||
make prof ; | ||
fi |
This file contains 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
Oops, something went wrong.