|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectN12_Supplement_Listing3
public class N12_Supplement_Listing3
For the article supplement, contains the code relevant to Listing 3.
Constructor Summary | |
---|---|
N12_Supplement_Listing3()
|
Method Summary | |
---|---|
static void |
main(String[] args)
Results on 2008/3/27 on my 2.2 GHz Intel Core 2 Duo E4500 machine (server jvm):
StringBuilder.replace: action statistics: first = 36.415 us, mean = 20.437 ns (CI deltas: -5.229 ps, +5.084 ps), sd = 168.910 ns (CI deltas: -22.590 ns, +32.759 ns) WARNING: SD VALUES MAY BE INACCURATE
----------
--the action statistics were calculated from block statistics
--each block measured 67108864 task executions
--the user says that task internally performs m = 1 actions
--then the number of actions per block measurement is a = 67108864
--block statistics: mean = 1.371 s (CI deltas: -350.914 us, +341.209 us), sd = 1.384 ms (CI deltas: -185.055 us, +268.364 us)
--the forumla used to convert block statistics to action statistics (mean scales as 1/a, sd scales as 1/sqrt(a)) assumes that the execution times are iid
----------
--each confidence interval (CI) is reported as either +- deltas from the point estimate, or as a closed interval ([x, y])
--each confidence interval has confidence level = 0.95
----------
--block sd values MAY NOT REFLECT TASK'S INTRINSIC VARIATION
--guesstimate: environmental noise explains at least 39.97561339191399% of the measured sd
----------
--action sd values ALMOST CERTAINLY GROSSLY INFLATED by outliers
--they cause at least 98.46707644931065% of the measured VARIANCE according to one equi-valued outlier model
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public N12_Supplement_Listing3()
Method Detail |
---|
public static void main(String[] args) throws Exception
StringBuilder.replace: action statistics: first = 36.415 us, mean = 20.437 ns (CI deltas: -5.229 ps, +5.084 ps), sd = 168.910 ns (CI deltas: -22.590 ns, +32.759 ns) WARNING: SD VALUES MAY BE INACCURATE
----------
--the action statistics were calculated from block statistics
--each block measured 67108864 task executions
--the user says that task internally performs m = 1 actions
--then the number of actions per block measurement is a = 67108864
--block statistics: mean = 1.371 s (CI deltas: -350.914 us, +341.209 us), sd = 1.384 ms (CI deltas: -185.055 us, +268.364 us)
--the forumla used to convert block statistics to action statistics (mean scales as 1/a, sd scales as 1/sqrt(a)) assumes that the execution times are iid
----------
--each confidence interval (CI) is reported as either +- deltas from the point estimate, or as a closed interval ([x, y])
--each confidence interval has confidence level = 0.95
----------
--block sd values MAY NOT REFLECT TASK'S INTRINSIC VARIATION
--guesstimate: environmental noise explains at least 39.97561339191399% of the measured sd
----------
--action sd values ALMOST CERTAINLY GROSSLY INFLATED by outliers
--they cause at least 98.46707644931065% of the measured VARIANCE according to one equi-valued outlier model
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |