Skip to content

7 times slower than C++ code #4

Open

Description

@Shuhei-Kishi

Thanks for nice code to apply to python!
I think python code is much more readable than C++ is.
By the way, in my situation, the speed of python predict code is more or less 7 times slower than C++ is. And I tried to refine by comparing the python code and C++ code. But being in the deadlock.
Do you have any idea for this?
It is like, is there any factor to make this slower or any factor to make C++ predict code fast?

Activity

  1. unography commented on Oct 14, 2016

    @unography
    Owner

    Hi, are you doing the benchmark on single image or multiple images?

  2. Shuhei-Kishi commented on Oct 14, 2016

    @Shuhei-Kishi
    Author

    I'm doing on single. But tried on some datas.
    I think that in C++ code, there is resize phase of input data and that makes the time better.

    with python code
    real 0m3.314s
    user 0m3.673s
    sys 0m0.508s

    with C++ code
    real 0m0.553466s
    user 0m1.14728s
    sys 0m0.295055s

    The both was done in the same situation. ubuntu and cpu only

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions