File: busy.sh

package info (click to toggle)
pcm 202502-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,164 kB
  • sloc: cpp: 44,347; ansic: 1,161; sh: 778; python: 388; awk: 28; makefile: 13
file content (7 lines) | stat: -rw-r--r-- 166 bytes parent folder | download
1
2
3
4
5
6
7


# simple script to keep all cores busy for some time

time -p bash -c 'for i in $(seq 1 $(nproc)); do perl -e '\''$c=0; for(0..99999999){$c++;}'\'' & done; wait'