MCPcopy Index your code
hub / github.com/golang/mobile / runDirect

Method runDirect

bind/java/SeqBench.java:111–124  ·  view source on GitHub ↗
(String name, final long n)

Source from the content-addressed store, hash-verified

109 }
110
111 public void runDirect(String name, final long n) {
112 final Runnable r = benchmarks.get(name);
113 try {
114 executor.submit(new Runnable() {
115 @Override public void run() {
116 for (int i = 0; i < n; i++) {
117 r.run();
118 }
119 }
120 }).get();
121 } catch (Exception e) {
122 throw new RuntimeException(e);
123 }
124 }
125
126 public void run(String name, long n) {
127 final Runnable r = benchmarks.get(name);

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected