GithubHelp home page GithubHelp logo

raas / mbw Goto Github PK

View Code? Open in Web Editor NEW
218.0 10.0 78.0 36 KB

Memory Bandwidth Benchmark

License: GNU General Public License v3.0

Makefile 2.28% C 84.03% Roff 12.32% CMake 1.36%

mbw's Introduction

MBW determines the "copy" memory bandwidth available to userspace programs. Its simplistic approach models that of real applications. It is not tuned to extremes and it is not aware of hardware architecture, just like your average software package.

2006, 2012 Andras.Horvath atnospam gmail.com
2013 j.m.slocum atnospam gmail.com
2022 Willian.Zhang

http://github.com/raas/mbw
https://github.com/Willian-Zhang/mbw

'mbw 1000' to run copy memory test on all methods with 1 GiB memory.
'mbw -h' for help

watch out for swap usage (or turn off swap)

mbw's People

Contributors

ffontaine avatar ibob avatar jmslocum avatar raas avatar sbates130272 avatar steveschnepp avatar willian-zhang 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mbw's Issues

No license file

in the spec file it says : License: LGPLv2.1 - which obviously isn't right, since it's not a library.

https://www.gnu.org/licenses/old-licenses/lgpl-2.1.en.html
A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables.

mbw is an executable (application program).

Thanks
-Robin

New version tag

Hi,

Please could you tag a new version please? It makes it very much easier to manage.

Martin

Tests are labeled incorrectly

In mbw's output, the MEMCPY lines are actually for the dumb algorithm, and the DUMB lines are for memcpy. This fixes the output:

$ git diff
diff --git a/mbw.c b/mbw.c
index 6251ea9..3d75318 100644
--- a/mbw.c
+++ b/mbw.c
@@ -142,15 +142,15 @@ double worker(unsigned long long asize, long *a, long *b, int type, unsigned lon
 void printout(double te, double mt, int type)
 {
     switch(type) {
-        case 0:
-            printf("Method: MEMCPY\t");
-            break;
         case 1:
-            printf("Method: DUMB\t");
+            printf("Method: MEMCPY\t");
             break;
         case 2:
             printf("Method: MCBLOCK\t");
             break;
+        case 0:
+            printf("Method: DUMB\t");
+            break;
     }
     printf("Elapsed: %.5f\t", te);
     printf("MiB: %.5f\t", mt);

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.