On 2010/06/01 17:56:27, Paul Lindner wrote:
move library definitions to top level pom.xml

I don't know much about TypeConverter stuff.

Also some performance tests would be useful to insure that jasper
isn't
significantly slower than juel.

Hi Paul,
Mark Nesbitt from my team has kindly created some quick unit tests to
test out jasper performance compared to juel.  We looped each of the
expressions unit tests 500,000 and measured the time (in milliseconds)
it takes juel versus modified el jasper code.  This is with default JUEL
caching mechanism.  This is probably pretty simplified testcase as we
only use a couple of variables at most and do repeated evaluations on
that. - but so far a good sign as jasper is doing well..


DefaultTemplateProcessor tests -   10000 iterations
Test Name                         Jasper with code changes      JUEL
testTextNode                                        1678        2187
testTopVariable                                     1360        1766
testCurVariable                                     1343        1766
testMyVariable                                      1328        1828
testPlainText                                       1438        1859
testNodeEscaping                                    1375        1797
testAppending                                       4109        5828
testEscapedExpressions                              2766        3578
testElement                                         1765        2422
testAttributeEscaping                               1735        2203
testRepeat                                          1890        2125
testRepeatScalar                                    1719        2047
testCurAttribute                                    1546        1985
testConditional                                     1985        2500
testCustomTag                                       2000        2141
testBooleanAttributes                               1579        2062
testSafeCrossDomainDocumentCloning                  3671        4391
                



Expression Tests - 500,000 iterations
Test Name                       Jasper with code changes        JUEL
arraySupport                                        1172        3890
listSuport                                           906        3360
mapSupport                                           797        2812
jsonObjectSupport                                    1343       2500
jsonArraySupport                                     1110       4000
jsonArrayCoercionOfStatic                            1187       1141
jsonArrayCoercion                                    1125       1719
missingJSONSubproperty                               828        2531
missingMapSubproperty                                344        1687
booleanCoercionOfBooleans                            1047       3985
BooleanCoercisionOfNull                              469        1969
iterableCoercionOfScalar                             312        1047
iterableCoercionOfNull                               250        1000
iterableCoercionOfCollectionRun                      453        1188
iterableCoercionOfJSONArray                         1156        2453
iterableCoercionOfJSONObjectWithListProperty        1532        3297
iterableCoercisionOfJSONObjectWithoutListProperty   1156        2313





http://codereview.appspot.com/1376043/show

Reply via email to