CPD Results

The following document contains the results of PMD's CPD 6.29.0.

Duplications

File Line
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_testResolveScore_jmhTest.java 36
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_testResolveScore_jmhTest.java 36
public final class AnnotatedScoreResolverBenchmark_testResolveScore_jmhTest {

    byte p000, p001, p002, p003, p004, p005, p006, p007, p008, p009, p010, p011, p012, p013, p014, p015;
    byte p016, p017, p018, p019, p020, p021, p022, p023, p024, p025, p026, p027, p028, p029, p030, p031;
    byte p032, p033, p034, p035, p036, p037, p038, p039, p040, p041, p042, p043, p044, p045, p046, p047;
    byte p048, p049, p050, p051, p052, p053, p054, p055, p056, p057, p058, p059, p060, p061, p062, p063;
    byte p064, p065, p066, p067, p068, p069, p070, p071, p072, p073, p074, p075, p076, p077, p078, p079;
    byte p080, p081, p082, p083, p084, p085, p086, p087, p088, p089, p090, p091, p092, p093, p094, p095;
    byte p096, p097, p098, p099, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111;
    byte p112, p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127;
    byte p128, p129, p130, p131, p132, p133, p134, p135, p136, p137, p138, p139, p140, p141, p142, p143;
    byte p144, p145, p146, p147, p148, p149, p150, p151, p152, p153, p154, p155, p156, p157, p158, p159;
    byte p160, p161, p162, p163, p164, p165, p166, p167, p168, p169, p170, p171, p172, p173, p174, p175;
    byte p176, p177, p178, p179, p180, p181, p182, p183, p184, p185, p186, p187, p188, p189, p190, p191;
    byte p192, p193, p194, p195, p196, p197, p198, p199, p200, p201, p202, p203, p204, p205, p206, p207;
    byte p208, p209, p210, p211, p212, p213, p214, p215, p216, p217, p218, p219, p220, p221, p222, p223;
    byte p224, p225, p226, p227, p228, p229, p230, p231, p232, p233, p234, p235, p236, p237, p238, p239;
    byte p240, p241, p242, p243, p244, p245, p246, p247, p248, p249, p250, p251, p252, p253, p254, p255;
    int startRndMask;
    BenchmarkParams benchmarkParams;
    IterationParams iterationParams;
    ThreadParams threadParams;
    Blackhole blackhole;
    Control notifyControl;

    public BenchmarkTaskResult testResolveScore_Throughput(InfraControl control, ThreadParams threadParams) throws Throwable {
        this.benchmarkParams = control.benchmarkParams;
        this.iterationParams = control.iterationParams;
        this.threadParams    = threadParams;
        this.notifyControl   = control.notifyControl;
        if (this.blackhole == null) {
            this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
        }
        if (threadParams.getSubgroupIndex() == 0) {
            RawResults res = new RawResults();
File Line
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_jmhType_B1.java 3
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_jmhType_B3.java 2
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_jmhType_B1.java 3
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_jmhType_B3.java 2
public class AnnotatedScoreResolverBenchmark_jmhType_B1 extends org.oxerr.spring.cache.redis.scored.jmh.AnnotatedScoreResolverBenchmark {
    byte p000, p001, p002, p003, p004, p005, p006, p007, p008, p009, p010, p011, p012, p013, p014, p015;
    byte p016, p017, p018, p019, p020, p021, p022, p023, p024, p025, p026, p027, p028, p029, p030, p031;
    byte p032, p033, p034, p035, p036, p037, p038, p039, p040, p041, p042, p043, p044, p045, p046, p047;
    byte p048, p049, p050, p051, p052, p053, p054, p055, p056, p057, p058, p059, p060, p061, p062, p063;
    byte p064, p065, p066, p067, p068, p069, p070, p071, p072, p073, p074, p075, p076, p077, p078, p079;
    byte p080, p081, p082, p083, p084, p085, p086, p087, p088, p089, p090, p091, p092, p093, p094, p095;
    byte p096, p097, p098, p099, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111;
    byte p112, p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127;
    byte p128, p129, p130, p131, p132, p133, p134, p135, p136, p137, p138, p139, p140, p141, p142, p143;
    byte p144, p145, p146, p147, p148, p149, p150, p151, p152, p153, p154, p155, p156, p157, p158, p159;
    byte p160, p161, p162, p163, p164, p165, p166, p167, p168, p169, p170, p171, p172, p173, p174, p175;
    byte p176, p177, p178, p179, p180, p181, p182, p183, p184, p185, p186, p187, p188, p189, p190, p191;
    byte p192, p193, p194, p195, p196, p197, p198, p199, p200, p201, p202, p203, p204, p205, p206, p207;
    byte p208, p209, p210, p211, p212, p213, p214, p215, p216, p217, p218, p219, p220, p221, p222, p223;
    byte p224, p225, p226, p227, p228, p229, p230, p231, p232, p233, p234, p235, p236, p237, p238, p239;
    byte p240, p241, p242, p243, p244, p245, p246, p247, p248, p249, p250, p251, p252, p253, p254, p255;
}
File Line
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_jmhType_B1.java 3
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_jmhType_B3.java 2
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_testResolveScore_jmhTest.java 36
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_jmhType_B1.java 3
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_jmhType_B3.java 2
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_testResolveScore_jmhTest.java 36
public class AnnotatedScoreResolverBenchmark_jmhType_B1 extends org.oxerr.spring.cache.redis.scored.jmh.AnnotatedScoreResolverBenchmark {
    byte p000, p001, p002, p003, p004, p005, p006, p007, p008, p009, p010, p011, p012, p013, p014, p015;
    byte p016, p017, p018, p019, p020, p021, p022, p023, p024, p025, p026, p027, p028, p029, p030, p031;
    byte p032, p033, p034, p035, p036, p037, p038, p039, p040, p041, p042, p043, p044, p045, p046, p047;
    byte p048, p049, p050, p051, p052, p053, p054, p055, p056, p057, p058, p059, p060, p061, p062, p063;
    byte p064, p065, p066, p067, p068, p069, p070, p071, p072, p073, p074, p075, p076, p077, p078, p079;
    byte p080, p081, p082, p083, p084, p085, p086, p087, p088, p089, p090, p091, p092, p093, p094, p095;
    byte p096, p097, p098, p099, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111;
    byte p112, p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127;
    byte p128, p129, p130, p131, p132, p133, p134, p135, p136, p137, p138, p139, p140, p141, p142, p143;
    byte p144, p145, p146, p147, p148, p149, p150, p151, p152, p153, p154, p155, p156, p157, p158, p159;
    byte p160, p161, p162, p163, p164, p165, p166, p167, p168, p169, p170, p171, p172, p173, p174, p175;
    byte p176, p177, p178, p179, p180, p181, p182, p183, p184, p185, p186, p187, p188, p189, p190, p191;
    byte p192, p193, p194, p195, p196, p197, p198, p199, p200, p201, p202, p203, p204, p205, p206, p207;
    byte p208, p209, p210, p211, p212, p213, p214, p215, p216, p217, p218, p219, p220, p221, p222, p223;
    byte p224, p225, p226, p227, p228, p229, p230, p231, p232, p233, p234, p235, p236, p237, p238, p239;
    byte p240, p241, p242, p243, p244, p245, p246, p247, p248, p249, p250, p251, p252, p253, p254, p255;
File Line
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_testResolveScore_jmhTest.java 83
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_testResolveScore_jmhTest.java 152
testResolveScore_thrpt_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, l_annotatedscoreresolverbenchmark0_G);
            notifyControl.stopMeasurement = true;
            control.announceWarmdownReady();
            try {
                while (control.warmdownShouldWait) {
                    l_annotatedscoreresolverbenchmark0_G.testResolveScore();
                    res.allOps++;
                }
                control.preTearDown();
            } catch (InterruptedException ie) {
                control.preTearDownForce();
            }

            if (control.isLastIteration()) {
                synchronized(this.getClass()) {
                    f_annotatedscoreresolverbenchmark0_G = null;
                }
            }
            res.allOps += res.measuredOps;
            int batchSize = iterationParams.getBatchSize();
            int opsPerInv = benchmarkParams.getOpsPerInvocation();
            res.allOps *= opsPerInv;
            res.allOps /= batchSize;
            res.measuredOps *= opsPerInv;
            res.measuredOps /= batchSize;
            BenchmarkTaskResult results = new BenchmarkTaskResult((long)res.allOps, (long)res.measuredOps);
            results.add(new ThroughputResult(ResultRole.PRIMARY, "testResolveScore", res.measuredOps, res.getTime(), benchmarkParams.getTimeUnit()));
File Line
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_testResolveScore_jmhTest.java 83
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_testResolveScore_jmhTest.java 152
testResolveScore_thrpt_jmhStub(control, res, benchmarkParams, iterationParams, threadParams, blackhole, notifyControl, startRndMask, l_inheritedscoreresolverbenchmark0_G);
            notifyControl.stopMeasurement = true;
            control.announceWarmdownReady();
            try {
                while (control.warmdownShouldWait) {
                    l_inheritedscoreresolverbenchmark0_G.testResolveScore();
                    res.allOps++;
                }
                control.preTearDown();
            } catch (InterruptedException ie) {
                control.preTearDownForce();
            }

            if (control.isLastIteration()) {
                synchronized(this.getClass()) {
                    f_inheritedscoreresolverbenchmark0_G = null;
                }
            }
            res.allOps += res.measuredOps;
            int batchSize = iterationParams.getBatchSize();
            int opsPerInv = benchmarkParams.getOpsPerInvocation();
            res.allOps *= opsPerInv;
            res.allOps /= batchSize;
            res.measuredOps *= opsPerInv;
            res.measuredOps /= batchSize;
            BenchmarkTaskResult results = new BenchmarkTaskResult((long)res.allOps, (long)res.measuredOps);
            results.add(new ThroughputResult(ResultRole.PRIMARY, "testResolveScore", res.measuredOps, res.getTime(), benchmarkParams.getTimeUnit()));
File Line
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_testResolveScore_jmhTest.java 270
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_testResolveScore_jmhTest.java 270
l_annotatedscoreresolverbenchmark0_G.testResolveScore();
            }
            if (sample) {
                buffer.add((System.nanoTime() - time) / opsPerInv);
                if (currentStride++ > targetSamples) {
                    buffer.half();
                    currentStride = 0;
                    rndMask = (rndMask << 1) + 1;
                }
            }
            operations++;
        } while(!control.isDone);
        startRndMask = Math.max(startRndMask, rndMask);
        result.realTime = realTime;
        result.measuredOps = operations;
    }


    public BenchmarkTaskResult testResolveScore_SingleShotTime(InfraControl control, ThreadParams threadParams) throws Throwable {
        this.benchmarkParams = control.benchmarkParams;
        this.iterationParams = control.iterationParams;
        this.threadParams    = threadParams;
        this.notifyControl   = control.notifyControl;
        if (this.blackhole == null) {
            this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
        }
        if (threadParams.getSubgroupIndex() == 0) {
File Line
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_testResolveScore_jmhTest.java 98
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_testResolveScore_jmhTest.java 98
f_annotatedscoreresolverbenchmark0_G = null;
                }
            }
            res.allOps += res.measuredOps;
            int batchSize = iterationParams.getBatchSize();
            int opsPerInv = benchmarkParams.getOpsPerInvocation();
            res.allOps *= opsPerInv;
            res.allOps /= batchSize;
            res.measuredOps *= opsPerInv;
            res.measuredOps /= batchSize;
            BenchmarkTaskResult results = new BenchmarkTaskResult((long)res.allOps, (long)res.measuredOps);
            results.add(new ThroughputResult(ResultRole.PRIMARY, "testResolveScore", res.measuredOps, res.getTime(), benchmarkParams.getTimeUnit()));
            this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
            return results;
        } else
            throw new IllegalStateException("Harness failed to distribute threads among groups properly");
    }

    public static void testResolveScore_thrpt_jmhStub(InfraControl control, RawResults result, BenchmarkParams benchmarkParams, IterationParams iterationParams, ThreadParams threadParams, Blackhole blackhole, Control notifyControl, int startRndMask, AnnotatedScoreResolverBenchmark_jmhType l_annotatedscoreresolverbenchmark0_G) throws Throwable {
File Line
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_testResolveScore_jmhTest.java 167
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_testResolveScore_jmhTest.java 167
f_annotatedscoreresolverbenchmark0_G = null;
                }
            }
            res.allOps += res.measuredOps;
            int batchSize = iterationParams.getBatchSize();
            int opsPerInv = benchmarkParams.getOpsPerInvocation();
            res.allOps *= opsPerInv;
            res.allOps /= batchSize;
            res.measuredOps *= opsPerInv;
            res.measuredOps /= batchSize;
            BenchmarkTaskResult results = new BenchmarkTaskResult((long)res.allOps, (long)res.measuredOps);
            results.add(new AverageTimeResult(ResultRole.PRIMARY, "testResolveScore", res.measuredOps, res.getTime(), benchmarkParams.getTimeUnit()));
            this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
            return results;
        } else
            throw new IllegalStateException("Harness failed to distribute threads among groups properly");
    }

    public static void testResolveScore_avgt_jmhStub(InfraControl control, RawResults result, BenchmarkParams benchmarkParams, IterationParams iterationParams, ThreadParams threadParams, Blackhole blackhole, Control notifyControl, int startRndMask, AnnotatedScoreResolverBenchmark_jmhType l_annotatedscoreresolverbenchmark0_G) throws Throwable {
File Line
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_testResolveScore_jmhTest.java 240
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_testResolveScore_jmhTest.java 240
f_annotatedscoreresolverbenchmark0_G = null;
                }
            }
            res.allOps += res.measuredOps * batchSize;
            res.allOps *= opsPerInv;
            res.allOps /= batchSize;
            res.measuredOps *= opsPerInv;
            BenchmarkTaskResult results = new BenchmarkTaskResult((long)res.allOps, (long)res.measuredOps);
            results.add(new SampleTimeResult(ResultRole.PRIMARY, "testResolveScore", buffer, benchmarkParams.getTimeUnit()));
            this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
            return results;
        } else
            throw new IllegalStateException("Harness failed to distribute threads among groups properly");
    }

    public static void testResolveScore_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, AnnotatedScoreResolverBenchmark_jmhType l_annotatedscoreresolverbenchmark0_G) throws Throwable {
File Line
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_testResolveScore_jmhTest.java 61
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_testResolveScore_jmhTest.java 130
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_testResolveScore_jmhTest.java 199
public BenchmarkTaskResult testResolveScore_Throughput(InfraControl control, ThreadParams threadParams) throws Throwable {
        this.benchmarkParams = control.benchmarkParams;
        this.iterationParams = control.iterationParams;
        this.threadParams    = threadParams;
        this.notifyControl   = control.notifyControl;
        if (this.blackhole == null) {
            this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
        }
        if (threadParams.getSubgroupIndex() == 0) {
            RawResults res = new RawResults();
            AnnotatedScoreResolverBenchmark_jmhType l_annotatedscoreresolverbenchmark0_G = _jmh_tryInit_f_annotatedscoreresolverbenchmark0_G(control);

            control.preSetup();


            control.announceWarmupReady();
            while (control.warmupShouldWait) {
                l_annotatedscoreresolverbenchmark0_G.testResolveScore();
                res.allOps++;
            }

            notifyControl.startMeasurement = true;
File Line
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_testResolveScore_jmhTest.java 61
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_testResolveScore_jmhTest.java 130
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_testResolveScore_jmhTest.java 199
public BenchmarkTaskResult testResolveScore_Throughput(InfraControl control, ThreadParams threadParams) throws Throwable {
        this.benchmarkParams = control.benchmarkParams;
        this.iterationParams = control.iterationParams;
        this.threadParams    = threadParams;
        this.notifyControl   = control.notifyControl;
        if (this.blackhole == null) {
            this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
        }
        if (threadParams.getSubgroupIndex() == 0) {
            RawResults res = new RawResults();
            InheritedScoreResolverBenchmark_jmhType l_inheritedscoreresolverbenchmark0_G = _jmh_tryInit_f_inheritedscoreresolverbenchmark0_G(control);

            control.preSetup();


            control.announceWarmupReady();
            while (control.warmupShouldWait) {
                l_inheritedscoreresolverbenchmark0_G.testResolveScore();
                res.allOps++;
            }

            notifyControl.startMeasurement = true;
File Line
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_testResolveScore_jmhTest.java 121
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_testResolveScore_jmhTest.java 121
l_annotatedscoreresolverbenchmark0_G.testResolveScore();
            operations++;
        } while(!control.isDone);
        result.stopTime = System.nanoTime();
        result.realTime = realTime;
        result.measuredOps = operations;
    }


    public BenchmarkTaskResult testResolveScore_AverageTime(InfraControl control, ThreadParams threadParams) throws Throwable {
        this.benchmarkParams = control.benchmarkParams;
        this.iterationParams = control.iterationParams;
        this.threadParams    = threadParams;
        this.notifyControl   = control.notifyControl;
        if (this.blackhole == null) {
            this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
        }
        if (threadParams.getSubgroupIndex() == 0) {
            RawResults res = new RawResults();
File Line
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_testResolveScore_jmhTest.java 190
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_testResolveScore_jmhTest.java 190
l_annotatedscoreresolverbenchmark0_G.testResolveScore();
            operations++;
        } while(!control.isDone);
        result.stopTime = System.nanoTime();
        result.realTime = realTime;
        result.measuredOps = operations;
    }


    public BenchmarkTaskResult testResolveScore_SampleTime(InfraControl control, ThreadParams threadParams) throws Throwable {
        this.benchmarkParams = control.benchmarkParams;
        this.iterationParams = control.iterationParams;
        this.threadParams    = threadParams;
        this.notifyControl   = control.notifyControl;
        if (this.blackhole == null) {
            this.blackhole = new Blackhole("Today's password is swordfish. I understand instantiating Blackholes directly is dangerous.");
        }
        if (threadParams.getSubgroupIndex() == 0) {
            RawResults res = new RawResults();
File Line
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/AnnotatedScoreResolverBenchmark_testResolveScore_jmhTest.java 310
org/oxerr/spring/cache/redis/scored/jmh/jmh_generated/InheritedScoreResolverBenchmark_testResolveScore_jmhTest.java 310
f_annotatedscoreresolverbenchmark0_G = null;
                }
            }
            int opsPerInv = control.benchmarkParams.getOpsPerInvocation();
            long totalOps = opsPerInv;
            BenchmarkTaskResult results = new BenchmarkTaskResult(totalOps, totalOps);
            results.add(new SingleShotResult(ResultRole.PRIMARY, "testResolveScore", res.getTime(), benchmarkParams.getTimeUnit()));
            this.blackhole.evaporate("Yes, I am Stephen Hawking, and know a thing or two about black holes.");
            return results;
        } else
            throw new IllegalStateException("Harness failed to distribute threads among groups properly");
    }

    public static void testResolveScore_ss_jmhStub(InfraControl control, RawResults result, BenchmarkParams benchmarkParams, IterationParams iterationParams, ThreadParams threadParams, Blackhole blackhole, Control notifyControl, int startRndMask, int batchSize, AnnotatedScoreResolverBenchmark_jmhType l_annotatedscoreresolverbenchmark0_G) throws Throwable {