Package org.gololang.microbenchmarks.support

Examples of org.gololang.microbenchmarks.support.CodeLoader


    Object plop;

    @Setup(Level.Trial)
    public void prepare() {
      plop = new Plop();
      target = new CodeLoader().golo("golo-dispatch", "dispatchPlop", 1);
    }
View Full Code Here


    Object plop;

    @Setup(Level.Trial)
    public void prepare() {
      try {
        plop = new CodeLoader().golo("golo-dispatch", "struct_plop", 0).invoke();
        Class<?> module = plop.getClass().getClassLoader().loadClass("GoloDispatch");
        target = MethodHandles.lookup().findStatic(module, "dispatchPlop", genericMethodType(1));
      } catch (Throwable throwable) {
        throw new AssertionError(throwable);
      }
View Full Code Here

    Object statefulPlop;

    @Setup(Level.Trial)
    public void prepare() {
      try {
        plop = new CodeLoader().golo("golo-dispatch", "dynamic_plop", 0).invoke();
        statefulPlop = new CodeLoader().golo("golo-dispatch", "dynamic_plop_with_internal_state", 0).invoke();
        target = new CodeLoader().golo("golo-dispatch", "dispatchPlop", 1);
      } catch (Throwable throwable) {
        throw new AssertionError(throwable);
      }
    }
View Full Code Here

    Object concretePlop;

    @Setup(Level.Trial)
    public void prepare() {
      try {
        plop = new CodeLoader().groovy("Expando", "provide", genericMethodType(0)).invoke();
        concretePlop = new CodeLoader().groovy("Expando", "provide_concrete_class", genericMethodType(0)).invoke();
        target = new CodeLoader().groovy("Expando", "dispatch", genericMethodType(1));
      } catch (Throwable throwable) {
        throw new AssertionError(throwable);
      }
    }
View Full Code Here

    Object concretePlop;

    @Setup(Level.Trial)
    public void prepare() {
      try {
        plop = new CodeLoader().groovy_indy("Expando", "provide", genericMethodType(0)).invoke();
        concretePlop = new CodeLoader().groovy_indy("Expando", "provide_concrete_class", genericMethodType(0)).invoke();
        target = new CodeLoader().groovy_indy("Expando", "dispatch", genericMethodType(1));
      } catch (Throwable throwable) {
        throw new AssertionError(throwable);
      }
    }
View Full Code Here

    @Setup(Level.Trial)
    public void prepare() {
      MethodHandles.Lookup lookup = MethodHandles.lookup();
      try {
        stringifyHandle = lookup.findStatic(ClosureDispatchMicroBenchmark.class, "stringify", genericMethodType(1));
        target = new CodeLoader().golo("dispatch", "closure_dispatch", 2);
      } catch (NoSuchMethodException | IllegalAccessException e) {
        throw new AssertionError(e);
      }
    }
View Full Code Here

    MethodHandle target;

    @Setup(Level.Trial)
    public void prepare() {
      target = new CodeLoader().golo("filter-map-reduce", "run", 1);
    }
View Full Code Here

    MethodHandle target;

    @Setup(Level.Trial)
    public void prepare() {
      target = new CodeLoader().groovy("FilterMapReduce", "run", genericMethodType(1));
    }
View Full Code Here

    MethodHandle target;

    @Setup(Level.Trial)
    public void prepare() {
      target = new CodeLoader().groovy_indy("FilterMapReduce", "run", genericMethodType(1));
    }
View Full Code Here

    JRubyContainerAndReceiver context;
    RubyArray array;

    @Setup(Level.Trial)
    public void prepare() {
      context = new CodeLoader().jruby("filter-map-reduce");
    }
View Full Code Here

TOP

Related Classes of org.gololang.microbenchmarks.support.CodeLoader

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.