diff --git a/README.md b/README.md index c94edc6..b58e456 100644 --- a/README.md +++ b/README.md @@ -107,7 +107,7 @@ These scripts will render STL files, PNG images of the files and then ### Benchmarks -The `scripts/benchmark.sh` script will run various tests on the different approaches to generating spirals in the `spiral` directory. +The `scripts/benchmark.sh` script will run various tests on the different approaches to generating spirals in the `spiral` directory. See notes on the actual results of this script [below](#benchmarks) ----- @@ -167,6 +167,12 @@ The goals of V3 are to **greatly** optimize the spiral generation code for speed This version will also contain a 4x reel stacking feature so that all models can be stacked with 3 spiral reels and a top piece. That will give 200ft capacity to the 50ft model and 400ft capacity to the 100ft model. + +## Benchmarks + +In the process of publishing this repository I started questioning claims I was making in this Readme. Throughout the development of this processing reel I've been plagued by long render times. + + ## License MIT License diff --git a/scripts/curaengine.sh b/scripts/curaengine.sh new file mode 100644 index 0000000..45e51d2 --- /dev/null +++ b/scripts/curaengine.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +STL="$1" + +curaengine \ No newline at end of file diff --git a/scripts/slice.sh b/scripts/slice.sh new file mode 100644 index 0000000..2cf75dd --- /dev/null +++ b/scripts/slice.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +STL="$1" + +#const elapsedParse = 'Total time elapsed ' +#const timeParse = 'Print time (s): ' +#const timeStrParse = 'Print time (hr|min|s): ' +#const materialParse = 'Filament (mm^3): ' + + +if ! [ -x "$(command -v curaengine)" ]; then + echo "printtime N/A" + echo "volume N/A" + echo "slicetime N/A" +else + start=`date +%s` + output=`bash ./scripts/curaengine.sh "${STL}"` + end=`date +%s` + slicetime=$((end-start)) + + echo "printtime ${printtime}" + echo "volume ${volume}" + echo "slicetime ${slicetime}" +fi \ No newline at end of file