Skip to content

Benchmarks. Change output format and modes #5217

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

Merged
merged 6 commits into from
Mar 18, 2025

Conversation

igordmn
Copy link
Collaborator

@igordmn igordmn commented Jan 27, 2025

  • Replace total CPU time by CPU/GPU/TOTAL average frame time
  • Because Mode.CPU now measures GPU, rename it to SIMPLE
  • Because the difference between FRAMES and SIMPLE is only in vsync, rename it to VSYNC_EMULATION
  • Remove Mode.FRAMES_GPU, as it affects only output
  • Add Compose/Kotlin version, frame/warmup count
  • Add writing to CSV on Desktop
    image

Example of output into console:

Running emulating 120 FPS

# AnimatedVisibility
Version: 1.7.1 (Kotlin 2.1.0)
1000 frames (warmup 100)

CPU average frame time: 268.626us
GPU average frame time: 1.383332ms
TOTAL average frame time: 1.651958ms

Worst p1 CPU (ms): 2.017518ms
Worst p2 CPU (ms): 1.566880ms
Worst p5 CPU (ms): 1.188572ms
Worst p10 CPU (ms): 982.504us
Worst p25 CPU (ms): 753.478us
Worst p50 CPU (ms): 592.363us

Worst p1 GPU (ms): 5.945218ms
Worst p10 GPU (ms): 2.379730ms
Worst p50 GPU (ms): 1.909719ms

Missed frames (no buffering):
    - count: 3
    - ratio: 0.003     
                
Missed frames (double buffering):
    - count: 3
    - ratio: 0.003     
                
Results saved to D:\Work\compose-multiplatform\benchmarks\multiplatform\benchmarks\build\benchmarks\AnimatedVisibility.csv

# LazyGrid
...

Release Notes

N/A

@igordmn igordmn changed the title Benchmarks. Change output format Benchmarks. Change output format and modes Jan 27, 2025
@igordmn igordmn requested a review from pjBooms January 27, 2025 03:34
@igordmn igordmn force-pushed the igor.demin/benchmarks-improvements branch 2 times, most recently from 08339a5 to f22c2e1 Compare January 27, 2025 03:45
@igordmn igordmn force-pushed the igor.demin/benchmarks-improvements branch from f22c2e1 to 769a2df Compare January 27, 2025 03:46
pjBooms

This comment was marked as resolved.

@igordmn igordmn merged commit bf60a6e into master Mar 18, 2025
1 of 2 checks passed
@igordmn igordmn deleted the igor.demin/benchmarks-improvements branch March 18, 2025 20:57
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