Skip to content

Instantly share code, notes, and snippets.

@ssippe
Last active June 22, 2021 06:08
Show Gist options
  • Save ssippe/773c103526094e316883b9487353481b to your computer and use it in GitHub Desktop.
Save ssippe/773c103526094e316883b9487353481b to your computer and use it in GitHub Desktop.
wsl notes

Filesystem Performance

For the fastest performance speed, store your files in the WSL file system if you are working in a Linux command line

How much faster?

/mnt/c/... $ time cdk list
real    0m50.455s
user    0m12.842s
sys     0m3.273s

/mnt/c/... $ time cdk list
real    0m58.277s
user    0m12.903s
sys     0m3.695s

/mnt/c/... $ time cdk list
real    1m2.526s
user    0m16.329s
sys     0m4.345s

~/... $ time cdk list
real    0m16.821s
user    0m8.208s
sys     0m1.506s

~/... $ time cdk list
real    0m19.869s
user    0m9.145s
sys     0m1.365s

~/... $ time cdk list
real    0m17.114s
user    0m8.206s
sys     0m1.415s
  • average real /mnt/c 57s
  • average real ~/ 18s
  • ~/ 31% of /mnt/c

Automatic Updates

Use Task Scheduler to run periodically. https://www.riosec.com/articles/automatingupdatesforbashonubuntuonwindows10

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment