forked from ScottOaks/JavaPerformanceTuning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME
More file actions
22 lines (18 loc) · 772 Bytes
/
README
File metadata and controls
22 lines (18 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
To build:
ant
To run:
java <jvmargs> -jar jars/paralleltask.jar nThreads nDoubles mode \
balanced [size]
nThreads - Size of the executor or fork/join pool
nDoubles - Size of the double array
mode - 0 for thread pool, 1 for fork/join pool
unbalanced - false for the balanced test; true for the unbalanced test
size - optional, size at which to switch from recursive fork/join
tasks to simple array counting (default 10)
Example 9-4:
java -Xmx4g -Xms4g -jar jars/paralleltask.jar 1_or_4 100000000 0_or_1 false
Example 9-5:
java -Xmx4g -Xms4g -jar jars/paralleltask.jar 1_or_4 10000 0_or_1 true
Example 9-6:
java -Xmx4g -Xms4g -jar jars/paralleltask.jar 1_or_4 100000000 \
0_or_1 false desired_size