File: test.sh

package info (click to toggle)
ocaml-parany 8.0.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, sid
  • size: 144 kB
  • sloc: ml: 212; makefile: 31; sh: 7
file content (17 lines) | stat: -rwxr-xr-x 399 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

#set -x # DEBUG

NPROCS=`getconf _NPROCESSORS_ONLN`

# parallel with csize > 1
diff <(seq 0 99999) \
     <(_build/default/src/test.exe $NPROCS 800 2>/dev/null | sort -n)

# parallel with csize = 1
diff <(seq 0 99999) \
     <(_build/default/src/test.exe $NPROCS 1 2>/dev/null | sort -n)

# sequential
diff <(seq 0 99999) \
     <(_build/default/src/test.exe 1 1 2>/dev/null | sort -n)