Skip to content
Permalink
Browse files

updated performance tests

  • Loading branch information...
derekmolloy committed May 13, 2018
1 parent f33767a commit 8e54a61c017c1c292d69f4f1968368ceb9a8a9f0

Large diffs are not rendered by default.

Oops, something went wrong.
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
Binary file not shown.
Binary file not shown.
@@ -8,8 +8,8 @@ Duration="5000000"

cp nbody.ghc nbody.hs
cp nbodyp.ghc nbodyp.hs
ghc --make -fllvm -O2 -XBangPatterns -rtsopts -fexcess-precision nbody.hs -o nbody.ghc_run
ghc --make -fllvm -O2 -XBangPatterns -threaded -rtsopts -fexcess-precision nbodyp.hs -o nbodyp.ghc_run
ghc --make -O2 -XBangPatterns -rtsopts -fexcess-precision nbody.hs -o nbody.ghc_run
ghc --make -O2 -XBangPatterns -threaded -rtsopts -fexcess-precision nbodyp.hs -o nbodyp.ghc_run

echo -e "Executing the Haskell Code\n"
T="$(date +%s%N)"
@@ -0,0 +1,9 @@
#!/bin/bash
Duration="5000000"
echo -e "\nThe Lua Example"
T="$(date +%s%N)"
lua5.3 n-body.lua $Duration
T="$(($(date +%s%N)-T))"
T=$((T/1000000))
echo "It took ${T} milliseconds to run the Lua test"

@@ -0,0 +1,11 @@
#!/bin/bash

Duration="5000000"

echo -e "\nThe Ruby Code Example"
T="$(date +%s%N)"
ruby nbody.ruby $Duration
T="$(($(date +%s%N)-T))"
T=$((T/1000000))
echo "It took ${T} milliseconds to run the Ruby test"

0 comments on commit 8e54a61

Please sign in to comment.
You can’t perform that action at this time.