Added input outputting for tests
This commit is contained in:
@@ -86,6 +86,12 @@ unsigned tests(void) {
|
|||||||
int n = 200;
|
int n = 200;
|
||||||
_Bool colored = true;
|
_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++) {
|
for(int i = 0; i < NUMBER_OF_VERSIONS;i++) {
|
||||||
@@ -100,6 +106,13 @@ unsigned tests(void) {
|
|||||||
resolution = 0.001f;
|
resolution = 0.001f;
|
||||||
n = 5;
|
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++) {
|
for(int i = 0; i < NUMBER_OF_VERSIONS; i++) {
|
||||||
printf("\n\n");
|
printf("\n\n");
|
||||||
benchmarking(TESTING_AMOUNT,i,start, width, height, resolution, n, colored);
|
benchmarking(TESTING_AMOUNT,i,start, width, height, resolution, n, colored);
|
||||||
@@ -112,11 +125,22 @@ unsigned tests(void) {
|
|||||||
resolution = 0.0005f;
|
resolution = 0.0005f;
|
||||||
n = 3000;
|
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++) {
|
for(int i = 0; i < NUMBER_OF_VERSIONS; i++) {
|
||||||
printf("\n\n");
|
printf("\n\n");
|
||||||
benchmarking(TESTING_AMOUNT,i,start, width, height, resolution, n, colored);
|
benchmarking(TESTING_AMOUNT,i,start, width, height, resolution, n, colored);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
printf("\nTest 4: Pure Black\n");
|
printf("\nTest 4: Pure Black\n");
|
||||||
start = 0;
|
start = 0;
|
||||||
width = 1920;
|
width = 1920;
|
||||||
@@ -124,6 +148,14 @@ unsigned tests(void) {
|
|||||||
resolution = 0.00001f;
|
resolution = 0.00001f;
|
||||||
n = 1000;
|
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++) {
|
for(int i = 0; i < NUMBER_OF_VERSIONS; i++) {
|
||||||
printf("\n\n");
|
printf("\n\n");
|
||||||
benchmarking(TESTING_AMOUNT,i,start, width, height, resolution, n, colored);
|
benchmarking(TESTING_AMOUNT,i,start, width, height, resolution, n, colored);
|
||||||
|
|||||||
Reference in New Issue
Block a user