diff --git a/examples/02_many_samples/example b/examples/02_many_samples/example deleted file mode 100755 index f560167..0000000 Binary files a/examples/02_many_samples/example and /dev/null differ diff --git a/examples/02_many_samples_time_to_botec/example b/examples/02_many_samples_time_to_botec/example new file mode 100755 index 0000000..c16df9a Binary files /dev/null and b/examples/02_many_samples_time_to_botec/example differ diff --git a/examples/02_many_samples/example.c b/examples/02_many_samples_time_to_botec/example.c similarity index 83% rename from examples/02_many_samples/example.c rename to examples/02_many_samples_time_to_botec/example.c index f7ea419..9bb21e7 100644 --- a/examples/02_many_samples/example.c +++ b/examples/02_many_samples_time_to_botec/example.c @@ -42,11 +42,13 @@ int main(){ for(int i=0; i&1 >/dev/null | grep real | awk '{print $$2}' ); echo "scale=2; 1000 * $$t / 100" | bc | sed "s|^|Time using 1 thread: |" | sed 's|$$|ms|' && echo + @t=$$(/usr/bin/time -f "%e" -p bash -c 'for i in {1..100}; do ./$(OUTPUT); done' 2>&1 >/dev/null | grep real | awk '{print $$2}' ); echo "scale=2; 1000 * $$t / 100" | bc | sed "s|^|Time using 1 thread: |" | sed 's|$$|ms|' && echo ## Profiling