WSL vs Dual Boot speed test

By Dillon Smart · · · 0 Comments

In this experiment, I will be using WSL2 running Ubuntu 20.04 and Ubuntu 20.04 dual-booted on the same Dell XPS. Is there a noticeable difference? Follow along for the results of the WSL vs Dual Boot speed test.

If you are like me and use different development environments a lot, you may find the results of the tests interesting.

PHP Speed Test

In the PHP Speed Test, I will be using PHP 8.1. which is the latest version of PHP as of writing this post. I will be cloning a repository and installing the dependencies with Composer 2 and comparing the results.

PHP Composer CLI Output

Composer speed test on WSL vs Dual-boot

WSL downloaded all dependencies in 6.61 seconds. Dual-boot Ubuntu downloaded all dependencies in 4.38 seconds.

The difference here may not seem that big, however, for large projects with many dependencies the difference in time can become more noticeable.

NPM Speed Test

In the NPM Speed Test, I will be using NPM 8.9.0 (The latest stable release at the time of writing this). I will be installing the Angular CLI and comparing the results.

Angular CLI Output

On WSL, the Angular CLI was installed in 7.21 seconds. Dual-boot Ubuntu downloaded the Angular CLI in 3.28 seconds.

This is a far bigger difference in time and can become extremely noticeable when installing packages using NPM.

Conclusion

WSL is slower, that’s undeniable. However, for many developers, running WSL is a better choice than a Virtual Machine. Staying within the Windows environment is a must in some organizations, and WSL provides a great, convenient way to run Linux applications and command-line tools natively on Windows. It will just take a little longer to get stuff done.

Learn how to set up a LAMP stack on WSL

AngularComposerPHPUbuntuWindows Subsystem for Linux

0 Comment

Was this helpful? Leave a comment!

This site uses Akismet to reduce spam. Learn how your comment data is processed.

How to generate an SSH key and add to authorized_keys

Updated 16th August 2022

In this article we explain how to generate a SSH key for your local machine and add your public key to the authorized_keys on a remote server. Generate an SSH key for Windows, MAC and Linux Note: If you are using Windows, we recommend you use a SSH client like PuTTY. For MAC/Linux run: ssh-keygen

Create a custom WordPress taxonomy for posts and pages

Updated 16th August 2022

Sometimes when building a website using WordPress, the standard taxonomies Categories and Tags just aren’t enough, and you need to create more. Let’s learn how to create our own custom WordPress taxonomy. WordPress has made creating your own taxonomy easy, and you can even add your custom taxonomies to pages too. To accomplish this we

The Ultimate guide to create Apache2 Virtual Hosts (2022)

Updated 16th August 2022

In this post, I will be creating Virtual Hosts for Apache2 on WSL2 (Windows Subsystem for Linux). Follow along with this Ultimate guide to create Apache2 Virtual Hosts. The steps in this tutorial can be carried over onto any environment running Apache2. What we’ll cover Creating the directory structure Creating a symbolic link in Ubuntu