Code Monkey home page Code Monkey logo

compute_test's Introduction

##Test Future.wait

This is a Future.wait test which just loop counter and output the time spent for this. I am running it on a linux PC with an AMD 5950x. The timing is confusing me:

Debug mode (some times crashes)
1 thread(s) ms: 4205
2 thread(s) ms: 6219
3 thread(s) ms: 2394
4 thread(s) ms: 2431
5 thread(s) ms: 2450
6 thread(s) ms: 2487
7 thread(s) ms: 2655
8 thread(s) ms: 2679
9 thread(s) ms: 4692
10 thread(s) ms: 4780
...

Release mode
1 thread(s) ms: 1337
2 thread(s) ms: 1360
3 thread(s) ms: 1366
4 thread(s) ms: 2183
5 thread(s) ms: 1389
6 thread(s) ms: 1427
7 thread(s) ms: 1403
8 thread(s) ms: 1406
9 thread(s) ms: 3494
10 thread(s) ms: 3489

What i see is a noticeable discrepancy in timing. What I'm missing here? Also by running the test for 1 thread many times, I got this:
1 thread(s) ms: 4187
1 thread(s) ms: 6057
1 thread(s) ms: 2281
1 thread(s) ms: 2279

compute_test's People

Contributors

alnitak avatar

Watchers

 avatar

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.