Changeset 430 for trunk/testDb.cfm
- Timestamp:
- 4/28/2008 9:09:50 PM (3 weeks ago)
- Files:
-
- 1 modified
-
trunk/testDb.cfm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/testDb.cfm
r410 r430 1 1 2 <cfset reactorFactory = CreateObject("Component", "reactor.reactorFactory") /> 3 <cfset reactorFactory.init("/config/reactor.xml") /> 2 <cfapplication name="reactorTest" /> 4 3 5 <cfset CustomerGateway = reactorFactory.createGateway("Customer") /> 4 <cfif NOT StructKeyExists(application, "reactorFactory") OR StructKeyExists(url, "reload")> 5 <cfset application.reactorFactory = CreateObject("Component", "reactor.reactorFactory") /> 6 <cfset application.reactorFactory.init("/config/reactor.xml") /> 7 <h1>reload</h1> 8 </cfif> 6 9 7 <cfset total = 0 /> 8 <cfloop from="1" to="30" index="x"> 9 <cfset tick = getTickCount() /> 10 <cfset CustomerGateway.test() /> 11 <cfset total = total + (getTickCount()-tick) /> 12 </cfloop> 10 <cfset CustomerRecord = application.reactorFactory.createRecord("foo5").load(custId=37) /> 11 <cfset CustomerRecord.validate() /> 13 12 14 avg: <cfdump var="#total/30#" />13 <cfdump var="#CustomerRecord#" />

