BRL-CAD (Org ID 5154791065911296) Task ID 6322102594437120 | Task Definition ID 6530962290638848 Max instances: 2 Title: Write program comparing performance of bn_randmt vs C++ random Description: The goal of this task is to create a simple little test program that compares the performance of BRL-CAD's merzenne twister random number generator (bn_randmt) with C++;s rand_mt implementation. Although there are usage examples all throughout the BRL-CAD codebase, you can find bn_randmt's API header in: * include/bn Examples of C++'s are all over the web: * https://www.guyrutenberg.com/2014/05/03/c-mt19937-example/ You should use bu_gettime() as a stopwatch timer: e.g., int64_t start = bu_gettime(); printf("elapsed is %lf\n", bu_gettime() - start); Compare performance drawing random numbers. Do they match if you use the same or a nearby seed? You can use any build system you want (e.g., CMake) or rely on direct compilation, or just provide a compile-line that will work if we assume BRL-CAD is installed. SUBMIT your program sourcecode with instructions on how to compile and run. Tags: performance, testing, c/c++ Categories: Coding, Quality Assurance Is Beginner: No Time given to complete: 3 days Mentors: arminstebich@gmail.com, brlcad@gmail.com, odybenko@gmail.com Student: Alexey llyukhov (ID 6136705767702528) Status: COMPLETED (2017-12-01 19:07:46) Last modified: 2017-12-09 03:29:37