Skip to content

Instantly share code, notes, and snippets.

@dginev
Created December 19, 2017 14:19
Show Gist options
  • Save dginev/7bb133823d2f9490de32bbeb41f56961 to your computer and use it in GitHub Desktop.
Save dginev/7bb133823d2f9490de32bbeb41f56961 to your computer and use it in GitHub Desktop.
Speed up Perl test runs on modern CPUs
# Add this line to your ~/.bashrc file, or equivalent for your Linux distribution
export HARNESS_OPTIONS=j$(grep -c ^processor /proc/cpuinfo):c
@dginev
Copy link
Author

dginev commented Dec 19, 2017

E.g. on a threadripper 1950x, this will run the Perl test harness with j32 jobs, leading to e.g. a ~5x speedup for the LaTeXML test suite - from 167s to 38s

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