Added input outputting for tests

This commit is contained in:
Nikola
2026-07-15 20:08:57 +02:00
parent e610ca23bf
commit fab0eb03f1
+32
View File
@@ -86,6 +86,12 @@ unsigned tests(void) {
int n = 200;
_Bool colored = true;
printf("Start: %f%+fi\n", crealf(start), cimagf(start));
printf("Width: %li",width);
printf("Height: %li", height);
printf("Resolution: %f", resolution);
printf("Iterations: %i", n);
printf("Colored: %s", colored ? "true" : "false");
for(int i = 0; i < NUMBER_OF_VERSIONS;i++) {
@@ -100,6 +106,13 @@ unsigned tests(void) {
resolution = 0.001f;
n = 5;
printf("Start: %f%+fi\n", crealf(start), cimagf(start));
printf("Width: %li",width);
printf("Height: %li", height);
printf("Resolution: %f", resolution);
printf("Iterations: %i", n);
printf("Colored: %s", colored ? "true" : "false");
for(int i = 0; i < NUMBER_OF_VERSIONS; i++) {
printf("\n\n");
benchmarking(TESTING_AMOUNT,i,start, width, height, resolution, n, colored);
@@ -112,11 +125,22 @@ unsigned tests(void) {
resolution = 0.0005f;
n = 3000;
printf("Start: %f%+fi\n", crealf(start), cimagf(start));
printf("Width: %li",width);
printf("Height: %li", height);
printf("Resolution: %f", resolution);
printf("Iterations: %i", n);
printf("Colored: %s", colored ? "true" : "false");
for(int i = 0; i < NUMBER_OF_VERSIONS; i++) {
printf("\n\n");
benchmarking(TESTING_AMOUNT,i,start, width, height, resolution, n, colored);
}
printf("\nTest 4: Pure Black\n");
start = 0;
width = 1920;
@@ -124,6 +148,14 @@ unsigned tests(void) {
resolution = 0.00001f;
n = 1000;
printf("Start: %f%+fi\n", crealf(start), cimagf(start));
printf("Width: %li",width);
printf("Height: %li", height);
printf("Resolution: %f", resolution);
printf("Iterations: %i", n);
printf("Colored: %s", colored ? "true" : "false");
for(int i = 0; i < NUMBER_OF_VERSIONS; i++) {
printf("\n\n");
benchmarking(TESTING_AMOUNT,i,start, width, height, resolution, n, colored);