You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
I am the author of mocha-vscode and noticed quite significant performance issue when executing a huge number of tests. First I suspected a problem in my extension but realized that my code had already completed and vscode was still performing updates in the UI.
I am executing ~5k tests and Mocha completes within 1-2secs and within my extension the whole RunHandler is completed. But VSCode still takes a significant amount of time to update all status information for the tests and show the log outputs of the extension.
Here a video showing the UI stall and long test execution (despite the RunHandler completed)
vscode-slow.mp4
It look to the user as if the test execution is ongoing and users get this experience:
They might think the test execution is to blame and attempt cancelling it. But cancelling does nothing in this case.
The UI is still partly responsive so they might want to check logs which are also frozen.
They still get test updates, just very slow and they have to wait quite some time for it to finish.
All the calls made to the TestRun to update status information are internally queued and then executed on the UI thread causing delays. If there is anything I could do from my extension I'm happy to change.
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.96.4. Please try upgrading to the latest version and checking whether this issue remains.
Type: Performance Issue
Description
I am the author of
mocha-vscode
and noticed quite significant performance issue when executing a huge number of tests. First I suspected a problem in my extension but realized that my code had already completed and vscode was still performing updates in the UI.I am executing ~5k tests and Mocha completes within 1-2secs and within my extension the whole
RunHandler
is completed. But VSCode still takes a significant amount of time to update all status information for the tests and show the log outputs of the extension.Here a video showing the UI stall and long test execution (despite the
RunHandler
completed)vscode-slow.mp4
It look to the user as if the test execution is ongoing and users get this experience:
All the calls made to the
TestRun
to update status information are internally queued and then executed on the UI thread causing delays. If there is anything I could do from my extension I'm happy to change.**Steps to reproduce: **
Follow the readme in https://github.com/Danielku15/vscode-test-explorer-performance
VS Code version: Code 1.96.3 (91fbddd, 2025-01-09T18:14:09.060Z)
OS version: Windows_NT x64 10.0.26100
Modes:
System Info
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Extensions (22)
(1 theme extensions excluded)
A/B Experiments
The text was updated successfully, but these errors were encountered: