Package net.jcores.jre.utils.internal.structures

Examples of net.jcores.jre.utils.internal.structures.ProfileInformation


     * @see net.jcores.shared.script.JCoresScript#pack()
     */
    protected JCoresScriptRuntime(String name, String[] args) {
        super(name, args);

        final ProfileInformation pi = $.profileInformation();
        this.banner = this.name + " Console - jCores Script (" + pi.numCPUs + " CPUs)";
    }
View Full Code Here


            mapper.handle(0);
            return;
        }
       
        // Compute the later step size and the number of threads.
        final ProfileInformation profileInfo = cc.profileInformation();
        final int STEP_SIZE = Math.max(size() / 10, 1);
        final AtomicInteger index = new AtomicInteger();
       
        // Test-convert the first item and measure time. If time and size are above
        // a certain threshold, parallelize, otherwise map sequentially. However, in here we
View Full Code Here

     * Benchmark the VM. Dirty, but should give us some rough estimates
     *
     * @return
     */
    private ProfileInformation profile() {
        final ProfileInformation p = new ProfileInformation();
        final int RUNS = 10;
        final int N = 5;

        // Measure how long it takes to fork a thread and to wait for it again. We
        // test 10 times and take the average of the last 5 runs.
View Full Code Here

TOP

Related Classes of net.jcores.jre.utils.internal.structures.ProfileInformation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.