On Sat, Jun 11, 2011 at 6:17 PM, Afkham Azeez <az...@wso2.com> wrote:
> So caching gives a significant performance improvement. Caching does add significant performance as all unmodified resources are fetched from caching avoiding db call. > Anyway, the only difference between RC9 & RC10 is the following code > segment; > > if (!AuthorizationUtils.authorize(path, ActionConstants.GET)) { > + String msg = "User " + CurrentSession.getUser() + " is not > authorized to " + > + "read the resource " + path + "."; > + log.warn(msg); > + throw new AuthorizationFailedException(msg); > + } > > Senaka, can you profile and see what is the overhead introduced by the > AuthorizationUtils.authorize method > Permissions are also fetched from cache. Hence for unmodified permissions, impact should be minimum. > (that method should have been named isAuthorized!) > +1 :-) /sumedha > > > On Sat, Jun 11, 2011 at 2:52 PM, Charitha Kankanamge <chari...@wso2.com>wrote: > >> Figures with caching disabled. >> >> Requests per second: 1,661.51 [#/sec] (mean) >> Requests per second: 1,699.38 [#/sec] (mean) >> Requests per second: 1,664.97 [#/sec] (mean) >> Requests per second: 1,664.65 [#/sec] (mean) >> Requests per second: 1,662.48 [#/sec] (mean) >> >> /Charitha >> >> >> >> On Sat, Jun 11, 2011 at 2:32 PM, Afkham Azeez <az...@wso2.com> wrote: >> >>> pls compare this with no-caching >>> >>> On Sat, Jun 11, 2011 at 2:06 PM, Charitha Kankanamge >>> <chari...@wso2.com>wrote: >>> >>>> Did a quick performance comparison of RC10 and RC9 versions of >>>> Carbon-3.2.0. >>>> >>>> Test: >>>> ===== >>>> Service hosted in AS which reads a resource in embedded registry >>>> (service impl class is as follows) >>>> >>>> Registry registry = >>>> CarbonContext.getCurrentContext().getRegistry(RegistryType.SYSTEM_CONFIGURATION); >>>> >>>> Resource r1 = null; >>>> try { >>>> r1 = registry.get("d1/d2/d3/r1"); >>>> } catch (RegistryException e) { >>>> e.printStackTrace(); //To change body of catch statement >>>> use File | Settings | File Templates. >>>> } >>>> return r1.getDescription(); >>>> >>>> java-bench client:- >>>> >>>> while true;do java -jar benchmark.jar -p registry_get_request.xml -n >>>> 1000 -c 200 -k -H "SOAPAction: urn:getResource" -T "application/soap+xml; >>>> charset=UTF-8" >>>> http://192.168.122.1:9763/services/RegistryGetService/;done >>>> >>>> >>>> RC9 >>>> ===== >>>> Requests per second: 3,291.87 [#/sec] (mean) >>>> Requests per second: 3,448.57 [#/sec] (mean) >>>> Requests per second: 3,417.59 [#/sec] (mean) >>>> Requests per second: 3,334.18 [#/sec] (mean) >>>> Requests per second: 3,291.88 [#/sec] (mean) >>>> Requests per second: 3,433.59 [#/sec] (mean) >>>> Requests per second: 3,477.33 [#/sec] (mean) >>>> Requests per second: 3,368.26 [#/sec] (mean) >>>> Requests per second: 3,323.68 [#/sec] (mean) >>>> Requests per second: 3,364.71 [#/sec] (mean) >>>> >>>> RC10 >>>> ===== >>>> Requests per second: 2,931.87 [#/sec] (mean) >>>> Requests per second: 2,992.98 [#/sec] (mean) >>>> Requests per second: 2,964.73 [#/sec] (mean) >>>> Requests per second: 2,977.55 [#/sec] (mean) >>>> Requests per second: 3,047.40 [#/sec] (mean) >>>> Requests per second: 2,909.69 [#/sec] (mean) >>>> Requests per second: 3,121.50 [#/sec] (mean) >>>> Requests per second: 2,992.58 [#/sec] (mean) >>>> Requests per second: 2,845.01 [#/sec] (mean) >>>> Requests per second: 3,052.30 [#/sec] (mean) >>>> Requests per second: 2,817.33 [#/sec] (mean) >>>> >>>> Regards >>>> Charitha >>>> >>>> _______________________________________________ >>>> Carbon-dev mailing list >>>> Carbon-dev@wso2.org >>>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>>> >>>> >>> >>> >>> -- >>> *Afkham Azeez* >>> Director of Architecture; WSO2, Inc.; http://wso2.com >>> Member; Apache Software Foundation; http://www.apache.org/ >>> * <http://www.apache.org/>** >>> email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919 >>> blog: **http://blog.afkham.org* <http://blog.afkham.org>* >>> twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> >>> * >>> linked-in: **http://lk.linkedin.com/in/afkhamazeez* >>> * >>> * >>> *Lean . Enterprise . Middleware* >>> >>> >>> _______________________________________________ >>> Carbon-dev mailing list >>> Carbon-dev@wso2.org >>> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >>> >>> >> >> _______________________________________________ >> Carbon-dev mailing list >> Carbon-dev@wso2.org >> http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev >> >> > > > -- > *Afkham Azeez* > Director of Architecture; WSO2, Inc.; http://wso2.com > Member; Apache Software Foundation; http://www.apache.org/ > * <http://www.apache.org/>** > email: **az...@wso2.com* <az...@wso2.com>* cell: +94 77 3320919 > blog: **http://blog.afkham.org* <http://blog.afkham.org>* > twitter: **http://twitter.com/afkham_azeez*<http://twitter.com/afkham_azeez> > * > linked-in: **http://lk.linkedin.com/in/afkhamazeez* > * > * > *Lean . Enterprise . Middleware* > > > _______________________________________________ > Carbon-dev mailing list > Carbon-dev@wso2.org > http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev > >
_______________________________________________ Carbon-dev mailing list Carbon-dev@wso2.org http://mail.wso2.org/cgi-bin/mailman/listinfo/carbon-dev