Author: byron
Date: Sat Feb 14 12:40:26 2009
New Revision: 744490
URL: http://svn.apache.org/viewvc?rev=744490&view=rev
Log:
Remove localdirective since there's a scope solution for 2.0, and this hasn't
been active
Removed:
velocity/engine/branches/2.0_Exp/experimental/localdirective/
Modified:
velocity/engine/branches/2.0_Exp/experimental/benchmark/Benchmark.java
Modified: velocity/engine/branches/2.0_Exp/experimental/benchmark/Benchmark.java
URL:
http://svn.apache.org/viewvc/velocity/engine/branches/2.0_Exp/experimental/benchmark/Benchmark.java?rev=744490&r1=744489&r2=744490&view=diff
==============================================================================
--- velocity/engine/branches/2.0_Exp/experimental/benchmark/Benchmark.java
(original)
+++ velocity/engine/branches/2.0_Exp/experimental/benchmark/Benchmark.java Sat
Feb 14 12:40:26 2009
@@ -19,15 +19,13 @@
* under the License.
*/
-import java.io.IOException;
-import java.io.StringWriter;
import java.io.Writer;
import java.util.ArrayList;
import java.util.List;
-import java.util.Properties;
import org.apache.velocity.VelocityContext;
import org.apache.velocity.app.VelocityEngine;
+import org.apache.velocity.app.event.EventCartridge;
import org.apache.velocity.runtime.RuntimeConstants;
@@ -51,11 +49,9 @@
{
VelocityEngine vengine = new VelocityEngine();
vengine.setProperty(RuntimeConstants.FILE_RESOURCE_LOADER_CACHE, "true");
- //vengine.setProperty(RuntimeConstants.VM_ARGUMENTS_PASSBYVALUE, "true");
vengine.setProperty(RuntimeConstants.VM_LIBRARY_AUTORELOAD, "false");
//vengine.setProperty(RuntimeConstants.RESOURCE_MANAGER_DEFAULTCACHE_SIZE,
"0");
- //vengine.setProperty(RuntimeConstants.PARSER_POOL_SIZE, "0");
- //vengine.setProperty(RuntimeConstants.RUNTIME_REFERENCES_STRICT, "true");
+ vengine.setProperty(RuntimeConstants.RUNTIME_REFERENCES_STRICT, "true");
vengine.setProperty("file.resource.loader.modificationCheckInterval", "0");
vengine.setProperty(RuntimeConstants.VM_LIBRARY, "vmlib1.vm,vmlib2.vm");
log("Starting " + threadCnt + " threads which will run " + runCnt + "
times");
@@ -106,6 +102,7 @@
public void run()
{
+ EventCartridge ec = new EventCartridge();
for (int i = 0; i < runCnt; i++)
{
Writer writer = new FastWriter();