3 ms·
Here is the code if anyone is interested: https://github.com/bjourne/c-examples/blob/master/programs/smallpt.cpp https://github.com/bjourne/c-examples/blob/mast
by bjourne 6y ago
Here is the code if anyone is interested: https://github.com/bjourne/c-examples/blob/master/programs/smallpt.cpp https://github.com/bjourne/c-examples/blob/master/programs/s... With a few tweaks, g++ beats nim both in the multi-threaded and single-threaded setups.