Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output compile-time #680

Closed
v01dXYZ opened this issue Jun 11, 2024 · 3 comments
Closed

Output compile-time #680

v01dXYZ opened this issue Jun 11, 2024 · 3 comments
Assignees

Comments

@v01dXYZ
Copy link

v01dXYZ commented Jun 11, 2024

Is there a way to output compile-time (possibly with multiple runs) ?

If not and if it is relevant, I could submit a PR for that.

@dtcxzyw
Copy link
Owner

dtcxzyw commented Jun 11, 2024

Yeah, you can obtain the compilation time with perf: perf stat -e instructions:u opt ....

I am sorry I cannot provide the baseline result for each run because PMU is not accessible on our CI workers.
But I can provide an option then you can run and compare the result locally :)

@dtcxzyw dtcxzyw self-assigned this Jun 11, 2024
@dtcxzyw
Copy link
Owner

dtcxzyw commented Jun 11, 2024

See e286d17
Usage:

./scripts/gen_optimized.py bench/ <path-to-opt> comptime comptime-v1.log
./scripts/gen_optimized.py bench/ <path-to-new-opt> comptime comptime-v2.log
python3 ./scripts/comptime_diff.py comptime-v1.log comptime-v2.log

@dtcxzyw dtcxzyw closed this as completed Jun 11, 2024
@dtcxzyw
Copy link
Owner

dtcxzyw commented Jun 11, 2024

See e286d17 Usage:

./scripts/gen_optimized.py bench/ <path-to-opt> comptime comptime-v1.log
./scripts/gen_optimized.py bench/ <path-to-new-opt> comptime comptime-v2.log
python3 ./scripts/comptime_diff.py comptime-v1.log comptime-v2.log

I will update the README at my convenience.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants