kidoman / rays

Ray tracing based language benchmarks
https://kidoman.com/programming/go-getter.html
95 stars 23 forks source link

Save image to a png file, print progress and statistics to stdout. #1

Closed quarnster closed 10 years ago

quarnster commented 10 years ago

Haven't looked at the performance bits as I tend to write code like this directly in assembly anyway, but this pull request contains a few small tweaks to save the image out to a png file, print the progress of the tracing and print timing info directly from inside the application (makes it reasonable to run it via go run main.go without then including the compilation time).

kidoman commented 10 years ago

I am interested in the statistics part, but since it is going to be non trivial to do the same in C++, should we just stick to go build and then time?

Also, maybe PNG should be an option

quarnster commented 10 years ago

I don't really care, it's your repo :)

Why would the statistics be non trivial to do in C++?

kidoman commented 10 years ago

Actually, now that we have a java version (:P) it is even more important to print statistics from within the program, and allow for repeats (like say a default of 3)

kidoman commented 10 years ago

I am closing this PR for now