Giter Site home page Giter Site logo

benchpress's People

Contributors

audioplastic avatar cjgdev avatar hauke76 avatar philipp-classen avatar seankibler avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

benchpress's Issues

std::regex_error on examples with gcc-4.8

Hi,

After clean build, all of the examples fail with std::regex_error

``` ./src/examples/example_01`
terminate called after throwing an instance of 'std::regex_error'
what(): regex_error
[1] 388 abort (core dumped) ./src/examples/example_01


After reading other bug reports I gather that gcc-4.8 is simply not supported (I know it's outdated but update is not an option for us at the moment). I suppose that the best approach would be to update the readme with minimal supported compiler version.

Best Regards,
Budziq

Output control...

Is this considered a feature I don't know how to use or a bug?

thell@bb3cae46c3ad:~/Projects/Track/benchpress/src/examples$ ./example_01 --benchtime 3
hello
hello
hello
hello
hello
hello
example                                       5  1000182494 ns/op
./example_01 6.001s

I was not expecting hello to be re-iterated.

linker error

This:

g++ -std=c++11 -o flint flint.cpp -lflint

with flint.cpp:

#include <flint/fmpq_poly.h>
#include <benchpress/benchpress.hpp>
#include "series-benchmark.h"

int main()
{
    fmpq_poly_t x, y, z;
    fmpq_poly_init (x);
    fmpq_poly_init (y);
    fmpq_poly_init (z);

    fmpq_poly_set_coeff_ui(x, 1, 1);
    fmpq_poly_sin_series(x, x, N);
    fmpq_poly_set_coeff_ui(y, 1, 1);
    fmpq_poly_cos_series(y, y, N);

    BENCHMARK("flint", [&](benchpress::context* ctx) {
        for (size_t i = 0; i < ctx->num_iterations(); ++i) {
            fmpq_poly_mullow (z , x , y, N) ;
        }
    })
    fmpq_poly_clear (x);
    fmpq_poly_clear (y);
    fmpq_poly_clear (z);

    return 0;
}

produces

/tmp/ccSDe92z.o: In function `benchpress::registration::get_ptr()':
flint.cpp:(.text._ZN10benchpress12registration7get_ptrEv[_ZN10benchpress12registration7get_ptrEv]+0xa): undefined reference to `benchpress::registration::d_this'
flint.cpp:(.text._ZN10benchpress12registration7get_ptrEv[_ZN10benchpress12registration7get_ptrEv]+0x42): undefined reference to `benchpress::registration::d_this'
flint.cpp:(.text._ZN10benchpress12registration7get_ptrEv[_ZN10benchpress12registration7get_ptrEv]+0x49): undefined reference to `benchpress::registration::d_this'
collect2: error: ld returned 1 exit status

Please Help!

Simple question

The ns/op value is the number of nanoseconds for one iteration inside the loop "for (size_t i = 0; i < ctx->num_iterations(); ++i)" ?

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.