Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

18
LINES

< > BotCompany Repo | #1035572 // Bench_StupidFib_collab

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (9905L/56K).

sclass Bench_StupidFib_collab {
  settable int n = 40;
  settable int maxCores = coresToUse();
  settable int iterations = 3;
  settable int pt = 28;
  
  run {
    repeat iterations {
      print();
      print(returnTimed("Serial", -> stupidFib(n));
    
      for (cores : countIterator_incl(1, maxCores))
        print(returnTimed(nCores(cores),
          -> StupidFib_collab(FastCollab(cores), n)
               .parallelizationThreshold(pt)!));
    }
  }
}

download  show line numbers  debug dex  old transpilations   

Travelled to 3 computer(s): elmgxqgtpvxh, mowyntqkapby, mqqgnosmbjvj

No comments. add comment

Snippet ID: #1035572
Snippet name: Bench_StupidFib_collab
Eternal ID of this version: #1035572/7
Text MD5: 3ae48d7a6ed8021d07c5b39fa793d649
Transpilation MD5: bc40d0067ddb1a3f8e7d1b3eb93d0a56
Author: stefan
Category: javax / maths
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2022-06-18 22:48:14
Source code size: 479 bytes / 18 lines
Pitched / IR pitched: No / No
Views / Downloads: 147 / 222
Version history: 6 change(s)
Referenced in: [show references]