Skip to content

Instantly share code, notes, and snippets.

@KayEss
KayEss / ttt.cpp
Last active September 10, 2020 13:20
Quick clock
// clang++ -O3 time.cpp -o ttt
#include <chrono>
#include <iostream>
int main() {
auto last = std::chrono::duration_cast<std::chrono::nanoseconds>(
std::chrono::system_clock::now().time_since_epoch()).count();
while(true) {
@KayEss
KayEss / spheres-white--.md
Last active May 1, 2021 14:24
perf summary for some ray traced outputs

double

"spheres-white.tga" 1920x1080 225/225 (128x72)
"spheres-white.tga" 1920x1080 225/225 (128x72)
"spheres-white.tga" 1920x1080 225/225 (128x72)
"spheres-white.tga" 1920x1080 225/225 (128x72)
"spheres-white.tga" 1920x1080 225/225 (128x72)

 Performance counter stats for './build.tmp/clang-release/scenes/early/spheres-white -w 1920 -h 1080 -c 100 -s 20' (5 runs):

Throughput comparison

R9 5950X using AnimRay commit 729370df6ba0220fe55a506c462acfd19d0b942a

General purpose kernel

$ uname -a
Linux vangogh 5.11.0-17-generic #18-Ubuntu SMP Thu May 6 20:10:11 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux