View Javadoc
1   package org.apache.commons.rng.examples.jmh.sampling.jmh_generated;
2   
3   import java.util.List;
4   import java.util.concurrent.atomic.AtomicInteger;
5   import java.util.Collection;
6   import java.util.ArrayList;
7   import java.util.concurrent.TimeUnit;
8   import org.openjdk.jmh.annotations.CompilerControl;
9   import org.openjdk.jmh.runner.InfraControl;
10  import org.openjdk.jmh.infra.ThreadParams;
11  import org.openjdk.jmh.results.BenchmarkTaskResult;
12  import org.openjdk.jmh.results.Result;
13  import org.openjdk.jmh.results.ThroughputResult;
14  import org.openjdk.jmh.results.AverageTimeResult;
15  import org.openjdk.jmh.results.SampleTimeResult;
16  import org.openjdk.jmh.results.SingleShotResult;
17  import org.openjdk.jmh.util.SampleBuffer;
18  import org.openjdk.jmh.annotations.Mode;
19  import org.openjdk.jmh.annotations.Fork;
20  import org.openjdk.jmh.annotations.Measurement;
21  import org.openjdk.jmh.annotations.Threads;
22  import org.openjdk.jmh.annotations.Warmup;
23  import org.openjdk.jmh.annotations.BenchmarkMode;
24  import org.openjdk.jmh.results.RawResults;
25  import org.openjdk.jmh.results.ResultRole;
26  import java.lang.reflect.Field;
27  import org.openjdk.jmh.infra.BenchmarkParams;
28  import org.openjdk.jmh.infra.IterationParams;
29  import org.openjdk.jmh.infra.Blackhole;
30  import org.openjdk.jmh.infra.Control;
31  import org.openjdk.jmh.results.ScalarResult;
32  import org.openjdk.jmh.results.AggregationPolicy;
33  import org.openjdk.jmh.runner.FailureAssistException;
34  
35  import org.apache.commons.rng.examples.jmh.sampling.jmh_generated.ListShuffleBenchmark_LinkedListData_jmhType;
36  import org.apache.commons.rng.examples.jmh.sampling.jmh_generated.ListShuffleBenchmark_jmhType;
37  public final class ListShuffleBenchmark_shuffleDirect_jmhTest {
38  
39      byte p000, p001, p002, p003, p004, p005, p006, p007, p008, p009, p010, p011, p012, p013, p014, p015;
40      byte p016, p017, p018, p019, p020, p021, p022, p023, p024, p025, p026, p027, p028, p029, p030, p031;
41      byte p032, p033, p034, p035, p036, p037, p038, p039, p040, p041, p042, p043, p044, p045, p046, p047;
42      byte p048, p049, p050, p051, p052, p053, p054, p055, p056, p057, p058, p059, p060, p061, p062, p063;
43      byte p064, p065, p066, p067, p068, p069, p070, p071, p072, p073, p074, p075, p076, p077, p078, p079;
44      byte p080, p081, p082, p083, p084, p085, p086, p087, p088, p089, p090, p091, p092, p093, p094, p095;
45      byte p096, p097, p098, p099, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111;
46      byte p112, p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127;
47      byte p128, p129, p130, p131, p132, p133, p134, p135, p136, p137, p138, p139, p140, p141, p142, p143;
48      byte p144, p145, p146, p147, p148, p149, p150, p151, p152, p153, p154, p155, p156, p157, p158, p159;
49      byte p160, p161, p162, p163, p164, p165, p166, p167, p168, p169, p170, p171, p172, p173, p174, p175;
50      byte p176, p177, p178, p179, p180, p181, p182, p183, p184, p185, p186, p187, p188, p189, p190, p191;
51      byte p192, p193, p194, p195, p196, p197, p198, p199, p200, p201, p202, p203, p204, p205, p206, p207;
52      byte p208, p209, p210, p211, p212, p213, p214, p215, p216, p217, p218, p219, p220, p221, p222, p223;
53      byte p224, p225, p226, p227, p228, p229, p230, p231, p232, p233, p234, p235, p236, p237, p238, p239;
54      byte p240, p241, p242, p243, p244, p245, p246, p247, p248, p249, p250, p251, p252, p253, p254, p255;
55      int startRndMask;
56      BenchmarkParams benchmarkParams;
57      IterationParams iterationParams;
58      ThreadParams threadParams;
59      Blackhole blackhole;
60      Control notifyControl;
61  
62      public BenchmarkTaskResult shuffleDirect_Throughput(InfraControl control, ThreadParams threadParams) throws Throwable {
63          this.benchmarkParams = control.benchmarkParams;
64          this.iterationParams = control.iterationParams;
65          this.threadParams    = threadParams;
66          this.notifyControl   = control.notifyControl;
67          if (this.blackhole == null) {
68              this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
69          }
70          if (threadParams.getSubgroupIndex() == 0) {
71              RawResults res = new RawResults();
72              ListShuffleBenchmark_jmhType l_listshufflebenchmark0_G = _jmh_tryInit_f_listshufflebenchmark0_G(control);
73              ListShuffleBenchmark_LinkedListData_jmhType l_linkedlistdata1_G = _jmh_tryInit_f_linkedlistdata1_G(control);
74  
75              control.preSetup();
76  
77  
78              control.announceWarmupReady();
79              while (control.warmupShouldWait) {
80                  blackhole.consume(l_listshufflebenchmark0_G.shuffleDirect(l_linkedlistdata1_G));
81                  if (control.shouldYield) Thread.yield();
82                  res.allOps++;
83              }
84  
85              notifyControl.startMeasurement = true;
86              shuffleDirect_thrpt_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, l_linkedlistdata1_G, l_listshufflebenchmark0_G);
87              notifyControl.stopMeasurement = true;
88              control.announceWarmdownReady();
89              try {
90                  while (control.warmdownShouldWait) {
91                      blackhole.consume(l_listshufflebenchmark0_G.shuffleDirect(l_linkedlistdata1_G));
92                      if (control.shouldYield) Thread.yield();
93                      res.allOps++;
94                  }
95              } catch (Throwable e) {
96                  if (!(e instanceof InterruptedException)) throw e;
97              }
98              control.preTearDown();
99  
100             if (control.isLastIteration()) {
101                 if (ListShuffleBenchmark_LinkedListData_jmhType.tearTrialMutexUpdater.compareAndSet(l_linkedlistdata1_G, 0, 1)) {
102                     try {
103                         if (control.isFailing) throw new FailureAssistException();
104                         if (l_linkedlistdata1_G.readyTrial) {
105                             l_linkedlistdata1_G.readyTrial = false;
106                         }
107                     } catch (Throwable t) {
108                         control.isFailing = true;
109                         throw t;
110                     } finally {
111                         ListShuffleBenchmark_LinkedListData_jmhType.tearTrialMutexUpdater.set(l_linkedlistdata1_G, 0);
112                     }
113                 } else {
114                     long l_linkedlistdata1_G_backoff = 1;
115                     while (ListShuffleBenchmark_LinkedListData_jmhType.tearTrialMutexUpdater.get(l_linkedlistdata1_G) == 1) {
116                         TimeUnit.MILLISECONDS.sleep(l_linkedlistdata1_G_backoff);
117                         l_linkedlistdata1_G_backoff = Math.max(1024, l_linkedlistdata1_G_backoff * 2);
118                         if (control.isFailing) throw new FailureAssistException();
119                         if (Thread.interrupted()) throw new InterruptedException();
120                     }
121                 }
122                 synchronized(this.getClass()) {
123                     f_linkedlistdata1_G = null;
124                 }
125                 synchronized(this.getClass()) {
126                     f_listshufflebenchmark0_G = null;
127                 }
128             }
129             res.allOps += res.measuredOps;
130             int batchSize = iterationParams.getBatchSize();
131             int opsPerInv = benchmarkParams.getOpsPerInvocation();
132             res.allOps *= opsPerInv;
133             res.allOps /= batchSize;
134             res.measuredOps *= opsPerInv;
135             res.measuredOps /= batchSize;
136             BenchmarkTaskResult results = new BenchmarkTaskResult((long)res.allOps, (long)res.measuredOps);
137             results.add(new ThroughputResult(ResultRole.PRIMARY, "shuffleDirect", res.measuredOps, res.getTime(), benchmarkParams.getTimeUnit()));
138             this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
139             return results;
140         } else
141             throw new IllegalStateException("Harness failed to distribute threads among groups properly");
142     }
143 
144     public static void shuffleDirect_thrpt_jmhStub(InfraControl control, RawResults result, BenchmarkParams benchmarkParams, IterationParams iterationParams, ThreadParams threadParams, Blackhole blackhole, Control notifyControl, int startRndMask, ListShuffleBenchmark_LinkedListData_jmhType l_linkedlistdata1_G, ListShuffleBenchmark_jmhType l_listshufflebenchmark0_G) throws Throwable {
145         long operations = 0;
146         long realTime = 0;
147         result.startTime = System.nanoTime();
148         do {
149             blackhole.consume(l_listshufflebenchmark0_G.shuffleDirect(l_linkedlistdata1_G));
150             operations++;
151         } while(!control.isDone);
152         result.stopTime = System.nanoTime();
153         result.realTime = realTime;
154         result.measuredOps = operations;
155     }
156 
157 
158     public BenchmarkTaskResult shuffleDirect_AverageTime(InfraControl control, ThreadParams threadParams) throws Throwable {
159         this.benchmarkParams = control.benchmarkParams;
160         this.iterationParams = control.iterationParams;
161         this.threadParams    = threadParams;
162         this.notifyControl   = control.notifyControl;
163         if (this.blackhole == null) {
164             this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
165         }
166         if (threadParams.getSubgroupIndex() == 0) {
167             RawResults res = new RawResults();
168             ListShuffleBenchmark_jmhType l_listshufflebenchmark0_G = _jmh_tryInit_f_listshufflebenchmark0_G(control);
169             ListShuffleBenchmark_LinkedListData_jmhType l_linkedlistdata1_G = _jmh_tryInit_f_linkedlistdata1_G(control);
170 
171             control.preSetup();
172 
173 
174             control.announceWarmupReady();
175             while (control.warmupShouldWait) {
176                 blackhole.consume(l_listshufflebenchmark0_G.shuffleDirect(l_linkedlistdata1_G));
177                 if (control.shouldYield) Thread.yield();
178                 res.allOps++;
179             }
180 
181             notifyControl.startMeasurement = true;
182             shuffleDirect_avgt_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, l_linkedlistdata1_G, l_listshufflebenchmark0_G);
183             notifyControl.stopMeasurement = true;
184             control.announceWarmdownReady();
185             try {
186                 while (control.warmdownShouldWait) {
187                     blackhole.consume(l_listshufflebenchmark0_G.shuffleDirect(l_linkedlistdata1_G));
188                     if (control.shouldYield) Thread.yield();
189                     res.allOps++;
190                 }
191             } catch (Throwable e) {
192                 if (!(e instanceof InterruptedException)) throw e;
193             }
194             control.preTearDown();
195 
196             if (control.isLastIteration()) {
197                 if (ListShuffleBenchmark_LinkedListData_jmhType.tearTrialMutexUpdater.compareAndSet(l_linkedlistdata1_G, 0, 1)) {
198                     try {
199                         if (control.isFailing) throw new FailureAssistException();
200                         if (l_linkedlistdata1_G.readyTrial) {
201                             l_linkedlistdata1_G.readyTrial = false;
202                         }
203                     } catch (Throwable t) {
204                         control.isFailing = true;
205                         throw t;
206                     } finally {
207                         ListShuffleBenchmark_LinkedListData_jmhType.tearTrialMutexUpdater.set(l_linkedlistdata1_G, 0);
208                     }
209                 } else {
210                     long l_linkedlistdata1_G_backoff = 1;
211                     while (ListShuffleBenchmark_LinkedListData_jmhType.tearTrialMutexUpdater.get(l_linkedlistdata1_G) == 1) {
212                         TimeUnit.MILLISECONDS.sleep(l_linkedlistdata1_G_backoff);
213                         l_linkedlistdata1_G_backoff = Math.max(1024, l_linkedlistdata1_G_backoff * 2);
214                         if (control.isFailing) throw new FailureAssistException();
215                         if (Thread.interrupted()) throw new InterruptedException();
216                     }
217                 }
218                 synchronized(this.getClass()) {
219                     f_linkedlistdata1_G = null;
220                 }
221                 synchronized(this.getClass()) {
222                     f_listshufflebenchmark0_G = null;
223                 }
224             }
225             res.allOps += res.measuredOps;
226             int batchSize = iterationParams.getBatchSize();
227             int opsPerInv = benchmarkParams.getOpsPerInvocation();
228             res.allOps *= opsPerInv;
229             res.allOps /= batchSize;
230             res.measuredOps *= opsPerInv;
231             res.measuredOps /= batchSize;
232             BenchmarkTaskResult results = new BenchmarkTaskResult((long)res.allOps, (long)res.measuredOps);
233             results.add(new AverageTimeResult(ResultRole.PRIMARY, "shuffleDirect", res.measuredOps, res.getTime(), benchmarkParams.getTimeUnit()));
234             this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
235             return results;
236         } else
237             throw new IllegalStateException("Harness failed to distribute threads among groups properly");
238     }
239 
240     public static void shuffleDirect_avgt_jmhStub(InfraControl control, RawResults result, BenchmarkParams benchmarkParams, IterationParams iterationParams, ThreadParams threadParams, Blackhole blackhole, Control notifyControl, int startRndMask, ListShuffleBenchmark_LinkedListData_jmhType l_linkedlistdata1_G, ListShuffleBenchmark_jmhType l_listshufflebenchmark0_G) throws Throwable {
241         long operations = 0;
242         long realTime = 0;
243         result.startTime = System.nanoTime();
244         do {
245             blackhole.consume(l_listshufflebenchmark0_G.shuffleDirect(l_linkedlistdata1_G));
246             operations++;
247         } while(!control.isDone);
248         result.stopTime = System.nanoTime();
249         result.realTime = realTime;
250         result.measuredOps = operations;
251     }
252 
253 
254     public BenchmarkTaskResult shuffleDirect_SampleTime(InfraControl control, ThreadParams threadParams) throws Throwable {
255         this.benchmarkParams = control.benchmarkParams;
256         this.iterationParams = control.iterationParams;
257         this.threadParams    = threadParams;
258         this.notifyControl   = control.notifyControl;
259         if (this.blackhole == null) {
260             this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
261         }
262         if (threadParams.getSubgroupIndex() == 0) {
263             RawResults res = new RawResults();
264             ListShuffleBenchmark_jmhType l_listshufflebenchmark0_G = _jmh_tryInit_f_listshufflebenchmark0_G(control);
265             ListShuffleBenchmark_LinkedListData_jmhType l_linkedlistdata1_G = _jmh_tryInit_f_linkedlistdata1_G(control);
266 
267             control.preSetup();
268 
269 
270             control.announceWarmupReady();
271             while (control.warmupShouldWait) {
272                 blackhole.consume(l_listshufflebenchmark0_G.shuffleDirect(l_linkedlistdata1_G));
273                 if (control.shouldYield) Thread.yield();
274                 res.allOps++;
275             }
276 
277             notifyControl.startMeasurement = true;
278             int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond
279             int batchSize = iterationParams.getBatchSize();
280             int opsPerInv = benchmarkParams.getOpsPerInvocation();
281             SampleBuffer buffer = new SampleBuffer();
282             shuffleDirect_sample_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, buffer, targetSamples, opsPerInv, batchSize, l_linkedlistdata1_G, l_listshufflebenchmark0_G);
283             notifyControl.stopMeasurement = true;
284             control.announceWarmdownReady();
285             try {
286                 while (control.warmdownShouldWait) {
287                     blackhole.consume(l_listshufflebenchmark0_G.shuffleDirect(l_linkedlistdata1_G));
288                     if (control.shouldYield) Thread.yield();
289                     res.allOps++;
290                 }
291             } catch (Throwable e) {
292                 if (!(e instanceof InterruptedException)) throw e;
293             }
294             control.preTearDown();
295 
296             if (control.isLastIteration()) {
297                 if (ListShuffleBenchmark_LinkedListData_jmhType.tearTrialMutexUpdater.compareAndSet(l_linkedlistdata1_G, 0, 1)) {
298                     try {
299                         if (control.isFailing) throw new FailureAssistException();
300                         if (l_linkedlistdata1_G.readyTrial) {
301                             l_linkedlistdata1_G.readyTrial = false;
302                         }
303                     } catch (Throwable t) {
304                         control.isFailing = true;
305                         throw t;
306                     } finally {
307                         ListShuffleBenchmark_LinkedListData_jmhType.tearTrialMutexUpdater.set(l_linkedlistdata1_G, 0);
308                     }
309                 } else {
310                     long l_linkedlistdata1_G_backoff = 1;
311                     while (ListShuffleBenchmark_LinkedListData_jmhType.tearTrialMutexUpdater.get(l_linkedlistdata1_G) == 1) {
312                         TimeUnit.MILLISECONDS.sleep(l_linkedlistdata1_G_backoff);
313                         l_linkedlistdata1_G_backoff = Math.max(1024, l_linkedlistdata1_G_backoff * 2);
314                         if (control.isFailing) throw new FailureAssistException();
315                         if (Thread.interrupted()) throw new InterruptedException();
316                     }
317                 }
318                 synchronized(this.getClass()) {
319                     f_linkedlistdata1_G = null;
320                 }
321                 synchronized(this.getClass()) {
322                     f_listshufflebenchmark0_G = null;
323                 }
324             }
325             res.allOps += res.measuredOps * batchSize;
326             res.allOps *= opsPerInv;
327             res.allOps /= batchSize;
328             res.measuredOps *= opsPerInv;
329             BenchmarkTaskResult results = new BenchmarkTaskResult((long)res.allOps, (long)res.measuredOps);
330             results.add(new SampleTimeResult(ResultRole.PRIMARY, "shuffleDirect", buffer, benchmarkParams.getTimeUnit()));
331             this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
332             return results;
333         } else
334             throw new IllegalStateException("Harness failed to distribute threads among groups properly");
335     }
336 
337     public static void shuffleDirect_sample_jmhStub(InfraControl control, RawResults result, BenchmarkParams benchmarkParams, IterationParams iterationParams, ThreadParams threadParams, Blackhole blackhole, Control notifyControl, int startRndMask, SampleBuffer buffer, int targetSamples, long opsPerInv, int batchSize, ListShuffleBenchmark_LinkedListData_jmhType l_linkedlistdata1_G, ListShuffleBenchmark_jmhType l_listshufflebenchmark0_G) throws Throwable {
338         long realTime = 0;
339         long operations = 0;
340         int rnd = (int)System.nanoTime();
341         int rndMask = startRndMask;
342         long time = 0;
343         int currentStride = 0;
344         do {
345             rnd = (rnd * 1664525 + 1013904223);
346             boolean sample = (rnd & rndMask) == 0;
347             if (sample) {
348                 time = System.nanoTime();
349             }
350             for (int b = 0; b < batchSize; b++) {
351                 if (control.volatileSpoiler) return;
352                 blackhole.consume(l_listshufflebenchmark0_G.shuffleDirect(l_linkedlistdata1_G));
353             }
354             if (sample) {
355                 buffer.add((System.nanoTime() - time) / opsPerInv);
356                 if (currentStride++ > targetSamples) {
357                     buffer.half();
358                     currentStride = 0;
359                     rndMask = (rndMask << 1) + 1;
360                 }
361             }
362             operations++;
363         } while(!control.isDone);
364         startRndMask = Math.max(startRndMask, rndMask);
365         result.realTime = realTime;
366         result.measuredOps = operations;
367     }
368 
369 
370     public BenchmarkTaskResult shuffleDirect_SingleShotTime(InfraControl control, ThreadParams threadParams) throws Throwable {
371         this.benchmarkParams = control.benchmarkParams;
372         this.iterationParams = control.iterationParams;
373         this.threadParams    = threadParams;
374         this.notifyControl   = control.notifyControl;
375         if (this.blackhole == null) {
376             this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
377         }
378         if (threadParams.getSubgroupIndex() == 0) {
379             ListShuffleBenchmark_jmhType l_listshufflebenchmark0_G = _jmh_tryInit_f_listshufflebenchmark0_G(control);
380             ListShuffleBenchmark_LinkedListData_jmhType l_linkedlistdata1_G = _jmh_tryInit_f_linkedlistdata1_G(control);
381 
382             control.preSetup();
383 
384 
385             notifyControl.startMeasurement = true;
386             RawResults res = new RawResults();
387             int batchSize = iterationParams.getBatchSize();
388             shuffleDirect_ss_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, batchSize, l_linkedlistdata1_G, l_listshufflebenchmark0_G);
389             control.preTearDown();
390 
391             if (control.isLastIteration()) {
392                 if (ListShuffleBenchmark_LinkedListData_jmhType.tearTrialMutexUpdater.compareAndSet(l_linkedlistdata1_G, 0, 1)) {
393                     try {
394                         if (control.isFailing) throw new FailureAssistException();
395                         if (l_linkedlistdata1_G.readyTrial) {
396                             l_linkedlistdata1_G.readyTrial = false;
397                         }
398                     } catch (Throwable t) {
399                         control.isFailing = true;
400                         throw t;
401                     } finally {
402                         ListShuffleBenchmark_LinkedListData_jmhType.tearTrialMutexUpdater.set(l_linkedlistdata1_G, 0);
403                     }
404                 } else {
405                     long l_linkedlistdata1_G_backoff = 1;
406                     while (ListShuffleBenchmark_LinkedListData_jmhType.tearTrialMutexUpdater.get(l_linkedlistdata1_G) == 1) {
407                         TimeUnit.MILLISECONDS.sleep(l_linkedlistdata1_G_backoff);
408                         l_linkedlistdata1_G_backoff = Math.max(1024, l_linkedlistdata1_G_backoff * 2);
409                         if (control.isFailing) throw new FailureAssistException();
410                         if (Thread.interrupted()) throw new InterruptedException();
411                     }
412                 }
413                 synchronized(this.getClass()) {
414                     f_linkedlistdata1_G = null;
415                 }
416                 synchronized(this.getClass()) {
417                     f_listshufflebenchmark0_G = null;
418                 }
419             }
420             int opsPerInv = control.benchmarkParams.getOpsPerInvocation();
421             long totalOps = opsPerInv;
422             BenchmarkTaskResult results = new BenchmarkTaskResult(totalOps, totalOps);
423             results.add(new SingleShotResult(ResultRole.PRIMARY, "shuffleDirect", res.getTime(), totalOps, benchmarkParams.getTimeUnit()));
424             this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
425             return results;
426         } else
427             throw new IllegalStateException("Harness failed to distribute threads among groups properly");
428     }
429 
430     public static void shuffleDirect_ss_jmhStub(InfraControl control, RawResults result, BenchmarkParams benchmarkParams, IterationParams iterationParams, ThreadParams threadParams, Blackhole blackhole, Control notifyControl, int startRndMask, int batchSize, ListShuffleBenchmark_LinkedListData_jmhType l_linkedlistdata1_G, ListShuffleBenchmark_jmhType l_listshufflebenchmark0_G) throws Throwable {
431         long realTime = 0;
432         result.startTime = System.nanoTime();
433         for (int b = 0; b < batchSize; b++) {
434             if (control.volatileSpoiler) return;
435             blackhole.consume(l_listshufflebenchmark0_G.shuffleDirect(l_linkedlistdata1_G));
436         }
437         result.stopTime = System.nanoTime();
438         result.realTime = realTime;
439     }
440 
441     
442     static volatile ListShuffleBenchmark_LinkedListData_jmhType f_linkedlistdata1_G;
443     
444     ListShuffleBenchmark_LinkedListData_jmhType _jmh_tryInit_f_linkedlistdata1_G(InfraControl control) throws Throwable {
445         ListShuffleBenchmark_LinkedListData_jmhType val = f_linkedlistdata1_G;
446         if (val != null) {
447             return val;
448         }
449         synchronized(this.getClass()) {
450             try {
451             if (control.isFailing) throw new FailureAssistException();
452             val = f_linkedlistdata1_G;
453             if (val != null) {
454                 return val;
455             }
456             val = new ListShuffleBenchmark_LinkedListData_jmhType();
457             Field f;
458             f = org.apache.commons.rng.examples.jmh.sampling.ListShuffleBenchmark.LinkedListData.class.getDeclaredField("size");
459             f.setAccessible(true);
460             f.set(val, Integer.valueOf(control.getParam("size")));
461             val.setup();
462             val.readyTrial = true;
463             f_linkedlistdata1_G = val;
464             } catch (Throwable t) {
465                 control.isFailing = true;
466                 throw t;
467             }
468         }
469         return val;
470     }
471     
472     static volatile ListShuffleBenchmark_jmhType f_listshufflebenchmark0_G;
473     
474     ListShuffleBenchmark_jmhType _jmh_tryInit_f_listshufflebenchmark0_G(InfraControl control) throws Throwable {
475         ListShuffleBenchmark_jmhType val = f_listshufflebenchmark0_G;
476         if (val != null) {
477             return val;
478         }
479         synchronized(this.getClass()) {
480             try {
481             if (control.isFailing) throw new FailureAssistException();
482             val = f_listshufflebenchmark0_G;
483             if (val != null) {
484                 return val;
485             }
486             val = new ListShuffleBenchmark_jmhType();
487             val.readyTrial = true;
488             f_listshufflebenchmark0_G = val;
489             } catch (Throwable t) {
490                 control.isFailing = true;
491                 throw t;
492             }
493         }
494         return val;
495     }
496 
497 
498 }
499