diff --git a/Implementierung/main.c b/Implementierung/main.c index f81f33e..52cc476 100644 --- a/Implementierung/main.c +++ b/Implementierung/main.c @@ -66,9 +66,14 @@ unsigned tests(void) { printf("Doing testing\n\n"); size_t width = 1920; + size_t ultra_width = 7680; size_t height = 1080; + size_t ultra_height = 4320; + unsigned char *tempArrColored = malloc(width*height*3); unsigned char *tempArrNotColored = malloc(width*height*1); + unsigned char *tempArrUltraColored = malloc(ultra_width*ultra_height*3); + if (tempArrColored == NULL || tempArrNotColored == NULL) { fprintf(stderr,"Failed to allocate space for image\n"); @@ -95,8 +100,18 @@ unsigned tests(void) { printf("\n\n"); benchmarking(10,3,-2.0f - 0.5f*I, width, height, 0.001f, 200, true, tempArrColored); + printf("\n\n\nTest 3: Ultra high resolution low iterations\n"); + printf("\n\n"); + benchmarking(10,0,-2.0f - 0.5f*I, ultra_width, ultra_height, 0.001f, 5, true, tempArrUltraColored); + printf("\n\n"); + benchmarking(10,1,-2.0f - 0.5f*I, ultra_width, ultra_height, 0.001f, 5, true, tempArrUltraColored); + printf("\n\n"); + benchmarking(10,2,-2.0f - 0.5f*I, ultra_width, ultra_height, 0.001f, 5, true, tempArrUltraColored); + printf("\n\n"); + benchmarking(10,3,-2.0f - 0.5f*I, ultra_width, ultra_height, 0.001f, 5, true, tempArrUltraColored); - printf("\n\n\nTest 3: High iteration count\n"); + + printf("\n\n\nTest 4: High iteration count\n"); printf("\n\n"); benchmarking(10,0,-2.0f - 0.5f*I, width, height, 0.001f, 5000, false, tempArrNotColored); printf("\n\n"); @@ -107,7 +122,8 @@ unsigned tests(void) { benchmarking(10,3,-2.0f - 0.5f*I, width, height, 0.001f, 5000, false, tempArrNotColored); - printf("\n\n\nTest 4: Zoomed image\n"); + + printf("\n\n\nTest 5: Zoomed image\n"); printf("\n\n"); benchmarking(10,0,-0.5f - 0.5f*I, 1024, 1024, 0.0005f, 500, false, tempArrNotColored); printf("\n\n"); @@ -117,6 +133,17 @@ unsigned tests(void) { printf("\n\n"); benchmarking(10,3,-0.5f - 0.5f*I, 1024, 1024, 0.0005f, 500, false, tempArrNotColored); + printf("\nTest 6: Pure Black\n"); + printf("\n\n"); + benchmarking(10,0,0, width, height, 0.00001f, 1000, false, tempArrNotColored); + printf("\n\n"); + benchmarking(10,1,0, width, height, 0.00001f, 1000, false, tempArrNotColored); + printf("\n\n"); + benchmarking(10,2,0, width, height, 0.00001f, 1000, false, tempArrNotColored); + printf("\n\n"); + benchmarking(10,3,0, width, height, 0.00001f, 1000, false, tempArrNotColored); + + free(tempArrColored); free(tempArrNotColored);