Skip to content

Commit

Permalink
Lower amount of functions
Browse files Browse the repository at this point in the history
  • Loading branch information
qarmin committed Oct 20, 2022
1 parent 6672a42 commit 410f1ea
Show file tree
Hide file tree
Showing 4 changed files with 232 additions and 8 deletions.
60 changes: 58 additions & 2 deletions .github/workflows/linux_godot4_GL3_Normal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,10 @@ jobs:
run: |
echo "" > settings.txt
echo "number_of_function_repeats: 30" >> settings.txt
echo "number_of_function_repeats: 6" >> settings.txt
echo "use_parent_methods: true" >> settings.txt
echo "test_one_class_multiple_times: true" >> settings.txt
echo "how_many_times_test_one_class: 2" >> settings.txt
- name: Run Project One By one, very big amount of functions
run: |
Expand Down Expand Up @@ -575,8 +576,63 @@ jobs:
run: |
echo "" > settings.txt
echo "number_of_function_repeats: 20" >> settings.txt
echo "number_of_function_repeats: 3" >> settings.txt
echo "add_to_tree: true" >> settings.txt
echo "use_parent_methods: true" >> settings.txt
echo "test_one_class_multiple_times: true" >> settings.txt
echo "how_many_times_test_one_class: 2" >> settings.txt
echo "maximum_executed_functions_on_object: 15" >> settings.txt
- name: Run Project One By one, very big amount of functions, Add to tree
run: |
for i in {0..50}; do echo "" >> project_results.txt; done;
echo "======================================== One By one, very big amount of functions, Add to tree" 2>&1 | tee sanitizers_log.txt
UBSAN_OPTIONS=suppressions=suppressions.supp DRI_PRIME=0 timeout -v 1260 xvfb-run ./godot.linuxbsd.editor.dev.x86_64.san FunctionExecutor.tscn 900 --audio-driver Dummy --rendering-driver opengl3 --path $(pwd) 2>&1 | tee sanitizers_log.txt || true
tail -n 200 sanitizers_log.txt >> project_results.txt
if [ -f "results.txt" ]; then
if [ -f "results_end.txt" ]; then
for i in {0..50}; do echo "" >> t.txt; done;
cat "results.txt" "t.txt" "results_end.txt" > "temp.txt"
mv "temp.txt" "results_end.txt"
else
cp "results.txt" "results_end.txt"
fi
fi
if [ -f "memory_usage.txt" ]; then
if [ -f "memory_usage_end.txt" ]; then
for i in {0..50}; do echo "" >> t.txt; done;
cat "memory_usage.txt" "t.txt" "memory_usage_end.txt" > "temp.txt"
mv "temp.txt" "memory_usage_end.txt"
else
cp "memory_usage.txt" "memory_usage_end.txt"
fi
fi
if [ -f "timer.txt" ]; then
if [ -f "timer_end.txt" ]; then
for i in {0..50}; do echo "" >> t.txt; done;
cat "timer.txt" "t.txt" "timer_end.txt" > "temp.txt"
mv "temp.txt" "timer_end.txt"
else
cp "timer.txt" "timer_end.txt"
fi
fi
- name: Configure Project Data
run: |
echo "" > settings.txt
cp project.godot.old project.godot
- name: Configure Project Data
run: |
echo "" > settings.txt
echo "number_of_function_repeats: 2" >> settings.txt
echo "use_parent_methods: true" >> settings.txt
echo "how_many_times_test_one_class: 2" >> settings.txt
echo "maximum_executed_functions_on_object: 15" >> settings.txt
- name: Run Project Multiple classes, very big amount of functions
run: |
Expand Down
60 changes: 58 additions & 2 deletions .github/workflows/linux_godot4_VulkanMobile_Normal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -525,9 +525,10 @@ jobs:
run: |
echo "" > settings.txt
echo "number_of_function_repeats: 30" >> settings.txt
echo "number_of_function_repeats: 6" >> settings.txt
echo "use_parent_methods: true" >> settings.txt
echo "test_one_class_multiple_times: true" >> settings.txt
echo "how_many_times_test_one_class: 2" >> settings.txt
- name: Run Project One By one, very big amount of functions
run: |
Expand Down Expand Up @@ -575,8 +576,63 @@ jobs:
run: |
echo "" > settings.txt
echo "number_of_function_repeats: 20" >> settings.txt
echo "number_of_function_repeats: 3" >> settings.txt
echo "add_to_tree: true" >> settings.txt
echo "use_parent_methods: true" >> settings.txt
echo "test_one_class_multiple_times: true" >> settings.txt
echo "how_many_times_test_one_class: 2" >> settings.txt
echo "maximum_executed_functions_on_object: 15" >> settings.txt
- name: Run Project One By one, very big amount of functions, Add to tree
run: |
for i in {0..50}; do echo "" >> project_results.txt; done;
echo "======================================== One By one, very big amount of functions, Add to tree" 2>&1 | tee sanitizers_log.txt
VK_ICD_FILENAMES=$(pwd)/vk_swiftshader_icd.json UBSAN_OPTIONS=suppressions=suppressions.supp DRI_PRIME=0 timeout -v 1260 xvfb-run ./godot.linuxbsd.editor.dev.x86_64.san FunctionExecutor.tscn 900 --audio-driver Dummy --path $(pwd) 2>&1 | tee sanitizers_log.txt || true
tail -n 200 sanitizers_log.txt >> project_results.txt
if [ -f "results.txt" ]; then
if [ -f "results_end.txt" ]; then
for i in {0..50}; do echo "" >> t.txt; done;
cat "results.txt" "t.txt" "results_end.txt" > "temp.txt"
mv "temp.txt" "results_end.txt"
else
cp "results.txt" "results_end.txt"
fi
fi
if [ -f "memory_usage.txt" ]; then
if [ -f "memory_usage_end.txt" ]; then
for i in {0..50}; do echo "" >> t.txt; done;
cat "memory_usage.txt" "t.txt" "memory_usage_end.txt" > "temp.txt"
mv "temp.txt" "memory_usage_end.txt"
else
cp "memory_usage.txt" "memory_usage_end.txt"
fi
fi
if [ -f "timer.txt" ]; then
if [ -f "timer_end.txt" ]; then
for i in {0..50}; do echo "" >> t.txt; done;
cat "timer.txt" "t.txt" "timer_end.txt" > "temp.txt"
mv "temp.txt" "timer_end.txt"
else
cp "timer.txt" "timer_end.txt"
fi
fi
- name: Configure Project Data
run: |
echo "" > settings.txt
cp project.godot.old project.godot
- name: Configure Project Data
run: |
echo "" > settings.txt
echo "number_of_function_repeats: 2" >> settings.txt
echo "use_parent_methods: true" >> settings.txt
echo "how_many_times_test_one_class: 2" >> settings.txt
echo "maximum_executed_functions_on_object: 15" >> settings.txt
- name: Run Project Multiple classes, very big amount of functions
run: |
Expand Down
60 changes: 58 additions & 2 deletions .github/workflows/linux_godot4_Vulkan_Normal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,10 @@ jobs:
run: |
echo "" > settings.txt
echo "number_of_function_repeats: 30" >> settings.txt
echo "number_of_function_repeats: 6" >> settings.txt
echo "use_parent_methods: true" >> settings.txt
echo "test_one_class_multiple_times: true" >> settings.txt
echo "how_many_times_test_one_class: 2" >> settings.txt
- name: Run Project One By one, very big amount of functions
run: |
Expand Down Expand Up @@ -569,8 +570,63 @@ jobs:
run: |
echo "" > settings.txt
echo "number_of_function_repeats: 20" >> settings.txt
echo "number_of_function_repeats: 3" >> settings.txt
echo "add_to_tree: true" >> settings.txt
echo "use_parent_methods: true" >> settings.txt
echo "test_one_class_multiple_times: true" >> settings.txt
echo "how_many_times_test_one_class: 2" >> settings.txt
echo "maximum_executed_functions_on_object: 15" >> settings.txt
- name: Run Project One By one, very big amount of functions, Add to tree
run: |
for i in {0..50}; do echo "" >> project_results.txt; done;
echo "======================================== One By one, very big amount of functions, Add to tree" 2>&1 | tee sanitizers_log.txt
VK_ICD_FILENAMES=$(pwd)/vk_swiftshader_icd.json UBSAN_OPTIONS=suppressions=suppressions.supp DRI_PRIME=0 timeout -v 1260 xvfb-run ./godot.linuxbsd.editor.dev.x86_64.san FunctionExecutor.tscn 900 --audio-driver Dummy --path $(pwd) 2>&1 | tee sanitizers_log.txt || true
tail -n 200 sanitizers_log.txt >> project_results.txt
if [ -f "results.txt" ]; then
if [ -f "results_end.txt" ]; then
for i in {0..50}; do echo "" >> t.txt; done;
cat "results.txt" "t.txt" "results_end.txt" > "temp.txt"
mv "temp.txt" "results_end.txt"
else
cp "results.txt" "results_end.txt"
fi
fi
if [ -f "memory_usage.txt" ]; then
if [ -f "memory_usage_end.txt" ]; then
for i in {0..50}; do echo "" >> t.txt; done;
cat "memory_usage.txt" "t.txt" "memory_usage_end.txt" > "temp.txt"
mv "temp.txt" "memory_usage_end.txt"
else
cp "memory_usage.txt" "memory_usage_end.txt"
fi
fi
if [ -f "timer.txt" ]; then
if [ -f "timer_end.txt" ]; then
for i in {0..50}; do echo "" >> t.txt; done;
cat "timer.txt" "t.txt" "timer_end.txt" > "temp.txt"
mv "temp.txt" "timer_end.txt"
else
cp "timer.txt" "timer_end.txt"
fi
fi
- name: Configure Project Data
run: |
echo "" > settings.txt
cp project.godot.old project.godot
- name: Configure Project Data
run: |
echo "" > settings.txt
echo "number_of_function_repeats: 2" >> settings.txt
echo "use_parent_methods: true" >> settings.txt
echo "how_many_times_test_one_class: 2" >> settings.txt
echo "maximum_executed_functions_on_object: 15" >> settings.txt
- name: Run Project Multiple classes, very big amount of functions
run: |
Expand Down
60 changes: 58 additions & 2 deletions .github/workflows/linux_godot4_headless_Normal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -519,9 +519,10 @@ jobs:
run: |
echo "" > settings.txt
echo "number_of_function_repeats: 30" >> settings.txt
echo "number_of_function_repeats: 6" >> settings.txt
echo "use_parent_methods: true" >> settings.txt
echo "test_one_class_multiple_times: true" >> settings.txt
echo "how_many_times_test_one_class: 2" >> settings.txt
- name: Run Project One By one, very big amount of functions
run: |
Expand Down Expand Up @@ -569,8 +570,63 @@ jobs:
run: |
echo "" > settings.txt
echo "number_of_function_repeats: 20" >> settings.txt
echo "number_of_function_repeats: 3" >> settings.txt
echo "add_to_tree: true" >> settings.txt
echo "use_parent_methods: true" >> settings.txt
echo "test_one_class_multiple_times: true" >> settings.txt
echo "how_many_times_test_one_class: 2" >> settings.txt
echo "maximum_executed_functions_on_object: 15" >> settings.txt
- name: Run Project One By one, very big amount of functions, Add to tree
run: |
for i in {0..50}; do echo "" >> project_results.txt; done;
echo "======================================== One By one, very big amount of functions, Add to tree" 2>&1 | tee sanitizers_log.txt
UBSAN_OPTIONS=suppressions=suppressions.supp DRI_PRIME=0 timeout -v 1260 xvfb-run ./godot.linuxbsd.editor.dev.x86_64.san FunctionExecutor.tscn 900 --audio-driver Dummy --headless --path $(pwd) 2>&1 | tee sanitizers_log.txt || true
tail -n 200 sanitizers_log.txt >> project_results.txt
if [ -f "results.txt" ]; then
if [ -f "results_end.txt" ]; then
for i in {0..50}; do echo "" >> t.txt; done;
cat "results.txt" "t.txt" "results_end.txt" > "temp.txt"
mv "temp.txt" "results_end.txt"
else
cp "results.txt" "results_end.txt"
fi
fi
if [ -f "memory_usage.txt" ]; then
if [ -f "memory_usage_end.txt" ]; then
for i in {0..50}; do echo "" >> t.txt; done;
cat "memory_usage.txt" "t.txt" "memory_usage_end.txt" > "temp.txt"
mv "temp.txt" "memory_usage_end.txt"
else
cp "memory_usage.txt" "memory_usage_end.txt"
fi
fi
if [ -f "timer.txt" ]; then
if [ -f "timer_end.txt" ]; then
for i in {0..50}; do echo "" >> t.txt; done;
cat "timer.txt" "t.txt" "timer_end.txt" > "temp.txt"
mv "temp.txt" "timer_end.txt"
else
cp "timer.txt" "timer_end.txt"
fi
fi
- name: Configure Project Data
run: |
echo "" > settings.txt
cp project.godot.old project.godot
- name: Configure Project Data
run: |
echo "" > settings.txt
echo "number_of_function_repeats: 2" >> settings.txt
echo "use_parent_methods: true" >> settings.txt
echo "how_many_times_test_one_class: 2" >> settings.txt
echo "maximum_executed_functions_on_object: 15" >> settings.txt
- name: Run Project Multiple classes, very big amount of functions
run: |
Expand Down

0 comments on commit 410f1ea

Please sign in to comment.