Skip to content
Snippets Groups Projects
Commit 2d02bc7b authored by Christian Wulf's avatar Christian Wulf
Browse files

Merge branch 'exception-handling' into 'master'

Exception handling

See merge request !33
parents 0f28daa7 fbd1853b
No related branches found
No related tags found
No related merge requests found
Showing
with 5 additions and 223 deletions
......@@ -12,7 +12,6 @@
<attribute name="maven.pomderived" value="true"/>
</attributes>
</classpathentry>
<classpathentry kind="src" path="src/performancetest/java"/>
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
<attributes>
<attribute name="maven.pomderived" value="true"/>
......
#FindBugs User Preferences
#Thu Mar 19 17:05:30 CET 2015
#Mon Apr 20 12:42:35 CEST 2015
detector_threshold=3
effort=max
excludefilter0=.fbExcludeFilterFile|true
......
......@@ -176,7 +176,7 @@
END OF TERMS AND CONDITIONS
Copyright 2015 TeeTime (http://teetime.sourceforge.net)
Copyright 2015 Christian Wulf, Nelson Tavares de Sousa
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
......
......@@ -465,7 +465,7 @@
<!-- Ensures that the setUp(), tearDown()methods are named correctly, have no arguments, !-->
<!-- return void and are either public or protected. !-->
<!-- See http://checkstyle.sf.net/config_coding.html !-->
<module name="JUnitTestCase"/>
<!-- <module name="JUnitTestCase"/> -->
<!-- Checks that there are no "magic numbers", where a magic number is a numeric literal !-->
<!-- that is not defined as a constant. !-->
......@@ -537,23 +537,12 @@
<!-- Ensure a class has a package declaration. !-->
<!-- See http://checkstyle.sf.net/config_coding.html !-->
<module name="PackageDeclaration">
<property name="ignoreDirectoryName" value="false"/>
</module>
<!-- Disallow assignment of parameters. !-->
<!-- See http://checkstyle.sf.net/config_coding.html !-->
<module name="ParameterAssignment"/>
<!-- Checks for redundant exceptions declared in throws clause such as duplicates, !-->
<!-- unchecked exceptions or subclasses of another declared exception. !-->
<!-- See http://checkstyle.sf.net/config_coding.html !-->
<module name="RedundantThrows">
<property name="allowUnchecked" value="true"/>
<property name="allowSubclasses" value="false"/>
<property name="logLoadErrors" value="true"/>
<property name="suppressLoadErrors" value="false"/>
</module>
<!-- Checks that code doesn't rely on the "this." default. !-->
<!-- See http://checkstyle.sf.net/config_coding.html !-->
<module name="RequireThis">
......@@ -1210,6 +1199,8 @@
<property name="allowEmptyConstructors" value="true"/>
<property name="allowEmptyMethods" value="true"/>
</module>
<module name="qa.cs.PluralForCollectionVariable" />
</module>
......
50;99703319;104370927;106408499;109646670;119511261;107238473;1193008
100;199020106;208153845;213291928;218217473;232246810;213023365;1955142
150;337297889;355560758;374306543;383545922;396757945;370360416;4929915
200;467816371;495637042;516368133;534205012;559056847;516459829;6232480
250;596127470;638856007;661346771;682121844;695630448;657343736;7369335
300;716906859;742194975;769882958;782240095;830910818;769855241;8747627
350;850336524;881553010;900993919;929031728;955373859;902102545;8244969
400;969656446;1006937063;1023078332;1038249029;1075693049;1025527167;7191492
450;1062203254;1117993711;1135809741;1157953147;1196129302;1136791217;8549326
500;1194488793;1247819027;1265504819;1285478406;1338339829;1267369035;8747083
550;1298891408;1360376230;1383581626;1396040687;1446252630;1379434067;8288796
600;1411700331;1476794279;1495615473;1531373285;1563679683;1497879441;10907616
650;1523133256;1592382895;1634060782;1653097655;1703704527;1623416690;11309726
700;1651870606;1712296106;1745785579;1773041064;1833366800;1744948478;10870921
750;1799434427;1857202331;1885811314;1901945050;1971356158;1884567832;11106500
800;1945131323;1988332302;2016273307;2047321799;2101658581;2021289324;12028477
850;2033874834;2087867598;2122065580;2144124665;2227767654;2121055456;11960673
900;2128397748;2196552897;2252379476;2289845931;2360001206;2248629789;15635257
950;2276660049;2357153010;2409342166;2455613183;2543463792;2410879283;17592400
1000;2397618110;2483455455;2537434804;2586458979;2648410314;2536206534;17752209
50;42972259;45705357;47674512;49547679;57755333;47888261;929367
100;85877309;88345443;89831326;91647941;110193010;90534690;1108752
150;126542704;127838796;129663613;132717583;138291205;130759226;849159
200;163076624;169231946;171284689;173014501;177875192;171042545;1003788
250;202760043;212712891;216424930;222157391;243168778;217828254;2127960
300;244925102;254847492;261454494;268472096;279746994;262023035;2473294
350;295270442;303466249;311341637;319395334;333577327;311815751;2871671
400;341138790;352799999;362377914;368274816;384423758;361844612;2798439
450;396709128;406946841;414903572;421594412;448577762;415427408;3346928
500;436940925;455844783;463249285;471076154;487311733;463060680;3505921
550;490942852;503270240;513216035;525717230;553667863;514508002;3871242
600;534018864;551909955;563407664;576517848;608233860;564258423;4708689
650;585511008;603485683;612588236;620917386;649830018;612712354;3755875
700;625806026;644548893;653980673;668725528;688883586;656102636;5037661
750;660155249;679620551;693767944;709739711;737548853;694983836;5521214
800;706846579;722188246;733573899;754445900;797507209;738714440;6181884
850;756893281;773948241;788668441;803770175;832249265;789954631;5736511
900;802499245;820658704;835403073;848752408;864517350;835618338;4730065
950;847020492;870432045;889375145;898214737;928178183;886081861;5345163
1000;894084162;917140730;929015152;933826580;961602850;927688230;4714804
50;55192543;57460829;58720631;59471070;68356974;59104739;719930
100;112944771;116962912;117861099;118904107;124795567;118259015;615219
150;197336862;200525571;205128265;209809954;225915873;207242848;2129381
200;260795647;271667216;277632111;284376702;300601405;278976020;2332638
250;327968010;341060761;349715827;355444620;368655570;349381117;2711402
300;403260622;416040618;427751567;443155321;524093929;436648353;7841529
350;455973935;480969562;486255697;491892622;514066129;486514784;3087561
400;523391178;545019921;551934495;558768028;595911407;552970569;3985442
450;583940657;617119729;627036353;635250811;655591958;626617622;4611909
500;651924313;686916142;698362024;710417619;736700549;699362609;4297125
550;718410894;746477031;758306178;769407998;798066295;757779167;5100886
600;784048733;806062203;824597615;834223718;866035907;822537789;6077305
650;820801534;866889624;890863892;907769109;927715874;886504298;8091027
700;878869736;938875330;969254517;980259204;1003336163;959789010;8279975
750;947249238;990684606;1025992409;1054315713;1097805499;1023776953;10511749
800;1013643367;1060443277;1088546570;1112696087;1156581718;1086779670;9252808
850;1079448262;1132988082;1174349429;1190311404;1218065370;1162456069;10698345
900;1128981351;1179976115;1221295916;1252696169;1273740652;1214642477;11873606
950;1213440441;1291227789;1314440792;1330603470;1356654685;1305970559;10281130
1000;1265263467;1321908614;1374805076;1412596204;1446151226;1368249384;14828493
50;23719147;24224415;24556480;24966661;26641911;24637375;156333
100;46846428;49305179;49937419;50441516;53028410;49837454;320676
150;68027249;72912564;74121167;74971958;85937441;74059844;718037
200;91326560;94605673;98486892;99291749;104344707;97521426;850592
250;114627335;117963206;119062680;120667420;125979594;119414557;729333
300;138366962;141700200;144498037;147383643;156184995;145001711;1170621
350;164774526;169447144;173284771;176384246;184307305;173218474;1345961
400;188961491;197178290;200394792;204703163;211820487;200851802;1637455
450;215202583;219689421;224042261;228881936;241205231;225549979;1993251
500;237638231;246374339;255144679;262169843;270582370;255362981;2699593
550;262621570;275312625;282884893;287775183;296126563;281203096;2489021
600;287798003;296009243;305027095;312065425;327250923;306079032;3088091
650;313336053;321866485;327989659;337157307;353032096;330145073;3093973
700;338501660;346819103;353133911;360440819;381988228;354366240;2742501
750;360091200;367737781;373113735;379424154;388375008;373389434;1921847
800;379083896;394145053;414746293;429602065;495171735;416848289;7638394
850;402335812;415287838;424387902;433808621;446666441;424498095;2969743
900;434722314;443555848;450499093;456066387;498858103;451649404;3461327
950;448993241;460752464;469636905;475704492;491897889;469305365;2954267
1000;479168215;490081328;494116147;500748684;519045359;495833420;2542993
50;213288022;221332661;224869330;226740501;292880519;226981248;3394698
100;428366753;440645131;447250470;452626290;469420849;447253237;2502077
150;685240575;696427369;707731163;712835213;734419362;706963941;3174182
200;926724655;960090857;974751099;985512590;1008813961;971116232;5485152
250;1181356193;1199890144;1230271423;1254058035;1435951193;1232944413;11502559
300;1404383088;1451900893;1475425591;1494546592;1530113206;1475832510;8629307
350;1643973007;1702753553;1723329453;1744498971;1772843227;1720735815;8429278
400;1883990693;1926251730;1961868018;1998996267;2028847559;1960663941;11520331
450;2093457553;2160674377;2196177360;2237898969;2337703230;2200014926;13484216
500;2351931190;2403737744;2440280586;2493890164;2675840385;2451017238;17919723
550;2620308321;2741547299;2778395572;2804673658;3167646315;2775641001;24014167
600;2822565959;2984355731;3011144099;3041297126;3117151797;3007385484;17716813
650;3096633370;3206939671;3257238779;3297084291;3555764011;3251618903;24112459
700;3353953023;3509161265;3549487091;3584125098;3788453833;3545014072;23459360
750;3593827025;3725989652;3790618529;3834291360;3942594712;3784587299;22531680
800;3994363498;4096651433;4161083259;4201211211;4329658181;4156200037;22852870
850;4245739166;4390972894;4467851413;4545305899;4871212706;4478115175;38396394
900;4534080926;4728535725;4784857228;4865421026;5009165781;4799001858;29669971
950;4882368300;5107065209;5150676462;5217475373;5564924455;5155846903;36288606
1000;5353426320;5517819639;5568789133;5648063473;5825645303;5572898368;27980146
50;37409870;39712091;40551614;41872681;46981249;40825827;520100
100;74848886;77594063;79350288;82620526;96710959;80682800;1242332
150;109509472;113130299;114992028;116545042;141809133;116038733;1445413
200;149576667;154103932;158648849;160472809;166534204;157647883;1147641
250;186351044;195045954;197574786;200420541;205740939;197833070;1161424
300;227567297;236209249;239537372;240841608;254943126;238988007;1273608
350;263962350;274421694;278554856;282444575;297325268;278963959;1906965
400;301652197;310932104;318158978;324177268;347633408;318831228;2748566
450;345764700;350349028;356190792;361479579;374075294;356693717;1938489
500;385523591;394501763;402854706;409270794;428996087;402743847;2759305
550;418006345;431712117;437322756;448968927;466004463;440010788;3243488
600;462762141;478331694;486726100;497015897;513094090;487001266;3464966
650;498716701;509037287;521511896;527900069;613747728;521387975;4867196
700;548439432;565718820;571012535;576878519;593948540;571424372;2690897
750;601339623;610144553;617716268;624627039;641422007;618261584;2674503
800;622111344;642761960;653135914;658724386;715327919;651870382;4386503
850;655329758;672637472;688432814;697900331;721996068;686312192;4610008
900;685596911;721248914;730479558;739256163;760854679;730598323;4593658
950;750978691;766349140;775656552;781562357;804829657;775844350;3187702
1000;782708542;811284334;816156850;824923190;847850986;816902190;3685762
File deleted
[increases overhead (first is slower)]
-for loop with list vs. array (reason: due to new instantiation of iterator)
-for loop with super type vs. concrete type (reason: due to less JIT optimization possibilities)
-passing by argument vs. instance variable (reason: unknown)
-pipe with array vs. single element (reason: unknown)
-access via array wrapper vs. array directly
-
[irrelevant w.r.t. overhead]
-foreach vs. index-based iteration
-iterative vs. recursive execution
-null-check vs. NullObject
-AbstractPipe vs. IPipe
-
[analysis performance results (50%)]
2: 7400 ns
8: 1200 ns (iterative; argument/return w/o pipe)
9: 9400 ns (executeWithPorts: queued pipe)
10: 4900 ns (executeWithPorts: single element pipe)
10: 5400 ns (executeWithPorts: single element pipe; with setReschedulable() after each read)
11: 7400 ns (executeWithPorts: fixed sized pipe)
11: 8600 ns (executeWithPorts: fixed sized pipe; with CircularArray(int))
11: 8200 ns (executeWithPorts: fixed sized pipe; with CircularArray(int) w/o mask)
11: 7800 ns (executeWithPorts: fixed sized pipe; with setReschedulable() after each read)
11: 8200 ns (executeWithPorts: fixed sized pipe; with setReschedulable() after each read; non-final elements)
11: 7800 ns (executeWithPorts: fixed sized pipe; with setReschedulable() after each read; non-final elements; pipeline searches for firstStageIndex)
12: 3300 ns (recursive; argument/return w/o pipe)
13: 3300 ns (recursive; argument/return w/o pipe; w/o pipeline class)
14: 21,000 ns (spsc pipe)
16: 14,500 ns (with distributor thread)
17: 8600 ns (as 16, but with direct feeding of SpScPipe)
/tmp
<!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http://www.aspectj.org/dtd/aspectj_1_5_0.dtd">
<aspectj>
<weaver options="">
<include within="mooBench.monitoredApplication.*"/>
<include within="kieker.monitoring.probe..*"/>
</weaver>
<aspects>
<aspect name="kieker.monitoring.probe.aspectj.flow.operationExecution.FullInstrumentation" />
</aspects>
</aspectj>
<!DOCTYPE aspectj PUBLIC "-//AspectJ//DTD//EN" "http://www.aspectj.org/dtd/aspectj_1_5_0.dtd">
<aspectj>
<weaver options="">
<include within="mooBench.monitoredApplication.*"/>
</weaver>
<aspects>
<aspect name="kieker.monitoring.probe.aspectj.operationExecution.OperationExecutionAspectFull"/>
</aspects>
</aspectj>
handlers = java.util.logging.FileHandler
java.util.logging.FileHandler.level = ALL
java.util.logging.FileHandler.formatter = java.util.logging.SimpleFormatter
java.util.logging.FileHandler.append = true
java.util.logging.FileHandler.pattern = kieker.log
kieker.monitoring.enabled=true
kieker.monitoring.name=KIEKER-BENCHMARK
kieker.monitoring.adaptiveMonitoring.enabled=false
kieker.monitoring.periodicSensorsExecutorPoolSize=0
kieker.monitoring.writer.AsyncDummyWriter.QueueSize=100000
kieker.monitoring.writer.AsyncDummyWriter.QueueFullBehavior=1
kieker.monitoring.writer.filesystem.SyncFsWriter.bufferSize=16777216
kieker.monitoring.writer.filesystem.SyncFsWriter.flush=false
kieker.monitoring.writer.filesystem.AsyncFsWriter.QueueSize=100000
kieker.monitoring.writer.filesystem.AsyncFsWriter.QueueFullBehavior=1
kieker.monitoring.writer.filesystem.AsyncFsWriter.bufferSize=16777216
kieker.monitoring.writer.filesystem.AsyncFsWriter.flush=false
kieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.QueueSize=100000
kieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.QueueFullBehavior=1
kieker.monitoring.writer.filesystem.AsyncBinaryFsWriter.bufferSize=16777216
kieker.monitoring.writer.filesystem.AsyncBinaryZipWriter.QueueSize=100000
kieker.monitoring.writer.filesystem.AsyncBinaryZipWriter.QueueFullBehavior=1
kieker.monitoring.writer.filesystem.AsyncBinaryZipWriter.bufferSize=16777216
kieker.monitoring.writer.tcp.TCPWriter.QueueFullBehavior=1
kieker.monitoring.writer.tcp.TCPWriter.QueueSize=100000
#kieker.monitoring.writer.tcp.TCPWriter.hostname=blade2
File deleted
File deleted
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment