/* --------------------------------------------------------- *
* __________ D E L T A S C R I P T *
* (_________() *
* / === / - A fast, dynamic scripting language *
* | == | - Version 4.13.11.0 *
* / === / - Developed by Adam R. Nelson *
* | = = | - 2011-2013 *
* / === / - Distributed under GNU LGPL v3 *
* (________() - http://github.com/ar-nelson/deltascript *
* *
* --------------------------------------------------------- */
package com.sector91.delta.script.profiling;
import com.sector91.delta.script.DeltaScript;
public class CreateTenMillionVectors
{
public static void main(String[] args) throws Exception
{
// Vector creation seems to introduce a lot of performance overhead...
// So, let's create 10,000,000 vectors and see where the bottleneck is!
// This is meant to be run with the Java profiler.
//System.out.println("Start VisualVM, then press ENTER to start...");
//System.in.read();
System.out.println("Creating 100,000 vectors...");
DeltaScript.eval("100000.times(func: <1,2,3>)", "Create 10,000,000 Vectors");
System.out.println("Done!");
}
}