Jekyll build from gh-pages:f20cd82 updating skeleton for gh-pages rendering
Project: http://git-wip-us.apache.org/repos/asf/incubator-pirk/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-pirk/commit/4b39596b Tree: http://git-wip-us.apache.org/repos/asf/incubator-pirk/tree/4b39596b Diff: http://git-wip-us.apache.org/repos/asf/incubator-pirk/diff/4b39596b Branch: refs/heads/asf-site Commit: 4b39596bd64d0c8bdb58678ede70f38685c44fe5 Parents: 4ac4ac9 Author: eawilliams <[email protected]> Authored: Tue Jul 12 20:53:54 2016 +0200 Committer: eawilliams <[email protected]> Committed: Tue Jul 12 20:53:56 2016 +0200 ---------------------------------------------------------------------- downloads/index.html | 4 + faq.html | 4 + feed.xml | 4 +- for_developers.html | 4 + for_users.html | 4 + get_involved_pirk.html | 4 + index.html | 4 + mailing_list_pirk.html | 4 + news.html | 4 + papers/index.html | 4 + people_pirk.html | 4 + pirk_papers.html | 4 + releasing.html | 4 + roadmap/index.html | 4 + target/classes/META-INF/BenchmarkList | 3 - target/classes/META-INF/CompilerHints | 10 - ...enchmark_PaillierBenchmarkState_jmhType.java | 4 - ...hmark_PaillierBenchmarkState_jmhType_B1.java | 20 - ...hmark_PaillierBenchmarkState_jmhType_B2.java | 22 - ...hmark_PaillierBenchmarkState_jmhType_B3.java | 20 - .../generated/PaillierBenchmark_jmhType.java | 4 - .../generated/PaillierBenchmark_jmhType_B1.java | 20 - .../generated/PaillierBenchmark_jmhType_B2.java | 19 - .../generated/PaillierBenchmark_jmhType_B3.java | 20 - ...nchmark_testWithGMPConstantTime_jmhTest.java | 414 ------------------- .../PaillierBenchmark_testWithGMP_jmhTest.java | 414 ------------------- ...aillierBenchmark_testWithoutGMP_jmhTest.java | 414 ------------------- .../jmh/infra/generated/Blackhole_jmhType.java | 4 - .../infra/generated/Blackhole_jmhType_B1.java | 20 - .../infra/generated/Blackhole_jmhType_B2.java | 19 - .../infra/generated/Blackhole_jmhType_B3.java | 20 - .../compile/default-compile/createdFiles.lst | 106 ----- .../compile/default-compile/inputFiles.lst | 83 ---- .../default-testCompile/createdFiles.lst | 10 - .../default-testCompile/inputFiles.lst | 8 - .../TEST-test.general.ISO8601DateParserTest.xml | 66 --- ...est.general.ISO8601DateParserTest-output.txt | 6 - .../test.general.ISO8601DateParserTest.txt | 4 - target/test-classes/META-INF/BenchmarkList | 0 target/test-classes/META-INF/CompilerHints | 5 - verifying_releases.html | 4 + website_updates.html | 4 + 42 files changed, 62 insertions(+), 1737 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/downloads/index.html ---------------------------------------------------------------------- diff --git a/downloads/index.html b/downloads/index.html index 0382013..bd3797d 100644 --- a/downloads/index.html +++ b/downloads/index.html @@ -143,6 +143,10 @@ <div class="container"> <div class="row"> <div class="col-md-12"> + + <div id="non-canonical" style="display: none; background-color: #F0E68C; padding-left: 1em;"> + Visit the official site at: <a href="http://pirk.incubator.apache.org/">http://pirk.incubator.apache.org/</a> + </div> <div id="content"> <h1 class="title">Downloads</h1> http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/faq.html ---------------------------------------------------------------------- diff --git a/faq.html b/faq.html index e4349ac..a5a5795 100644 --- a/faq.html +++ b/faq.html @@ -143,6 +143,10 @@ <div class="container"> <div class="row"> <div class="col-md-12"> + + <div id="non-canonical" style="display: none; background-color: #F0E68C; padding-left: 1em;"> + Visit the official site at: <a href="http://pirk.incubator.apache.org/">http://pirk.incubator.apache.org/</a> + </div> <div id="content"> <h1 class="title">FAQ</h1> http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/feed.xml ---------------------------------------------------------------------- diff --git a/feed.xml b/feed.xml index 55622ec..b525c8e 100644 --- a/feed.xml +++ b/feed.xml @@ -6,8 +6,8 @@ </description> <link>http://pirk.incubator.apache.org//pirk/</link> <atom:link href="http://pirk.incubator.apache.org//pirk/feed.xml" rel="self" type="application/rss+xml"/> - <pubDate>Tue, 12 Jul 2016 20:33:36 +0200</pubDate> - <lastBuildDate>Tue, 12 Jul 2016 20:33:36 +0200</lastBuildDate> + <pubDate>Tue, 12 Jul 2016 20:53:55 +0200</pubDate> + <lastBuildDate>Tue, 12 Jul 2016 20:53:55 +0200</lastBuildDate> <generator>Jekyll v3.1.6</generator> </channel> http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/for_developers.html ---------------------------------------------------------------------- diff --git a/for_developers.html b/for_developers.html index 9e5293d..5f11c4a 100644 --- a/for_developers.html +++ b/for_developers.html @@ -143,6 +143,10 @@ <div class="container"> <div class="row"> <div class="col-md-12"> + + <div id="non-canonical" style="display: none; background-color: #F0E68C; padding-left: 1em;"> + Visit the official site at: <a href="http://pirk.incubator.apache.org/">http://pirk.incubator.apache.org/</a> + </div> <div id="content"> <h1 class="title">For Developers</h1> http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/for_users.html ---------------------------------------------------------------------- diff --git a/for_users.html b/for_users.html index d3bb17b..6d2c70f 100644 --- a/for_users.html +++ b/for_users.html @@ -143,6 +143,10 @@ <div class="container"> <div class="row"> <div class="col-md-12"> + + <div id="non-canonical" style="display: none; background-color: #F0E68C; padding-left: 1em;"> + Visit the official site at: <a href="http://pirk.incubator.apache.org/">http://pirk.incubator.apache.org/</a> + </div> <div id="content"> <h1 class="title">For Users</h1> http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/get_involved_pirk.html ---------------------------------------------------------------------- diff --git a/get_involved_pirk.html b/get_involved_pirk.html index 5ddcba6..4abebef 100644 --- a/get_involved_pirk.html +++ b/get_involved_pirk.html @@ -143,6 +143,10 @@ <div class="container"> <div class="row"> <div class="col-md-12"> + + <div id="non-canonical" style="display: none; background-color: #F0E68C; padding-left: 1em;"> + Visit the official site at: <a href="http://pirk.incubator.apache.org/">http://pirk.incubator.apache.org/</a> + </div> <div id="content"> <h1 class="title">Get Involved</h1> http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/index.html ---------------------------------------------------------------------- diff --git a/index.html b/index.html index 02805bb..44c6dfb 100644 --- a/index.html +++ b/index.html @@ -143,6 +143,10 @@ <div class="container"> <div class="row"> <div class="col-md-12"> + + <div id="non-canonical" style="display: none; background-color: #F0E68C; padding-left: 1em;"> + Visit the official site at: <a href="http://pirk.incubator.apache.org/">http://pirk.incubator.apache.org/</a> + </div> <div id="content"> <div class="row"> http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/mailing_list_pirk.html ---------------------------------------------------------------------- diff --git a/mailing_list_pirk.html b/mailing_list_pirk.html index 2fa8e09..e9ef587 100644 --- a/mailing_list_pirk.html +++ b/mailing_list_pirk.html @@ -143,6 +143,10 @@ <div class="container"> <div class="row"> <div class="col-md-12"> + + <div id="non-canonical" style="display: none; background-color: #F0E68C; padding-left: 1em;"> + Visit the official site at: <a href="http://pirk.incubator.apache.org/">http://pirk.incubator.apache.org/</a> + </div> <div id="content"> <h1 class="title">Apache Pirk Mailing Lists</h1> http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/news.html ---------------------------------------------------------------------- diff --git a/news.html b/news.html index 715cf2b..9fb8f4c 100644 --- a/news.html +++ b/news.html @@ -143,6 +143,10 @@ <div class="container"> <div class="row"> <div class="col-md-12"> + + <div id="non-canonical" style="display: none; background-color: #F0E68C; padding-left: 1em;"> + Visit the official site at: <a href="http://pirk.incubator.apache.org/">http://pirk.incubator.apache.org/</a> + </div> <div id="content"> <h1 class="title">News</h1> http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/papers/index.html ---------------------------------------------------------------------- diff --git a/papers/index.html b/papers/index.html index 07ab06d..0de7d3e 100644 --- a/papers/index.html +++ b/papers/index.html @@ -143,6 +143,10 @@ <div class="container"> <div class="row"> <div class="col-md-12"> + + <div id="non-canonical" style="display: none; background-color: #F0E68C; padding-left: 1em;"> + Visit the official site at: <a href="http://pirk.incubator.apache.org/">http://pirk.incubator.apache.org/</a> + </div> <div id="content"> <h1 class="title">Related Links</h1> http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/people_pirk.html ---------------------------------------------------------------------- diff --git a/people_pirk.html b/people_pirk.html index a6b08fa..d20f3dd 100644 --- a/people_pirk.html +++ b/people_pirk.html @@ -143,6 +143,10 @@ <div class="container"> <div class="row"> <div class="col-md-12"> + + <div id="non-canonical" style="display: none; background-color: #F0E68C; padding-left: 1em;"> + Visit the official site at: <a href="http://pirk.incubator.apache.org/">http://pirk.incubator.apache.org/</a> + </div> <div id="content"> <h2 id="pmc-members">PMC Members</h2> http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/pirk_papers.html ---------------------------------------------------------------------- diff --git a/pirk_papers.html b/pirk_papers.html index 8296aa7..cd1a19f 100644 --- a/pirk_papers.html +++ b/pirk_papers.html @@ -143,6 +143,10 @@ <div class="container"> <div class="row"> <div class="col-md-12"> + + <div id="non-canonical" style="display: none; background-color: #F0E68C; padding-left: 1em;"> + Visit the official site at: <a href="http://pirk.incubator.apache.org/">http://pirk.incubator.apache.org/</a> + </div> <div id="content"> <h1 class="title">Papers</h1> http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/releasing.html ---------------------------------------------------------------------- diff --git a/releasing.html b/releasing.html index 6a6c382..684280a 100644 --- a/releasing.html +++ b/releasing.html @@ -143,6 +143,10 @@ <div class="container"> <div class="row"> <div class="col-md-12"> + + <div id="non-canonical" style="display: none; background-color: #F0E68C; padding-left: 1em;"> + Visit the official site at: <a href="http://pirk.incubator.apache.org/">http://pirk.incubator.apache.org/</a> + </div> <div id="content"> <h1 class="title">Making a Release</h1> http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/roadmap/index.html ---------------------------------------------------------------------- diff --git a/roadmap/index.html b/roadmap/index.html index a5d4bd8..b180e91 100644 --- a/roadmap/index.html +++ b/roadmap/index.html @@ -143,6 +143,10 @@ <div class="container"> <div class="row"> <div class="col-md-12"> + + <div id="non-canonical" style="display: none; background-color: #F0E68C; padding-left: 1em;"> + Visit the official site at: <a href="http://pirk.incubator.apache.org/">http://pirk.incubator.apache.org/</a> + </div> <div id="content"> <h1 class="title">Roadmap</h1> http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/target/classes/META-INF/BenchmarkList ---------------------------------------------------------------------- diff --git a/target/classes/META-INF/BenchmarkList b/target/classes/META-INF/BenchmarkList deleted file mode 100644 index c74eb67..0000000 --- a/target/classes/META-INF/BenchmarkList +++ /dev/null @@ -1,3 +0,0 @@ -org.apache.pirk.benchmark.PaillierBenchmark===,===org.apache.pirk.benchmark.generated.PaillierBenchmark_testWithGMP_jmhTest===,===testWithGMP===,===Throughput===,===1====,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[] -org.apache.pirk.benchmark.PaillierBenchmark===,===org.apache.pirk.benchmark.generated.PaillierBenchmark_testWithGMPConstantTime_jmhTest===,===testWithGMPConstantTime===,===Throughput===,===1====,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[] -org.apache.pirk.benchmark.PaillierBenchmark===,===org.apache.pirk.benchmark.generated.PaillierBenchmark_testWithoutGMP_jmhTest===,===testWithoutGMP===,===Throughput===,===1====,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[]===,===[] http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/target/classes/META-INF/CompilerHints ---------------------------------------------------------------------- diff --git a/target/classes/META-INF/CompilerHints b/target/classes/META-INF/CompilerHints deleted file mode 100644 index ee161aa..0000000 --- a/target/classes/META-INF/CompilerHints +++ /dev/null @@ -1,10 +0,0 @@ -dontinline,*.*_all_jmhStub -dontinline,*.*_avgt_jmhStub -dontinline,*.*_sample_jmhStub -dontinline,*.*_ss_jmhStub -dontinline,*.*_thrpt_jmhStub -inline,org/apache/pirk/benchmark/PaillierBenchmark$PaillierBenchmarkState.setUp -inline,org/apache/pirk/benchmark/PaillierBenchmark.testWithGMP -inline,org/apache/pirk/benchmark/PaillierBenchmark.testWithGMPConstantTime -inline,org/apache/pirk/benchmark/PaillierBenchmark.testWithoutGMP -inline,org/openjdk/jmh/infra/Blackhole.clearSinks http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType.java ---------------------------------------------------------------------- diff --git a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType.java b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType.java deleted file mode 100644 index 249d6dd..0000000 --- a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType.java +++ /dev/null @@ -1,4 +0,0 @@ -package org.apache.pirk.benchmark.generated; -public class PaillierBenchmark_PaillierBenchmarkState_jmhType extends PaillierBenchmark_PaillierBenchmarkState_jmhType_B3 { -} - http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType_B1.java ---------------------------------------------------------------------- diff --git a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType_B1.java b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType_B1.java deleted file mode 100644 index 878c930..0000000 --- a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType_B1.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.apache.pirk.benchmark.generated; -import org.apache.pirk.benchmark.PaillierBenchmark.PaillierBenchmarkState; -public class PaillierBenchmark_PaillierBenchmarkState_jmhType_B1 extends org.apache.pirk.benchmark.PaillierBenchmark.PaillierBenchmarkState { - boolean p000, p001, p002, p003, p004, p005, p006, p007, p008, p009, p010, p011, p012, p013, p014, p015; - boolean p016, p017, p018, p019, p020, p021, p022, p023, p024, p025, p026, p027, p028, p029, p030, p031; - boolean p032, p033, p034, p035, p036, p037, p038, p039, p040, p041, p042, p043, p044, p045, p046, p047; - boolean p048, p049, p050, p051, p052, p053, p054, p055, p056, p057, p058, p059, p060, p061, p062, p063; - boolean p064, p065, p066, p067, p068, p069, p070, p071, p072, p073, p074, p075, p076, p077, p078, p079; - boolean p080, p081, p082, p083, p084, p085, p086, p087, p088, p089, p090, p091, p092, p093, p094, p095; - boolean p096, p097, p098, p099, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111; - boolean p112, p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127; - boolean p128, p129, p130, p131, p132, p133, p134, p135, p136, p137, p138, p139, p140, p141, p142, p143; - boolean p144, p145, p146, p147, p148, p149, p150, p151, p152, p153, p154, p155, p156, p157, p158, p159; - boolean p160, p161, p162, p163, p164, p165, p166, p167, p168, p169, p170, p171, p172, p173, p174, p175; - boolean p176, p177, p178, p179, p180, p181, p182, p183, p184, p185, p186, p187, p188, p189, p190, p191; - boolean p192, p193, p194, p195, p196, p197, p198, p199, p200, p201, p202, p203, p204, p205, p206, p207; - boolean p208, p209, p210, p211, p212, p213, p214, p215, p216, p217, p218, p219, p220, p221, p222, p223; - boolean p224, p225, p226, p227, p228, p229, p230, p231, p232, p233, p234, p235, p236, p237, p238, p239; - boolean p240, p241, p242, p243, p244, p245, p246, p247, p248, p249, p250, p251, p252, p253, p254, p255; -} http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType_B2.java ---------------------------------------------------------------------- diff --git a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType_B2.java b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType_B2.java deleted file mode 100644 index 38cef53..0000000 --- a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType_B2.java +++ /dev/null @@ -1,22 +0,0 @@ -package org.apache.pirk.benchmark.generated; -import java.util.concurrent.atomic.AtomicIntegerFieldUpdater; -public class PaillierBenchmark_PaillierBenchmarkState_jmhType_B2 extends PaillierBenchmark_PaillierBenchmarkState_jmhType_B1 { - public volatile int setupTrialMutex; - public volatile int tearTrialMutex; - public final static AtomicIntegerFieldUpdater<PaillierBenchmark_PaillierBenchmarkState_jmhType_B2> setupTrialMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PaillierBenchmark_PaillierBenchmarkState_jmhType_B2.class, "setupTrialMutex"); - public final static AtomicIntegerFieldUpdater<PaillierBenchmark_PaillierBenchmarkState_jmhType_B2> tearTrialMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PaillierBenchmark_PaillierBenchmarkState_jmhType_B2.class, "tearTrialMutex"); - - public volatile int setupIterationMutex; - public volatile int tearIterationMutex; - public final static AtomicIntegerFieldUpdater<PaillierBenchmark_PaillierBenchmarkState_jmhType_B2> setupIterationMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PaillierBenchmark_PaillierBenchmarkState_jmhType_B2.class, "setupIterationMutex"); - public final static AtomicIntegerFieldUpdater<PaillierBenchmark_PaillierBenchmarkState_jmhType_B2> tearIterationMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PaillierBenchmark_PaillierBenchmarkState_jmhType_B2.class, "tearIterationMutex"); - - public volatile int setupInvocationMutex; - public volatile int tearInvocationMutex; - public final static AtomicIntegerFieldUpdater<PaillierBenchmark_PaillierBenchmarkState_jmhType_B2> setupInvocationMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PaillierBenchmark_PaillierBenchmarkState_jmhType_B2.class, "setupInvocationMutex"); - public final static AtomicIntegerFieldUpdater<PaillierBenchmark_PaillierBenchmarkState_jmhType_B2> tearInvocationMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PaillierBenchmark_PaillierBenchmarkState_jmhType_B2.class, "tearInvocationMutex"); - - public volatile boolean readyTrial; - public volatile boolean readyIteration; - public volatile boolean readyInvocation; -} http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType_B3.java ---------------------------------------------------------------------- diff --git a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType_B3.java b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType_B3.java deleted file mode 100644 index 96099a8..0000000 --- a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_PaillierBenchmarkState_jmhType_B3.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.apache.pirk.benchmark.generated; -public class PaillierBenchmark_PaillierBenchmarkState_jmhType_B3 extends PaillierBenchmark_PaillierBenchmarkState_jmhType_B2 { - boolean p000, p001, p002, p003, p004, p005, p006, p007, p008, p009, p010, p011, p012, p013, p014, p015; - boolean p016, p017, p018, p019, p020, p021, p022, p023, p024, p025, p026, p027, p028, p029, p030, p031; - boolean p032, p033, p034, p035, p036, p037, p038, p039, p040, p041, p042, p043, p044, p045, p046, p047; - boolean p048, p049, p050, p051, p052, p053, p054, p055, p056, p057, p058, p059, p060, p061, p062, p063; - boolean p064, p065, p066, p067, p068, p069, p070, p071, p072, p073, p074, p075, p076, p077, p078, p079; - boolean p080, p081, p082, p083, p084, p085, p086, p087, p088, p089, p090, p091, p092, p093, p094, p095; - boolean p096, p097, p098, p099, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111; - boolean p112, p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127; - boolean p128, p129, p130, p131, p132, p133, p134, p135, p136, p137, p138, p139, p140, p141, p142, p143; - boolean p144, p145, p146, p147, p148, p149, p150, p151, p152, p153, p154, p155, p156, p157, p158, p159; - boolean p160, p161, p162, p163, p164, p165, p166, p167, p168, p169, p170, p171, p172, p173, p174, p175; - boolean p176, p177, p178, p179, p180, p181, p182, p183, p184, p185, p186, p187, p188, p189, p190, p191; - boolean p192, p193, p194, p195, p196, p197, p198, p199, p200, p201, p202, p203, p204, p205, p206, p207; - boolean p208, p209, p210, p211, p212, p213, p214, p215, p216, p217, p218, p219, p220, p221, p222, p223; - boolean p224, p225, p226, p227, p228, p229, p230, p231, p232, p233, p234, p235, p236, p237, p238, p239; - boolean p240, p241, p242, p243, p244, p245, p246, p247, p248, p249, p250, p251, p252, p253, p254, p255; -} - http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType.java ---------------------------------------------------------------------- diff --git a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType.java b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType.java deleted file mode 100644 index c9fb26c..0000000 --- a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType.java +++ /dev/null @@ -1,4 +0,0 @@ -package org.apache.pirk.benchmark.generated; -public class PaillierBenchmark_jmhType extends PaillierBenchmark_jmhType_B3 { -} - http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType_B1.java ---------------------------------------------------------------------- diff --git a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType_B1.java b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType_B1.java deleted file mode 100644 index 24b5cae..0000000 --- a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType_B1.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.apache.pirk.benchmark.generated; -import org.apache.pirk.benchmark.PaillierBenchmark; -public class PaillierBenchmark_jmhType_B1 extends org.apache.pirk.benchmark.PaillierBenchmark { - boolean p000, p001, p002, p003, p004, p005, p006, p007, p008, p009, p010, p011, p012, p013, p014, p015; - boolean p016, p017, p018, p019, p020, p021, p022, p023, p024, p025, p026, p027, p028, p029, p030, p031; - boolean p032, p033, p034, p035, p036, p037, p038, p039, p040, p041, p042, p043, p044, p045, p046, p047; - boolean p048, p049, p050, p051, p052, p053, p054, p055, p056, p057, p058, p059, p060, p061, p062, p063; - boolean p064, p065, p066, p067, p068, p069, p070, p071, p072, p073, p074, p075, p076, p077, p078, p079; - boolean p080, p081, p082, p083, p084, p085, p086, p087, p088, p089, p090, p091, p092, p093, p094, p095; - boolean p096, p097, p098, p099, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111; - boolean p112, p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127; - boolean p128, p129, p130, p131, p132, p133, p134, p135, p136, p137, p138, p139, p140, p141, p142, p143; - boolean p144, p145, p146, p147, p148, p149, p150, p151, p152, p153, p154, p155, p156, p157, p158, p159; - boolean p160, p161, p162, p163, p164, p165, p166, p167, p168, p169, p170, p171, p172, p173, p174, p175; - boolean p176, p177, p178, p179, p180, p181, p182, p183, p184, p185, p186, p187, p188, p189, p190, p191; - boolean p192, p193, p194, p195, p196, p197, p198, p199, p200, p201, p202, p203, p204, p205, p206, p207; - boolean p208, p209, p210, p211, p212, p213, p214, p215, p216, p217, p218, p219, p220, p221, p222, p223; - boolean p224, p225, p226, p227, p228, p229, p230, p231, p232, p233, p234, p235, p236, p237, p238, p239; - boolean p240, p241, p242, p243, p244, p245, p246, p247, p248, p249, p250, p251, p252, p253, p254, p255; -} http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType_B2.java ---------------------------------------------------------------------- diff --git a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType_B2.java b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType_B2.java deleted file mode 100644 index ea65ff1..0000000 --- a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType_B2.java +++ /dev/null @@ -1,19 +0,0 @@ -package org.apache.pirk.benchmark.generated; -import java.util.concurrent.atomic.AtomicIntegerFieldUpdater; -public class PaillierBenchmark_jmhType_B2 extends PaillierBenchmark_jmhType_B1 { - public volatile int setupTrialMutex; - public volatile int tearTrialMutex; - public final static AtomicIntegerFieldUpdater<PaillierBenchmark_jmhType_B2> setupTrialMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PaillierBenchmark_jmhType_B2.class, "setupTrialMutex"); - public final static AtomicIntegerFieldUpdater<PaillierBenchmark_jmhType_B2> tearTrialMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PaillierBenchmark_jmhType_B2.class, "tearTrialMutex"); - - public volatile int setupIterationMutex; - public volatile int tearIterationMutex; - public final static AtomicIntegerFieldUpdater<PaillierBenchmark_jmhType_B2> setupIterationMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PaillierBenchmark_jmhType_B2.class, "setupIterationMutex"); - public final static AtomicIntegerFieldUpdater<PaillierBenchmark_jmhType_B2> tearIterationMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PaillierBenchmark_jmhType_B2.class, "tearIterationMutex"); - - public volatile int setupInvocationMutex; - public volatile int tearInvocationMutex; - public final static AtomicIntegerFieldUpdater<PaillierBenchmark_jmhType_B2> setupInvocationMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PaillierBenchmark_jmhType_B2.class, "setupInvocationMutex"); - public final static AtomicIntegerFieldUpdater<PaillierBenchmark_jmhType_B2> tearInvocationMutexUpdater = AtomicIntegerFieldUpdater.newUpdater(PaillierBenchmark_jmhType_B2.class, "tearInvocationMutex"); - -} http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType_B3.java ---------------------------------------------------------------------- diff --git a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType_B3.java b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType_B3.java deleted file mode 100644 index 7d2b623..0000000 --- a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_jmhType_B3.java +++ /dev/null @@ -1,20 +0,0 @@ -package org.apache.pirk.benchmark.generated; -public class PaillierBenchmark_jmhType_B3 extends PaillierBenchmark_jmhType_B2 { - boolean p000, p001, p002, p003, p004, p005, p006, p007, p008, p009, p010, p011, p012, p013, p014, p015; - boolean p016, p017, p018, p019, p020, p021, p022, p023, p024, p025, p026, p027, p028, p029, p030, p031; - boolean p032, p033, p034, p035, p036, p037, p038, p039, p040, p041, p042, p043, p044, p045, p046, p047; - boolean p048, p049, p050, p051, p052, p053, p054, p055, p056, p057, p058, p059, p060, p061, p062, p063; - boolean p064, p065, p066, p067, p068, p069, p070, p071, p072, p073, p074, p075, p076, p077, p078, p079; - boolean p080, p081, p082, p083, p084, p085, p086, p087, p088, p089, p090, p091, p092, p093, p094, p095; - boolean p096, p097, p098, p099, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111; - boolean p112, p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127; - boolean p128, p129, p130, p131, p132, p133, p134, p135, p136, p137, p138, p139, p140, p141, p142, p143; - boolean p144, p145, p146, p147, p148, p149, p150, p151, p152, p153, p154, p155, p156, p157, p158, p159; - boolean p160, p161, p162, p163, p164, p165, p166, p167, p168, p169, p170, p171, p172, p173, p174, p175; - boolean p176, p177, p178, p179, p180, p181, p182, p183, p184, p185, p186, p187, p188, p189, p190, p191; - boolean p192, p193, p194, p195, p196, p197, p198, p199, p200, p201, p202, p203, p204, p205, p206, p207; - boolean p208, p209, p210, p211, p212, p213, p214, p215, p216, p217, p218, p219, p220, p221, p222, p223; - boolean p224, p225, p226, p227, p228, p229, p230, p231, p232, p233, p234, p235, p236, p237, p238, p239; - boolean p240, p241, p242, p243, p244, p245, p246, p247, p248, p249, p250, p251, p252, p253, p254, p255; -} - http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_testWithGMPConstantTime_jmhTest.java ---------------------------------------------------------------------- diff --git a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_testWithGMPConstantTime_jmhTest.java b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_testWithGMPConstantTime_jmhTest.java deleted file mode 100644 index ef351d6..0000000 --- a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_testWithGMPConstantTime_jmhTest.java +++ /dev/null @@ -1,414 +0,0 @@ -package org.apache.pirk.benchmark.generated; - -import java.util.List; -import java.util.concurrent.atomic.AtomicInteger; -import java.util.Collection; -import java.util.ArrayList; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; -import org.openjdk.jmh.annotations.CompilerControl; -import org.openjdk.jmh.runner.InfraControl; -import org.openjdk.jmh.infra.ThreadParams; -import org.openjdk.jmh.results.BenchmarkTaskResult; -import org.openjdk.jmh.results.Result; -import org.openjdk.jmh.results.ThroughputResult; -import org.openjdk.jmh.results.AverageTimeResult; -import org.openjdk.jmh.results.SampleTimeResult; -import org.openjdk.jmh.results.SingleShotResult; -import org.openjdk.jmh.util.SampleBuffer; -import org.openjdk.jmh.annotations.Mode; -import org.openjdk.jmh.annotations.Fork; -import org.openjdk.jmh.annotations.Measurement; -import org.openjdk.jmh.annotations.Threads; -import org.openjdk.jmh.annotations.Warmup; -import org.openjdk.jmh.annotations.BenchmarkMode; -import org.openjdk.jmh.results.RawResults; -import org.openjdk.jmh.results.ResultRole; -import java.lang.reflect.Field; -import org.openjdk.jmh.infra.BenchmarkParams; -import org.openjdk.jmh.infra.IterationParams; - -import org.openjdk.jmh.infra.generated.Blackhole_jmhType; -import org.apache.pirk.benchmark.generated.PaillierBenchmark_jmhType; -import org.apache.pirk.benchmark.generated.PaillierBenchmark_PaillierBenchmarkState_jmhType; -@Generated("org.openjdk.jmh.generators.core.BenchmarkGenerator") -public final class PaillierBenchmark_testWithGMPConstantTime_jmhTest { - - boolean p000, p001, p002, p003, p004, p005, p006, p007, p008, p009, p010, p011, p012, p013, p014, p015; - boolean p016, p017, p018, p019, p020, p021, p022, p023, p024, p025, p026, p027, p028, p029, p030, p031; - boolean p032, p033, p034, p035, p036, p037, p038, p039, p040, p041, p042, p043, p044, p045, p046, p047; - boolean p048, p049, p050, p051, p052, p053, p054, p055, p056, p057, p058, p059, p060, p061, p062, p063; - boolean p064, p065, p066, p067, p068, p069, p070, p071, p072, p073, p074, p075, p076, p077, p078, p079; - boolean p080, p081, p082, p083, p084, p085, p086, p087, p088, p089, p090, p091, p092, p093, p094, p095; - boolean p096, p097, p098, p099, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111; - boolean p112, p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127; - boolean p128, p129, p130, p131, p132, p133, p134, p135, p136, p137, p138, p139, p140, p141, p142, p143; - boolean p144, p145, p146, p147, p148, p149, p150, p151, p152, p153, p154, p155, p156, p157, p158, p159; - boolean p160, p161, p162, p163, p164, p165, p166, p167, p168, p169, p170, p171, p172, p173, p174, p175; - boolean p176, p177, p178, p179, p180, p181, p182, p183, p184, p185, p186, p187, p188, p189, p190, p191; - boolean p192, p193, p194, p195, p196, p197, p198, p199, p200, p201, p202, p203, p204, p205, p206, p207; - boolean p208, p209, p210, p211, p212, p213, p214, p215, p216, p217, p218, p219, p220, p221, p222, p223; - boolean p224, p225, p226, p227, p228, p229, p230, p231, p232, p233, p234, p235, p236, p237, p238, p239; - boolean p240, p241, p242, p243, p244, p245, p246, p247, p248, p249, p250, p251, p252, p253, p254, p255; - int startRndMask; - - public BenchmarkTaskResult testWithGMPConstantTime_Throughput(InfraControl control, ThreadParams threadParams) throws Throwable { - if (threadParams.getSubgroupIndex() == 0) { - RawResults res = new RawResults(); - Blackhole_jmhType l_blackhole1_1 = _jmh_tryInit_f_blackhole1_1(control, threadParams); - PaillierBenchmark_jmhType l_paillierbenchmark0_0 = _jmh_tryInit_f_paillierbenchmark0_0(control, threadParams); - PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G = _jmh_tryInit_f_paillierbenchmarkstate2_G(control, threadParams); - - control.preSetup(); - l_blackhole1_1.clearSinks(); - - control.announceWarmupReady(); - while (control.warmupShouldWait) { - l_paillierbenchmark0_0.testWithGMPConstantTime(l_paillierbenchmarkstate2_G); - res.allOps++; - } - - testWithGMPConstantTime_thrpt_jmhStub(control, res, l_paillierbenchmarkstate2_G, l_paillierbenchmark0_0, l_blackhole1_1); - control.announceWarmdownReady(); - try { - while (control.warmdownShouldWait) { - l_paillierbenchmark0_0.testWithGMPConstantTime(l_paillierbenchmarkstate2_G); - res.allOps++; - } - control.preTearDown(); - } catch (InterruptedException ie) { - control.preTearDownForce(); - } - - if (control.isLastIteration()) { - if (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.compareAndSet(l_paillierbenchmarkstate2_G, 0, 1)) { - try { - if (l_paillierbenchmarkstate2_G.readyTrial) { - l_paillierbenchmarkstate2_G.readyTrial = false; - } - } finally { - PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.set(l_paillierbenchmarkstate2_G, 0); - } - } else { - long l_paillierbenchmarkstate2_G_backoff = 1; - while (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.get(l_paillierbenchmarkstate2_G) == 1) { - TimeUnit.MILLISECONDS.sleep(l_paillierbenchmarkstate2_G_backoff); - l_paillierbenchmarkstate2_G_backoff = Math.max(1024, l_paillierbenchmarkstate2_G_backoff * 2); - if (Thread.interrupted()) throw new InterruptedException(); - } - } - synchronized(this.getClass()) { - f_paillierbenchmarkstate2_G = null; - } - f_paillierbenchmark0_0 = null; - f_blackhole1_1 = null; - } - res.allOps += res.measuredOps; - int batchSize = control.iterationParams.getBatchSize(); - int opsPerInv = control.benchmarkParams.getOpsPerInvocation(); - res.allOps *= opsPerInv; - res.allOps /= batchSize; - res.measuredOps *= opsPerInv; - res.measuredOps /= batchSize; - BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps); - results.add(new ThroughputResult(ResultRole.PRIMARY, "testWithGMPConstantTime", res.measuredOps, res.getTime(), control.benchmarkParams.getTimeUnit())); - return results; - } else - throw new IllegalStateException("Harness failed to distribute threads among groups properly"); - } - - public void testWithGMPConstantTime_thrpt_jmhStub(InfraControl control, RawResults result, PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G, PaillierBenchmark_jmhType l_paillierbenchmark0_0, Blackhole_jmhType l_blackhole1_1) throws Throwable { - long operations = 0; - long realTime = 0; - result.startTime = System.nanoTime(); - do { - l_paillierbenchmark0_0.testWithGMPConstantTime(l_paillierbenchmarkstate2_G); - operations++; - } while(!control.isDone); - result.stopTime = System.nanoTime(); - result.realTime = realTime; - result.measuredOps = operations; - } - - - public BenchmarkTaskResult testWithGMPConstantTime_AverageTime(InfraControl control, ThreadParams threadParams) throws Throwable { - if (threadParams.getSubgroupIndex() == 0) { - RawResults res = new RawResults(); - Blackhole_jmhType l_blackhole1_1 = _jmh_tryInit_f_blackhole1_1(control, threadParams); - PaillierBenchmark_jmhType l_paillierbenchmark0_0 = _jmh_tryInit_f_paillierbenchmark0_0(control, threadParams); - PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G = _jmh_tryInit_f_paillierbenchmarkstate2_G(control, threadParams); - - control.preSetup(); - l_blackhole1_1.clearSinks(); - - control.announceWarmupReady(); - while (control.warmupShouldWait) { - l_paillierbenchmark0_0.testWithGMPConstantTime(l_paillierbenchmarkstate2_G); - res.allOps++; - } - - testWithGMPConstantTime_avgt_jmhStub(control, res, l_paillierbenchmarkstate2_G, l_paillierbenchmark0_0, l_blackhole1_1); - control.announceWarmdownReady(); - try { - while (control.warmdownShouldWait) { - l_paillierbenchmark0_0.testWithGMPConstantTime(l_paillierbenchmarkstate2_G); - res.allOps++; - } - control.preTearDown(); - } catch (InterruptedException ie) { - control.preTearDownForce(); - } - - if (control.isLastIteration()) { - if (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.compareAndSet(l_paillierbenchmarkstate2_G, 0, 1)) { - try { - if (l_paillierbenchmarkstate2_G.readyTrial) { - l_paillierbenchmarkstate2_G.readyTrial = false; - } - } finally { - PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.set(l_paillierbenchmarkstate2_G, 0); - } - } else { - long l_paillierbenchmarkstate2_G_backoff = 1; - while (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.get(l_paillierbenchmarkstate2_G) == 1) { - TimeUnit.MILLISECONDS.sleep(l_paillierbenchmarkstate2_G_backoff); - l_paillierbenchmarkstate2_G_backoff = Math.max(1024, l_paillierbenchmarkstate2_G_backoff * 2); - if (Thread.interrupted()) throw new InterruptedException(); - } - } - synchronized(this.getClass()) { - f_paillierbenchmarkstate2_G = null; - } - f_paillierbenchmark0_0 = null; - f_blackhole1_1 = null; - } - res.allOps += res.measuredOps; - int batchSize = control.iterationParams.getBatchSize(); - int opsPerInv = control.benchmarkParams.getOpsPerInvocation(); - res.allOps *= opsPerInv; - res.allOps /= batchSize; - res.measuredOps *= opsPerInv; - res.measuredOps /= batchSize; - BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps); - results.add(new AverageTimeResult(ResultRole.PRIMARY, "testWithGMPConstantTime", res.measuredOps, res.getTime(), control.benchmarkParams.getTimeUnit())); - return results; - } else - throw new IllegalStateException("Harness failed to distribute threads among groups properly"); - } - - public void testWithGMPConstantTime_avgt_jmhStub(InfraControl control, RawResults result, PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G, PaillierBenchmark_jmhType l_paillierbenchmark0_0, Blackhole_jmhType l_blackhole1_1) throws Throwable { - long operations = 0; - long realTime = 0; - result.startTime = System.nanoTime(); - do { - l_paillierbenchmark0_0.testWithGMPConstantTime(l_paillierbenchmarkstate2_G); - operations++; - } while(!control.isDone); - result.stopTime = System.nanoTime(); - result.realTime = realTime; - result.measuredOps = operations; - } - - - public BenchmarkTaskResult testWithGMPConstantTime_SampleTime(InfraControl control, ThreadParams threadParams) throws Throwable { - if (threadParams.getSubgroupIndex() == 0) { - RawResults res = new RawResults(); - Blackhole_jmhType l_blackhole1_1 = _jmh_tryInit_f_blackhole1_1(control, threadParams); - PaillierBenchmark_jmhType l_paillierbenchmark0_0 = _jmh_tryInit_f_paillierbenchmark0_0(control, threadParams); - PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G = _jmh_tryInit_f_paillierbenchmarkstate2_G(control, threadParams); - - control.preSetup(); - l_blackhole1_1.clearSinks(); - - control.announceWarmupReady(); - while (control.warmupShouldWait) { - l_paillierbenchmark0_0.testWithGMPConstantTime(l_paillierbenchmarkstate2_G); - res.allOps++; - } - - int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond - int batchSize = control.iterationParams.getBatchSize(); - int opsPerInv = control.benchmarkParams.getOpsPerInvocation(); - SampleBuffer buffer = new SampleBuffer(); - testWithGMPConstantTime_sample_jmhStub(control, res, buffer, targetSamples, opsPerInv, batchSize, l_paillierbenchmarkstate2_G, l_paillierbenchmark0_0, l_blackhole1_1); - control.announceWarmdownReady(); - try { - while (control.warmdownShouldWait) { - l_paillierbenchmark0_0.testWithGMPConstantTime(l_paillierbenchmarkstate2_G); - res.allOps++; - } - control.preTearDown(); - } catch (InterruptedException ie) { - control.preTearDownForce(); - } - - if (control.isLastIteration()) { - if (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.compareAndSet(l_paillierbenchmarkstate2_G, 0, 1)) { - try { - if (l_paillierbenchmarkstate2_G.readyTrial) { - l_paillierbenchmarkstate2_G.readyTrial = false; - } - } finally { - PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.set(l_paillierbenchmarkstate2_G, 0); - } - } else { - long l_paillierbenchmarkstate2_G_backoff = 1; - while (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.get(l_paillierbenchmarkstate2_G) == 1) { - TimeUnit.MILLISECONDS.sleep(l_paillierbenchmarkstate2_G_backoff); - l_paillierbenchmarkstate2_G_backoff = Math.max(1024, l_paillierbenchmarkstate2_G_backoff * 2); - if (Thread.interrupted()) throw new InterruptedException(); - } - } - synchronized(this.getClass()) { - f_paillierbenchmarkstate2_G = null; - } - f_paillierbenchmark0_0 = null; - f_blackhole1_1 = null; - } - res.allOps += res.measuredOps * batchSize; - res.allOps *= opsPerInv; - res.allOps /= batchSize; - res.measuredOps *= opsPerInv; - BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps); - results.add(new SampleTimeResult(ResultRole.PRIMARY, "testWithGMPConstantTime", buffer, control.benchmarkParams.getTimeUnit())); - return results; - } else - throw new IllegalStateException("Harness failed to distribute threads among groups properly"); - } - - public void testWithGMPConstantTime_sample_jmhStub(InfraControl control, RawResults result, SampleBuffer buffer, int targetSamples, long opsPerInv, int batchSize, PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G, PaillierBenchmark_jmhType l_paillierbenchmark0_0, Blackhole_jmhType l_blackhole1_1) throws Throwable { - long realTime = 0; - long operations = 0; - int rnd = (int)System.nanoTime(); - int rndMask = startRndMask; - long time = 0; - int currentStride = 0; - do { - rnd = (rnd * 1664525 + 1013904223); - boolean sample = (rnd & rndMask) == 0; - if (sample) { - time = System.nanoTime(); - } - for (int b = 0; b < batchSize; b++) { - if (control.volatileSpoiler) return; - l_paillierbenchmark0_0.testWithGMPConstantTime(l_paillierbenchmarkstate2_G); - } - 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 testWithGMPConstantTime_SingleShotTime(InfraControl control, ThreadParams threadParams) throws Throwable { - if (threadParams.getSubgroupIndex() == 0) { - Blackhole_jmhType l_blackhole1_1 = _jmh_tryInit_f_blackhole1_1(control, threadParams); - PaillierBenchmark_jmhType l_paillierbenchmark0_0 = _jmh_tryInit_f_paillierbenchmark0_0(control, threadParams); - PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G = _jmh_tryInit_f_paillierbenchmarkstate2_G(control, threadParams); - - control.preSetup(); - l_blackhole1_1.clearSinks(); - - RawResults res = new RawResults(); - int batchSize = control.iterationParams.getBatchSize(); - testWithGMPConstantTime_ss_jmhStub(control, batchSize, res, l_paillierbenchmarkstate2_G, l_paillierbenchmark0_0, l_blackhole1_1); - control.preTearDown(); - - if (control.isLastIteration()) { - if (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.compareAndSet(l_paillierbenchmarkstate2_G, 0, 1)) { - try { - if (l_paillierbenchmarkstate2_G.readyTrial) { - l_paillierbenchmarkstate2_G.readyTrial = false; - } - } finally { - PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.set(l_paillierbenchmarkstate2_G, 0); - } - } else { - long l_paillierbenchmarkstate2_G_backoff = 1; - while (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.get(l_paillierbenchmarkstate2_G) == 1) { - TimeUnit.MILLISECONDS.sleep(l_paillierbenchmarkstate2_G_backoff); - l_paillierbenchmarkstate2_G_backoff = Math.max(1024, l_paillierbenchmarkstate2_G_backoff * 2); - if (Thread.interrupted()) throw new InterruptedException(); - } - } - synchronized(this.getClass()) { - f_paillierbenchmarkstate2_G = null; - } - f_paillierbenchmark0_0 = null; - f_blackhole1_1 = null; - } - int opsPerInv = control.benchmarkParams.getOpsPerInvocation(); - long totalOps = opsPerInv; - BenchmarkTaskResult results = new BenchmarkTaskResult(totalOps, totalOps); - results.add(new SingleShotResult(ResultRole.PRIMARY, "testWithGMPConstantTime", res.getTime(), control.benchmarkParams.getTimeUnit())); - return results; - } else - throw new IllegalStateException("Harness failed to distribute threads among groups properly"); - } - - public void testWithGMPConstantTime_ss_jmhStub(InfraControl control, int batchSize, RawResults result, PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G, PaillierBenchmark_jmhType l_paillierbenchmark0_0, Blackhole_jmhType l_blackhole1_1) throws Throwable { - long realTime = 0; - result.startTime = System.nanoTime(); - for (int b = 0; b < batchSize; b++) { - if (control.volatileSpoiler) return; - l_paillierbenchmark0_0.testWithGMPConstantTime(l_paillierbenchmarkstate2_G); - } - result.stopTime = System.nanoTime(); - result.realTime = realTime; - } - - - static volatile PaillierBenchmark_PaillierBenchmarkState_jmhType f_paillierbenchmarkstate2_G; - - PaillierBenchmark_PaillierBenchmarkState_jmhType _jmh_tryInit_f_paillierbenchmarkstate2_G(InfraControl control, ThreadParams threadParams) throws Throwable { - PaillierBenchmark_PaillierBenchmarkState_jmhType val = f_paillierbenchmarkstate2_G; - if (val != null) { - return val; - } - synchronized(this.getClass()) { - val = f_paillierbenchmarkstate2_G; - if (val != null) { - return val; - } - val = new PaillierBenchmark_PaillierBenchmarkState_jmhType(); - val.setUp(); - val.readyTrial = true; - f_paillierbenchmarkstate2_G = val; - } - return val; - } - - Blackhole_jmhType f_blackhole1_1; - - Blackhole_jmhType _jmh_tryInit_f_blackhole1_1(InfraControl control, ThreadParams threadParams) throws Throwable { - Blackhole_jmhType val = f_blackhole1_1; - if (val == null) { - val = new Blackhole_jmhType(); - f_blackhole1_1 = val; - } - return val; - } - - PaillierBenchmark_jmhType f_paillierbenchmark0_0; - - PaillierBenchmark_jmhType _jmh_tryInit_f_paillierbenchmark0_0(InfraControl control, ThreadParams threadParams) throws Throwable { - PaillierBenchmark_jmhType val = f_paillierbenchmark0_0; - if (val == null) { - val = new PaillierBenchmark_jmhType(); - f_paillierbenchmark0_0 = val; - } - return val; - } - - -} - http://git-wip-us.apache.org/repos/asf/incubator-pirk/blob/4b39596b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_testWithGMP_jmhTest.java ---------------------------------------------------------------------- diff --git a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_testWithGMP_jmhTest.java b/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_testWithGMP_jmhTest.java deleted file mode 100644 index 1d76459..0000000 --- a/target/generated-sources/annotations/org/apache/pirk/benchmark/generated/PaillierBenchmark_testWithGMP_jmhTest.java +++ /dev/null @@ -1,414 +0,0 @@ -package org.apache.pirk.benchmark.generated; - -import java.util.List; -import java.util.concurrent.atomic.AtomicInteger; -import java.util.Collection; -import java.util.ArrayList; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; -import org.openjdk.jmh.annotations.CompilerControl; -import org.openjdk.jmh.runner.InfraControl; -import org.openjdk.jmh.infra.ThreadParams; -import org.openjdk.jmh.results.BenchmarkTaskResult; -import org.openjdk.jmh.results.Result; -import org.openjdk.jmh.results.ThroughputResult; -import org.openjdk.jmh.results.AverageTimeResult; -import org.openjdk.jmh.results.SampleTimeResult; -import org.openjdk.jmh.results.SingleShotResult; -import org.openjdk.jmh.util.SampleBuffer; -import org.openjdk.jmh.annotations.Mode; -import org.openjdk.jmh.annotations.Fork; -import org.openjdk.jmh.annotations.Measurement; -import org.openjdk.jmh.annotations.Threads; -import org.openjdk.jmh.annotations.Warmup; -import org.openjdk.jmh.annotations.BenchmarkMode; -import org.openjdk.jmh.results.RawResults; -import org.openjdk.jmh.results.ResultRole; -import java.lang.reflect.Field; -import org.openjdk.jmh.infra.BenchmarkParams; -import org.openjdk.jmh.infra.IterationParams; - -import org.openjdk.jmh.infra.generated.Blackhole_jmhType; -import org.apache.pirk.benchmark.generated.PaillierBenchmark_jmhType; -import org.apache.pirk.benchmark.generated.PaillierBenchmark_PaillierBenchmarkState_jmhType; -@Generated("org.openjdk.jmh.generators.core.BenchmarkGenerator") -public final class PaillierBenchmark_testWithGMP_jmhTest { - - boolean p000, p001, p002, p003, p004, p005, p006, p007, p008, p009, p010, p011, p012, p013, p014, p015; - boolean p016, p017, p018, p019, p020, p021, p022, p023, p024, p025, p026, p027, p028, p029, p030, p031; - boolean p032, p033, p034, p035, p036, p037, p038, p039, p040, p041, p042, p043, p044, p045, p046, p047; - boolean p048, p049, p050, p051, p052, p053, p054, p055, p056, p057, p058, p059, p060, p061, p062, p063; - boolean p064, p065, p066, p067, p068, p069, p070, p071, p072, p073, p074, p075, p076, p077, p078, p079; - boolean p080, p081, p082, p083, p084, p085, p086, p087, p088, p089, p090, p091, p092, p093, p094, p095; - boolean p096, p097, p098, p099, p100, p101, p102, p103, p104, p105, p106, p107, p108, p109, p110, p111; - boolean p112, p113, p114, p115, p116, p117, p118, p119, p120, p121, p122, p123, p124, p125, p126, p127; - boolean p128, p129, p130, p131, p132, p133, p134, p135, p136, p137, p138, p139, p140, p141, p142, p143; - boolean p144, p145, p146, p147, p148, p149, p150, p151, p152, p153, p154, p155, p156, p157, p158, p159; - boolean p160, p161, p162, p163, p164, p165, p166, p167, p168, p169, p170, p171, p172, p173, p174, p175; - boolean p176, p177, p178, p179, p180, p181, p182, p183, p184, p185, p186, p187, p188, p189, p190, p191; - boolean p192, p193, p194, p195, p196, p197, p198, p199, p200, p201, p202, p203, p204, p205, p206, p207; - boolean p208, p209, p210, p211, p212, p213, p214, p215, p216, p217, p218, p219, p220, p221, p222, p223; - boolean p224, p225, p226, p227, p228, p229, p230, p231, p232, p233, p234, p235, p236, p237, p238, p239; - boolean p240, p241, p242, p243, p244, p245, p246, p247, p248, p249, p250, p251, p252, p253, p254, p255; - int startRndMask; - - public BenchmarkTaskResult testWithGMP_Throughput(InfraControl control, ThreadParams threadParams) throws Throwable { - if (threadParams.getSubgroupIndex() == 0) { - RawResults res = new RawResults(); - Blackhole_jmhType l_blackhole1_1 = _jmh_tryInit_f_blackhole1_1(control, threadParams); - PaillierBenchmark_jmhType l_paillierbenchmark0_0 = _jmh_tryInit_f_paillierbenchmark0_0(control, threadParams); - PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G = _jmh_tryInit_f_paillierbenchmarkstate2_G(control, threadParams); - - control.preSetup(); - l_blackhole1_1.clearSinks(); - - control.announceWarmupReady(); - while (control.warmupShouldWait) { - l_paillierbenchmark0_0.testWithGMP(l_paillierbenchmarkstate2_G); - res.allOps++; - } - - testWithGMP_thrpt_jmhStub(control, res, l_paillierbenchmarkstate2_G, l_paillierbenchmark0_0, l_blackhole1_1); - control.announceWarmdownReady(); - try { - while (control.warmdownShouldWait) { - l_paillierbenchmark0_0.testWithGMP(l_paillierbenchmarkstate2_G); - res.allOps++; - } - control.preTearDown(); - } catch (InterruptedException ie) { - control.preTearDownForce(); - } - - if (control.isLastIteration()) { - if (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.compareAndSet(l_paillierbenchmarkstate2_G, 0, 1)) { - try { - if (l_paillierbenchmarkstate2_G.readyTrial) { - l_paillierbenchmarkstate2_G.readyTrial = false; - } - } finally { - PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.set(l_paillierbenchmarkstate2_G, 0); - } - } else { - long l_paillierbenchmarkstate2_G_backoff = 1; - while (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.get(l_paillierbenchmarkstate2_G) == 1) { - TimeUnit.MILLISECONDS.sleep(l_paillierbenchmarkstate2_G_backoff); - l_paillierbenchmarkstate2_G_backoff = Math.max(1024, l_paillierbenchmarkstate2_G_backoff * 2); - if (Thread.interrupted()) throw new InterruptedException(); - } - } - synchronized(this.getClass()) { - f_paillierbenchmarkstate2_G = null; - } - f_paillierbenchmark0_0 = null; - f_blackhole1_1 = null; - } - res.allOps += res.measuredOps; - int batchSize = control.iterationParams.getBatchSize(); - int opsPerInv = control.benchmarkParams.getOpsPerInvocation(); - res.allOps *= opsPerInv; - res.allOps /= batchSize; - res.measuredOps *= opsPerInv; - res.measuredOps /= batchSize; - BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps); - results.add(new ThroughputResult(ResultRole.PRIMARY, "testWithGMP", res.measuredOps, res.getTime(), control.benchmarkParams.getTimeUnit())); - return results; - } else - throw new IllegalStateException("Harness failed to distribute threads among groups properly"); - } - - public void testWithGMP_thrpt_jmhStub(InfraControl control, RawResults result, PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G, PaillierBenchmark_jmhType l_paillierbenchmark0_0, Blackhole_jmhType l_blackhole1_1) throws Throwable { - long operations = 0; - long realTime = 0; - result.startTime = System.nanoTime(); - do { - l_paillierbenchmark0_0.testWithGMP(l_paillierbenchmarkstate2_G); - operations++; - } while(!control.isDone); - result.stopTime = System.nanoTime(); - result.realTime = realTime; - result.measuredOps = operations; - } - - - public BenchmarkTaskResult testWithGMP_AverageTime(InfraControl control, ThreadParams threadParams) throws Throwable { - if (threadParams.getSubgroupIndex() == 0) { - RawResults res = new RawResults(); - Blackhole_jmhType l_blackhole1_1 = _jmh_tryInit_f_blackhole1_1(control, threadParams); - PaillierBenchmark_jmhType l_paillierbenchmark0_0 = _jmh_tryInit_f_paillierbenchmark0_0(control, threadParams); - PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G = _jmh_tryInit_f_paillierbenchmarkstate2_G(control, threadParams); - - control.preSetup(); - l_blackhole1_1.clearSinks(); - - control.announceWarmupReady(); - while (control.warmupShouldWait) { - l_paillierbenchmark0_0.testWithGMP(l_paillierbenchmarkstate2_G); - res.allOps++; - } - - testWithGMP_avgt_jmhStub(control, res, l_paillierbenchmarkstate2_G, l_paillierbenchmark0_0, l_blackhole1_1); - control.announceWarmdownReady(); - try { - while (control.warmdownShouldWait) { - l_paillierbenchmark0_0.testWithGMP(l_paillierbenchmarkstate2_G); - res.allOps++; - } - control.preTearDown(); - } catch (InterruptedException ie) { - control.preTearDownForce(); - } - - if (control.isLastIteration()) { - if (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.compareAndSet(l_paillierbenchmarkstate2_G, 0, 1)) { - try { - if (l_paillierbenchmarkstate2_G.readyTrial) { - l_paillierbenchmarkstate2_G.readyTrial = false; - } - } finally { - PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.set(l_paillierbenchmarkstate2_G, 0); - } - } else { - long l_paillierbenchmarkstate2_G_backoff = 1; - while (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.get(l_paillierbenchmarkstate2_G) == 1) { - TimeUnit.MILLISECONDS.sleep(l_paillierbenchmarkstate2_G_backoff); - l_paillierbenchmarkstate2_G_backoff = Math.max(1024, l_paillierbenchmarkstate2_G_backoff * 2); - if (Thread.interrupted()) throw new InterruptedException(); - } - } - synchronized(this.getClass()) { - f_paillierbenchmarkstate2_G = null; - } - f_paillierbenchmark0_0 = null; - f_blackhole1_1 = null; - } - res.allOps += res.measuredOps; - int batchSize = control.iterationParams.getBatchSize(); - int opsPerInv = control.benchmarkParams.getOpsPerInvocation(); - res.allOps *= opsPerInv; - res.allOps /= batchSize; - res.measuredOps *= opsPerInv; - res.measuredOps /= batchSize; - BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps); - results.add(new AverageTimeResult(ResultRole.PRIMARY, "testWithGMP", res.measuredOps, res.getTime(), control.benchmarkParams.getTimeUnit())); - return results; - } else - throw new IllegalStateException("Harness failed to distribute threads among groups properly"); - } - - public void testWithGMP_avgt_jmhStub(InfraControl control, RawResults result, PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G, PaillierBenchmark_jmhType l_paillierbenchmark0_0, Blackhole_jmhType l_blackhole1_1) throws Throwable { - long operations = 0; - long realTime = 0; - result.startTime = System.nanoTime(); - do { - l_paillierbenchmark0_0.testWithGMP(l_paillierbenchmarkstate2_G); - operations++; - } while(!control.isDone); - result.stopTime = System.nanoTime(); - result.realTime = realTime; - result.measuredOps = operations; - } - - - public BenchmarkTaskResult testWithGMP_SampleTime(InfraControl control, ThreadParams threadParams) throws Throwable { - if (threadParams.getSubgroupIndex() == 0) { - RawResults res = new RawResults(); - Blackhole_jmhType l_blackhole1_1 = _jmh_tryInit_f_blackhole1_1(control, threadParams); - PaillierBenchmark_jmhType l_paillierbenchmark0_0 = _jmh_tryInit_f_paillierbenchmark0_0(control, threadParams); - PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G = _jmh_tryInit_f_paillierbenchmarkstate2_G(control, threadParams); - - control.preSetup(); - l_blackhole1_1.clearSinks(); - - control.announceWarmupReady(); - while (control.warmupShouldWait) { - l_paillierbenchmark0_0.testWithGMP(l_paillierbenchmarkstate2_G); - res.allOps++; - } - - int targetSamples = (int) (control.getDuration(TimeUnit.MILLISECONDS) * 20); // at max, 20 timestamps per millisecond - int batchSize = control.iterationParams.getBatchSize(); - int opsPerInv = control.benchmarkParams.getOpsPerInvocation(); - SampleBuffer buffer = new SampleBuffer(); - testWithGMP_sample_jmhStub(control, res, buffer, targetSamples, opsPerInv, batchSize, l_paillierbenchmarkstate2_G, l_paillierbenchmark0_0, l_blackhole1_1); - control.announceWarmdownReady(); - try { - while (control.warmdownShouldWait) { - l_paillierbenchmark0_0.testWithGMP(l_paillierbenchmarkstate2_G); - res.allOps++; - } - control.preTearDown(); - } catch (InterruptedException ie) { - control.preTearDownForce(); - } - - if (control.isLastIteration()) { - if (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.compareAndSet(l_paillierbenchmarkstate2_G, 0, 1)) { - try { - if (l_paillierbenchmarkstate2_G.readyTrial) { - l_paillierbenchmarkstate2_G.readyTrial = false; - } - } finally { - PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.set(l_paillierbenchmarkstate2_G, 0); - } - } else { - long l_paillierbenchmarkstate2_G_backoff = 1; - while (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.get(l_paillierbenchmarkstate2_G) == 1) { - TimeUnit.MILLISECONDS.sleep(l_paillierbenchmarkstate2_G_backoff); - l_paillierbenchmarkstate2_G_backoff = Math.max(1024, l_paillierbenchmarkstate2_G_backoff * 2); - if (Thread.interrupted()) throw new InterruptedException(); - } - } - synchronized(this.getClass()) { - f_paillierbenchmarkstate2_G = null; - } - f_paillierbenchmark0_0 = null; - f_blackhole1_1 = null; - } - res.allOps += res.measuredOps * batchSize; - res.allOps *= opsPerInv; - res.allOps /= batchSize; - res.measuredOps *= opsPerInv; - BenchmarkTaskResult results = new BenchmarkTaskResult(res.allOps, res.measuredOps); - results.add(new SampleTimeResult(ResultRole.PRIMARY, "testWithGMP", buffer, control.benchmarkParams.getTimeUnit())); - return results; - } else - throw new IllegalStateException("Harness failed to distribute threads among groups properly"); - } - - public void testWithGMP_sample_jmhStub(InfraControl control, RawResults result, SampleBuffer buffer, int targetSamples, long opsPerInv, int batchSize, PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G, PaillierBenchmark_jmhType l_paillierbenchmark0_0, Blackhole_jmhType l_blackhole1_1) throws Throwable { - long realTime = 0; - long operations = 0; - int rnd = (int)System.nanoTime(); - int rndMask = startRndMask; - long time = 0; - int currentStride = 0; - do { - rnd = (rnd * 1664525 + 1013904223); - boolean sample = (rnd & rndMask) == 0; - if (sample) { - time = System.nanoTime(); - } - for (int b = 0; b < batchSize; b++) { - if (control.volatileSpoiler) return; - l_paillierbenchmark0_0.testWithGMP(l_paillierbenchmarkstate2_G); - } - 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 testWithGMP_SingleShotTime(InfraControl control, ThreadParams threadParams) throws Throwable { - if (threadParams.getSubgroupIndex() == 0) { - Blackhole_jmhType l_blackhole1_1 = _jmh_tryInit_f_blackhole1_1(control, threadParams); - PaillierBenchmark_jmhType l_paillierbenchmark0_0 = _jmh_tryInit_f_paillierbenchmark0_0(control, threadParams); - PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G = _jmh_tryInit_f_paillierbenchmarkstate2_G(control, threadParams); - - control.preSetup(); - l_blackhole1_1.clearSinks(); - - RawResults res = new RawResults(); - int batchSize = control.iterationParams.getBatchSize(); - testWithGMP_ss_jmhStub(control, batchSize, res, l_paillierbenchmarkstate2_G, l_paillierbenchmark0_0, l_blackhole1_1); - control.preTearDown(); - - if (control.isLastIteration()) { - if (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.compareAndSet(l_paillierbenchmarkstate2_G, 0, 1)) { - try { - if (l_paillierbenchmarkstate2_G.readyTrial) { - l_paillierbenchmarkstate2_G.readyTrial = false; - } - } finally { - PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.set(l_paillierbenchmarkstate2_G, 0); - } - } else { - long l_paillierbenchmarkstate2_G_backoff = 1; - while (PaillierBenchmark_PaillierBenchmarkState_jmhType.tearTrialMutexUpdater.get(l_paillierbenchmarkstate2_G) == 1) { - TimeUnit.MILLISECONDS.sleep(l_paillierbenchmarkstate2_G_backoff); - l_paillierbenchmarkstate2_G_backoff = Math.max(1024, l_paillierbenchmarkstate2_G_backoff * 2); - if (Thread.interrupted()) throw new InterruptedException(); - } - } - synchronized(this.getClass()) { - f_paillierbenchmarkstate2_G = null; - } - f_paillierbenchmark0_0 = null; - f_blackhole1_1 = null; - } - int opsPerInv = control.benchmarkParams.getOpsPerInvocation(); - long totalOps = opsPerInv; - BenchmarkTaskResult results = new BenchmarkTaskResult(totalOps, totalOps); - results.add(new SingleShotResult(ResultRole.PRIMARY, "testWithGMP", res.getTime(), control.benchmarkParams.getTimeUnit())); - return results; - } else - throw new IllegalStateException("Harness failed to distribute threads among groups properly"); - } - - public void testWithGMP_ss_jmhStub(InfraControl control, int batchSize, RawResults result, PaillierBenchmark_PaillierBenchmarkState_jmhType l_paillierbenchmarkstate2_G, PaillierBenchmark_jmhType l_paillierbenchmark0_0, Blackhole_jmhType l_blackhole1_1) throws Throwable { - long realTime = 0; - result.startTime = System.nanoTime(); - for (int b = 0; b < batchSize; b++) { - if (control.volatileSpoiler) return; - l_paillierbenchmark0_0.testWithGMP(l_paillierbenchmarkstate2_G); - } - result.stopTime = System.nanoTime(); - result.realTime = realTime; - } - - - static volatile PaillierBenchmark_PaillierBenchmarkState_jmhType f_paillierbenchmarkstate2_G; - - PaillierBenchmark_PaillierBenchmarkState_jmhType _jmh_tryInit_f_paillierbenchmarkstate2_G(InfraControl control, ThreadParams threadParams) throws Throwable { - PaillierBenchmark_PaillierBenchmarkState_jmhType val = f_paillierbenchmarkstate2_G; - if (val != null) { - return val; - } - synchronized(this.getClass()) { - val = f_paillierbenchmarkstate2_G; - if (val != null) { - return val; - } - val = new PaillierBenchmark_PaillierBenchmarkState_jmhType(); - val.setUp(); - val.readyTrial = true; - f_paillierbenchmarkstate2_G = val; - } - return val; - } - - Blackhole_jmhType f_blackhole1_1; - - Blackhole_jmhType _jmh_tryInit_f_blackhole1_1(InfraControl control, ThreadParams threadParams) throws Throwable { - Blackhole_jmhType val = f_blackhole1_1; - if (val == null) { - val = new Blackhole_jmhType(); - f_blackhole1_1 = val; - } - return val; - } - - PaillierBenchmark_jmhType f_paillierbenchmark0_0; - - PaillierBenchmark_jmhType _jmh_tryInit_f_paillierbenchmark0_0(InfraControl control, ThreadParams threadParams) throws Throwable { - PaillierBenchmark_jmhType val = f_paillierbenchmark0_0; - if (val == null) { - val = new PaillierBenchmark_jmhType(); - f_paillierbenchmark0_0 = val; - } - return val; - } - - -} -
