Package sandbox.dummys

Examples of sandbox.dummys.F0Impl


            public File f(String x) {
                return new File(x.toLowerCase());
            }
        }).as(CoreObject.class);//.print();

        F0 f[] = new F0[] { new F0Impl(), new F0Impl(), new F0Impl() };
        $(f).each(F0.class).f();

        $(f).as(ExtensionCore.class).yoyo();
        //$(f).as(CoreSerializer.class).store("test.xml");
        //System.out.println($("test.xml").as(CoreSerializer.class).load().size());
View Full Code Here


    }

    public static void doRegular() throws Exception {
        long start = System.currentTimeMillis();
        for (int i = 0; i < 10000000; i++) {
            F0Impl a = new F0Impl();
        }
        System.out.println(System.currentTimeMillis() - start);
    }
View Full Code Here

    }

    public static void doReflection() throws Exception {
        long start = System.currentTimeMillis();
        for (int i = 0; i < 10000000; i++) {
            F0Impl a = (F0Impl) F0Impl.class.newInstance();
        }
        System.out.println(System.currentTimeMillis() - start);
    }
View Full Code Here

        long start = System.currentTimeMillis();
        for (int i = 0; i < 10000000; i++) {
            Class<? extends PrintStream> class1 = System.err.getClass();
           
            Constructor<F0Impl> constructor = F0Impl.class.getConstructor(null);
            F0Impl newInstance = constructor.newInstance(null);
        }
        System.out.println(System.currentTimeMillis() - start);
    }
View Full Code Here

        }, 10) + "µs");
        o1.clear();
        System.out.println(benchmark(new F0() { // 2277
            public void f() {
                for (int i = 0; i < size; i++)
                    o1.add(new F0Impl());
            }
        }, 10) + "µs");

        final AtomicInteger ress = new AtomicInteger();
        System.out.println();
View Full Code Here

TOP

Related Classes of sandbox.dummys.F0Impl

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.