Giter Club home page Giter Club logo

gtl's Introduction

gtl's People

Contributors

gpdaniels avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

yazici patilnabhi

gtl's Issues

Add per job build status images

Example:

OS Version Compiler Status
Linux Ubuntu 14.04 Trusty Clang 6.0 Build Status
Linux Ubuntu 14.04 Trusty GCC 7 Build Status
Linux Ubuntu 16.04 Xenial GCC 7 Build Status
Macintosh macOS 10.13 XCode 9.3 Build Status
Macintosh macOS 10.13 XCode 9.4 Build Status
Windows Windows Server, version 1803 VS 2017 Build Status

simulation loop - function update test is unreliable.

Starting test...
Requirement failure:  #1
  Requirement:        simulation_loop.update() == false
  File:               /home/travis/build/gpdaniels/gtl/Tests/simulation_loop.test.cpp
  Line:               55
  Function:           void TEST_function_update()
Finished test. '0' assertions, detected '1' errors.

Add a simple benchmarking function that will repeatably call a function.

Something along the lines of this, although maybe the time should be specified as an argument.

void benchmark(const char* name, std::function<void(void)>&& testFunction) {
    printf("%-15s: ", name);

    std::chrono::steady_clock::time_point Start;
    std::chrono::steady_clock::time_point End;

    // Setup
    Start = std::chrono::steady_clock::now();
    End = Start;
    while (std::chrono::duration<double>(End - Start).count() < 0.5) {
        testFunction();
        End = std::chrono::steady_clock::now();
    }

    // Testing
    Start = std::chrono::steady_clock::now();
    End = Start;
    unsigned int iterations = 0;
    while (std::chrono::duration<double>(End - Start).count() < 0.5) {
        testFunction();
        ++iterations;
        End = std::chrono::steady_clock::now();
    }

    printf("%f (ns)   %d (iterations)\n", std::chrono::duration<double, std::nano>(End - Start).count() / static_cast<double>(iterations), iterations);
    fflush(stdout);
}

Huge number of warnings on appleclang

/Users/travis/build/gpdaniels/gtl/Tests/static_array_nd.test.cpp:330:93: warning: suggest braces around initialization of subobject [-Wmissing-braces]
gtl::static_array_nd<type, value1, value2> static_array_nd_2d = {{{ value }}};

and

/Users/travis/build/gpdaniels/gtl/Tests/static_array_nd.test.cpp:340:111: warning: suggest braces around initialization of subobject [-Wmissing-braces]
gtl::static_array_nd<type, value1, value2, value3> static_array_nd_3d = {{{{{ value }}}}};

Check copy and move constructors / assignment operators.

  • Check copy and move constructors / assignment operators.
  • All move constructors should be marked noexcept.
  • All single argument functions should be explicit.

There's not enough unit test coverage for these yet and I'm sure some are broken.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.