Last active
January 13, 2019 00:08
-
-
Save SqrtNegInf/a7838ffa90a3cbb3031dae15828bd460 to your computer and use it in GitHub Desktop.
Anti-primes testing setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ub18:~/perl6/Rosetta-Code>uname -a | |
Linux cosmic 4.18.0-13-generic #14-Ubuntu SMP Wed Dec 5 09:04:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux | |
ub18:~/perl6/Rosetta-Code>sudo lshw -short | grep DIMM | grep -v empty | |
/0/25/0 memory 2GiB DIMM DRAM EDO | |
ub18:~/perl6/Rosetta-Code>stress --cpu 4 --vm 8 & | |
stress: info: [36187] dispatching hogs: 4 cpu, 0 io, 8 vm, 0 hdd | |
ub18:~/perl6/Rosetta-Code>(Anti-primes; Anti-primes;Anti-primes;Anti-primes;Anti-primes;Anti-primes;Anti-primes;Anti-primes;Anti-primes) | grep ok | |
ok 1 - | |
ok 1 - | |
ok 1 - | |
ok 1 - | |
ok 1 - | |
ok 1 - | |
ok 1 - | |
not ok 1 - | |
# Failed test at Anti-primes line 47 | |
# expected: 'First 20 anti-primes: | |
# 1 2 4 6 12 24 36 48 60 120 180 240 360 720 840 1260 1680 2520 5040 7560 | |
# | |
# Count of anti-primes <= 500000: 35' | |
# got: 'First 20 anti-primes: | |
# 1 2 4 6 12 24 36 48 60 120 180 240 360 720 840 1260 4320 5040 9240 10080 | |
# | |
# Count of anti-primes <= 500000: 34' | |
ok 1 - | |
ub18:~/perl6/Rosetta-Code>cat run.sh | |
Anti-primes > t0 & | |
Anti-primes > t1 & | |
Anti-primes > t2 & | |
Anti-primes > t3 & | |
Anti-primes > t4 & | |
Anti-primes > t5 & | |
Anti-primes > t6 & | |
Anti-primes > t7 & | |
Anti-primes > t8 & | |
Anti-primes > t9 & | |
ub18:~/perl6/Rosetta-Code>source run.sh | |
# lots of error verbiage omitted... | |
ub18:~/perl6/Rosetta-Code>grep Count t* | |
t0:Count of anti-primes <= 500000: 31 | |
t1:Count of anti-primes <= 500000: 23 | |
t2:Count of anti-primes <= 500000: 32 | |
t3:Count of anti-primes <= 500000: 28 | |
t4:Count of anti-primes <= 500000: 33 | |
t5:Count of anti-primes <= 500000: 34 | |
t6:Count of anti-primes <= 500000: 22 | |
t7:Count of anti-primes <= 500000: 29 | |
t8:Count of anti-primes <= 500000: 29 | |
t9:Count of anti-primes <= 500000: 26 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment