Libraryless. Click here for Pure Java version (9905L/56K).
1 | sclass Bench_StupidFib_collab { |
2 | settable int n = 40; |
3 | settable int maxCores = coresToUse(); |
4 | settable int iterations = 3; |
5 | settable int pt = 28; |
6 | |
7 | run { |
8 | repeat iterations { |
9 | print(); |
10 | print(returnTimed("Serial", -> stupidFib(n)); |
11 | |
12 | for (cores : countIterator_incl(1, maxCores)) |
13 | print(returnTimed(nCores(cores), |
14 | -> StupidFib_collab(FastCollab(cores), n) |
15 | .parallelizationThreshold(pt)!)); |
16 | } |
17 | } |
18 | } |
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: | 148 / 223 |
Version history: | 6 change(s) |
Referenced in: | [show references] |