* a simple single threaded test with bc
it computes the first x digits of sin(x)
This commit is contained in:
parent
fa41345a83
commit
9caf71b6d1
|
@ -0,0 +1,5 @@
|
||||||
|
all:
|
||||||
|
time ./bc_sin.sh 500
|
||||||
|
time ./bc_sin.sh 1000
|
||||||
|
time ./bc_sin.sh 2000
|
||||||
|
time ./bc_sin.sh 3000
|
|
@ -0,0 +1,5 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# bc is not threaded. This only tests 1 cpu
|
||||||
|
|
||||||
|
echo "scale=$1; s(1)" | bc -l &>/dev/null
|
Loading…
Reference in New Issue