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

ZVM Test Benchmarking #65

Merged
merged 7 commits into from
Sep 6, 2024
Merged

Conversation

DerelictDrone
Copy link
Member

@DerelictDrone DerelictDrone commented Aug 21, 2024

Provides some information for the execution time and other stats from the ZVM tests, plus a test that runs a complex user-made program for benchmarking purposes.

Use of benchmarking and outputs from benchmarking are controlled by the convar ZCPU_TESTS_BENCHMARKING
0 = No benchmarking hooks, no benchmarking information other than the time it took to complete the full test run. (default)
> 0 Benchmarking hooks are applied, and you'll get a final summary of the benchmark information collected
> 1 Same as above but after each test the benchmark information is printed for the test, for every VM it initialized.

Example of benchmark setting > 0
image

Example of benchmark setting > 1
image

Benchmark information is collected per test, and has as follows.

PrecompileStringSize -- Total precompile string size
TotalJitBytecodeSize -- Total jit bytecode compiled
BiggestPrecompileStringSize -- The biggest single precompile string
BiggestJitBlock -- The biggest single block
PrecompileSteps -- Number of steps in precompile
Precompiles -- Number of precompile blocks started / finished
FinalCompiledCount -- Final amount of precompiled blocks at the end of test.
ExecutionTime -- Total execution time during VM:Step
LongestStepExecutionTime -- Longest execution time during VM:Step
ExecutionSteps -- How many execution steps were performed by this VM

@DerelictDrone DerelictDrone merged commit cb94feb into wiremod:master Sep 6, 2024
1 check failed
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

Successfully merging this pull request may close these issues.

2 participants