JavaScript PerformanceThis is a VSCode extension available at the Visual Studio Marketplace. Run multiple JavaScript test-cases against a certain logic in VS Code and simply find out the fastest one. The result will appear in the status bar where the case name will be used. The extension may notify if the highlighted snippet didn't run successfully. Make sure to include all functions/variables/arrays etc.. related to the highlighted definition/case in the selected range, so that the extension can run each case separately. FeaturesYou can create a definition and multiple cases. Once selected, they will be auto-included in the benchmark. It will auto-refresh when you change the selection range. Comply with the format below to run the benchmark successfully:
Working example
InstallationClick on the 'Install' button when after visiting the following link Visual Studio Marketplace Note: you may have to reload the window for the extension to take effect! Run 'Reload Window' from the VSCode Command Panel RequirementsIt supports vanilla JavaScript at the moment. Extension SettingsOpen Extenion settings to change the (n) of times each case is executed. Default is set to 100K Extension Updates0.0.13 You can set the execution times at the definition level, e.g.
Todo/Future Updates
ContributeFeel free to open issues or PRs. Extension LogoAttribution to the flaticon.com for the use of the extension's logo! |