| 1 | // Copyright (c) 2014-2022, The Monero Project |
| 2 | // |
| 3 | // All rights reserved. |
| 4 | // |
| 5 | // Redistribution and use in source and binary forms, with or without modification, are |
| 6 | // permitted provided that the following conditions are met: |
| 7 | // |
| 8 | // 1. Redistributions of source code must retain the above copyright notice, this list of |
| 9 | // conditions and the following disclaimer. |
| 10 | // |
| 11 | // 2. Redistributions in binary form must reproduce the above copyright notice, this list |
| 12 | // of conditions and the following disclaimer in the documentation and/or other |
| 13 | // materials provided with the distribution. |
| 14 | // |
| 15 | // 3. Neither the name of the copyright holder nor the names of its contributors may be |
| 16 | // used to endorse or promote products derived from this software without specific |
| 17 | // prior written permission. |
| 18 | // |
| 19 | // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY |
| 20 | // EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF |
| 21 | // MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL |
| 22 | // THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
| 23 | // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, |
| 24 | // PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS |
| 25 | // INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, |
| 26 | // STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF |
| 27 | // THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 28 | // |
| 29 | // Parts of this file are originally copyright (c) 2012-2013 The Cryptonote developers |
| 30 | |
| 31 | #include <boost/regex.hpp> |
| 32 | |
| 33 | #include "common/util.h" |
| 34 | #include "common/command_line.h" |
| 35 | #include "performance_tests.h" |
| 36 | #include "performance_utils.h" |
| 37 | |
| 38 | // tests |
| 39 | #include "construct_tx.h" |
| 40 | #include "check_tx_signature.h" |
| 41 | #include "check_hash.h" |
| 42 | #include "cn_slow_hash.h" |
| 43 | #include "derive_public_key.h" |
| 44 | #include "derive_secret_key.h" |
| 45 | #include "derive_view_tag.h" |
| 46 | #include "ge_frombytes_vartime.h" |
| 47 | #include "ge_tobytes.h" |
| 48 | #include "generate_key_derivation.h" |
| 49 | #include "generate_key_image.h" |
| 50 | #include "generate_key_image_helper.h" |
| 51 | #include "generate_keypair.h" |
| 52 | #include "signature.h" |
| 53 | #include "is_out_to_acc.h" |
| 54 | #include "out_can_be_to_acc.h" |
| 55 | #include "subaddress_expand.h" |
| 56 | #include "sc_reduce32.h" |
| 57 | #include "sc_check.h" |
| 58 | #include "cn_fast_hash.h" |
| 59 | #include "rct_mlsag.h" |
| 60 | #include "equality.h" |
| 61 | #include "range_proof.h" |
| 62 | #include "bulletproof.h" |
| 63 | #include "bulletproof_plus.h" |
| 64 | #include "crypto_ops.h" |
| 65 | #include "multiexp.h" |
| 66 | #include "sig_mlsag.h" |
| 67 | #include "sig_clsag.h" |
| 68 | |
| 69 | namespace po = boost::program_options; |
| 70 | |
| 71 | int main(int argc, char** argv) |
| 72 | { |
| 73 | TRY_ENTRY(); |
| 74 | tools::on_startup(); |
| 75 | set_process_affinity(1); |
| 76 | set_thread_high_priority(); |
| 77 | |
| 78 | mlog_configure(mlog_get_default_log_path("performance_tests.log"), true); |
| 79 | |
| 80 | po::options_description desc_options("Command line options"); |
| 81 | const command_line::arg_descriptor<std::string> arg_filter = { "filter", "Regular expression filter for which tests to run" }; |
| 82 | const command_line::arg_descriptor<bool> arg_verbose = { "verbose", "Verbose output", false }; |
| 83 | const command_line::arg_descriptor<bool> arg_stats = { "stats", "Including statistics (min/median)", false }; |
| 84 | const command_line::arg_descriptor<unsigned> arg_loop_multiplier = { "loop-multiplier", "Run for that many times more loops", 1 }; |
| 85 | const command_line::arg_descriptor<std::string> arg_timings_database = { "timings-database", "Keep timings history in a file" }; |
| 86 | command_line::add_arg(desc_options, arg_filter); |
| 87 | command_line::add_arg(desc_options, arg_verbose); |
| 88 | command_line::add_arg(desc_options, arg_stats); |
| 89 | command_line::add_arg(desc_options, arg_loop_multiplier); |
| 90 | command_line::add_arg(desc_options, arg_timings_database); |
| 91 | |
| 92 | po::variables_map vm; |
| 93 | bool r = command_line::handle_error_helper(desc_options, [&]() |
| 94 | { |
| 95 | po::store(po::parse_command_line(argc, argv, desc_options), vm); |
| 96 | po::notify(vm); |
| 97 | return true; |
| 98 | }); |
| 99 | if (!r) |
| 100 | return 1; |
| 101 | |
| 102 | const std::string filter = tools::glob_to_regex(command_line::get_arg(vm, arg_filter)); |
| 103 | const std::string timings_database = command_line::get_arg(vm, arg_timings_database); |
| 104 | Params p; |
| 105 | if (!timings_database.empty()) |
| 106 | p.td = TimingsDatabase(timings_database); |
| 107 | p.verbose = command_line::get_arg(vm, arg_verbose); |
| 108 | p.stats = command_line::get_arg(vm, arg_stats); |
| 109 | p.loop_multiplier = command_line::get_arg(vm, arg_loop_multiplier); |
| 110 | |
| 111 | performance_timer timer; |
| 112 | timer.start(); |
| 113 | |
| 114 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 1, 1, false); |
| 115 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 1, 2, false); |
| 116 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 1, 10, false); |
| 117 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 1, 100, false); |
| 118 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 1, 1000, false); |
| 119 | |
| 120 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 2, 1, false); |
| 121 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 2, 2, false); |
| 122 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 2, 10, false); |
| 123 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 2, 100, false); |
| 124 | |
| 125 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 10, 1, false); |
| 126 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 10, 2, false); |
| 127 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 10, 10, false); |
| 128 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 10, 100, false); |
| 129 | |
| 130 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 100, 1, false); |
| 131 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 100, 2, false); |
| 132 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 100, 10, false); |
| 133 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 100, 100, false); |
| 134 | |
| 135 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 2, 1, true); |
| 136 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 2, 2, true); |
| 137 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 2, 10, true); |
| 138 | |
| 139 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 10, 1, true); |
| 140 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 10, 2, true); |
| 141 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 10, 10, true); |
| 142 | |
| 143 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 100, 1, true); |
| 144 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 100, 2, true); |
| 145 | TEST_PERFORMANCE3(filter, p, test_construct_tx, 100, 10, true); |
| 146 | |
| 147 | TEST_PERFORMANCE5(filter, p, test_construct_tx, 2, 1, true, rct::RangeProofPaddedBulletproof, 2); |
| 148 | TEST_PERFORMANCE5(filter, p, test_construct_tx, 2, 2, true, rct::RangeProofPaddedBulletproof, 2); |
| 149 | TEST_PERFORMANCE5(filter, p, test_construct_tx, 2, 10, true, rct::RangeProofPaddedBulletproof, 2); |
| 150 | |
| 151 | TEST_PERFORMANCE5(filter, p, test_construct_tx, 10, 1, true, rct::RangeProofPaddedBulletproof, 2); |
| 152 | TEST_PERFORMANCE5(filter, p, test_construct_tx, 10, 2, true, rct::RangeProofPaddedBulletproof, 2); |
| 153 | TEST_PERFORMANCE5(filter, p, test_construct_tx, 10, 10, true, rct::RangeProofPaddedBulletproof, 2); |
| 154 | |
| 155 | TEST_PERFORMANCE5(filter, p, test_construct_tx, 100, 1, true, rct::RangeProofPaddedBulletproof, 2); |
| 156 | TEST_PERFORMANCE5(filter, p, test_construct_tx, 100, 2, true, rct::RangeProofPaddedBulletproof, 2); |
| 157 | TEST_PERFORMANCE5(filter, p, test_construct_tx, 100, 10, true, rct::RangeProofPaddedBulletproof, 2); |
| 158 | |
| 159 | TEST_PERFORMANCE3(filter, p, test_check_tx_signature, 1, 2, false); |
| 160 | TEST_PERFORMANCE3(filter, p, test_check_tx_signature, 2, 2, false); |
| 161 | TEST_PERFORMANCE3(filter, p, test_check_tx_signature, 10, 2, false); |
| 162 | TEST_PERFORMANCE3(filter, p, test_check_tx_signature, 100, 2, false); |
| 163 | TEST_PERFORMANCE3(filter, p, test_check_tx_signature, 2, 10, false); |
| 164 | |
| 165 | TEST_PERFORMANCE4(filter, p, test_check_tx_signature, 2, 2, true, rct::RangeProofBorromean); |
| 166 | TEST_PERFORMANCE4(filter, p, test_check_tx_signature, 10, 2, true, rct::RangeProofBorromean); |
| 167 | TEST_PERFORMANCE4(filter, p, test_check_tx_signature, 100, 2, true, rct::RangeProofBorromean); |
| 168 | TEST_PERFORMANCE4(filter, p, test_check_tx_signature, 2, 10, true, rct::RangeProofBorromean); |
| 169 | |
| 170 | TEST_PERFORMANCE5(filter, p, test_check_tx_signature, 2, 2, true, rct::RangeProofPaddedBulletproof, 2); |
| 171 | TEST_PERFORMANCE5(filter, p, test_check_tx_signature, 2, 2, true, rct::RangeProofMultiOutputBulletproof, 2); |
| 172 | TEST_PERFORMANCE5(filter, p, test_check_tx_signature, 10, 2, true, rct::RangeProofPaddedBulletproof, 2); |
| 173 | TEST_PERFORMANCE5(filter, p, test_check_tx_signature, 10, 2, true, rct::RangeProofMultiOutputBulletproof, 2); |
| 174 | TEST_PERFORMANCE5(filter, p, test_check_tx_signature, 100, 2, true, rct::RangeProofPaddedBulletproof, 2); |
| 175 | TEST_PERFORMANCE5(filter, p, test_check_tx_signature, 100, 2, true, rct::RangeProofMultiOutputBulletproof, 2); |
| 176 | TEST_PERFORMANCE5(filter, p, test_check_tx_signature, 2, 10, true, rct::RangeProofPaddedBulletproof, 2); |
| 177 | TEST_PERFORMANCE5(filter, p, test_check_tx_signature, 2, 10, true, rct::RangeProofMultiOutputBulletproof, 2); |
| 178 | |
| 179 | TEST_PERFORMANCE3(filter, p, test_check_tx_signature_aggregated_bulletproofs, 2, 2, 64); |
| 180 | TEST_PERFORMANCE3(filter, p, test_check_tx_signature_aggregated_bulletproofs, 10, 2, 64); |
| 181 | TEST_PERFORMANCE3(filter, p, test_check_tx_signature_aggregated_bulletproofs, 100, 2, 64); |
| 182 | TEST_PERFORMANCE3(filter, p, test_check_tx_signature_aggregated_bulletproofs, 2, 10, 64); |
| 183 | |
| 184 | TEST_PERFORMANCE4(filter, p, test_check_tx_signature_aggregated_bulletproofs, 2, 2, 62, 4); |
| 185 | TEST_PERFORMANCE4(filter, p, test_check_tx_signature_aggregated_bulletproofs, 10, 2, 62, 4); |
| 186 | TEST_PERFORMANCE4(filter, p, test_check_tx_signature_aggregated_bulletproofs, 2, 2, 56, 16); |
| 187 | TEST_PERFORMANCE4(filter, p, test_check_tx_signature_aggregated_bulletproofs, 10, 2, 56, 16); |
| 188 | |
| 189 | TEST_PERFORMANCE4(filter, p, test_check_hash, 0, 1, 0, 1); |
| 190 | TEST_PERFORMANCE4(filter, p, test_check_hash, 0, 0xffffffffffffffff, 0, 0xffffffffffffffff); |
| 191 | TEST_PERFORMANCE4(filter, p, test_check_hash, 0, 0xffffffffffffffff, 0, 1); |
| 192 | TEST_PERFORMANCE4(filter, p, test_check_hash, 1, 0, 1, 0); |
| 193 | TEST_PERFORMANCE4(filter, p, test_check_hash, 1, 0, 0, 1); |
| 194 | TEST_PERFORMANCE4(filter, p, test_check_hash, 0xffffffffffffffff, 0xffffffffffffffff, 0, 1); |
| 195 | TEST_PERFORMANCE4(filter, p, test_check_hash, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff, 0xffffffffffffffff); |
| 196 | |
| 197 | TEST_PERFORMANCE0(filter, p, test_is_out_to_acc); |
| 198 | TEST_PERFORMANCE0(filter, p, test_is_out_to_acc_precomp); |
| 199 | TEST_PERFORMANCE2(filter, p, test_out_can_be_to_acc, false, true); // no view tag, owned |
| 200 | TEST_PERFORMANCE2(filter, p, test_out_can_be_to_acc, true, false); // use view tag, not owned |
| 201 | TEST_PERFORMANCE2(filter, p, test_out_can_be_to_acc, true, true); // use view tag, owned |
| 202 | TEST_PERFORMANCE0(filter, p, test_generate_key_image_helper); |
| 203 | TEST_PERFORMANCE0(filter, p, test_generate_key_derivation); |
| 204 | TEST_PERFORMANCE0(filter, p, test_generate_key_image); |
| 205 | TEST_PERFORMANCE0(filter, p, test_derive_public_key); |
| 206 | TEST_PERFORMANCE0(filter, p, test_derive_secret_key); |
| 207 | TEST_PERFORMANCE0(filter, p, test_ge_frombytes_vartime); |
| 208 | TEST_PERFORMANCE0(filter, p, test_ge_tobytes); |
| 209 | TEST_PERFORMANCE0(filter, p, test_generate_keypair); |
| 210 | TEST_PERFORMANCE0(filter, p, test_sc_reduce32); |
| 211 | TEST_PERFORMANCE0(filter, p, test_sc_check); |
| 212 | TEST_PERFORMANCE1(filter, p, test_signature, false); |
| 213 | TEST_PERFORMANCE1(filter, p, test_signature, true); |
| 214 | TEST_PERFORMANCE0(filter, p, test_derive_view_tag); |
| 215 | |
| 216 | TEST_PERFORMANCE2(filter, p, test_wallet2_expand_subaddresses, 50, 200); |
| 217 | |
| 218 | TEST_PERFORMANCE1(filter, p, test_cn_slow_hash, 0); |
| 219 | TEST_PERFORMANCE1(filter, p, test_cn_slow_hash, 1); |
| 220 | TEST_PERFORMANCE1(filter, p, test_cn_slow_hash, 2); |
| 221 | TEST_PERFORMANCE1(filter, p, test_cn_slow_hash, 4); |
| 222 | TEST_PERFORMANCE1(filter, p, test_cn_fast_hash, 32); |
| 223 | TEST_PERFORMANCE1(filter, p, test_cn_fast_hash, 16384); |
| 224 | |
| 225 | TEST_PERFORMANCE3(filter, p, test_sig_mlsag, 4, 2, 2); // MLSAG verification |
| 226 | TEST_PERFORMANCE3(filter, p, test_sig_mlsag, 8, 2, 2); |
| 227 | TEST_PERFORMANCE3(filter, p, test_sig_mlsag, 16, 2, 2); |
| 228 | TEST_PERFORMANCE3(filter, p, test_sig_mlsag, 32, 2, 2); |
| 229 | TEST_PERFORMANCE3(filter, p, test_sig_mlsag, 64, 2, 2); |
| 230 | TEST_PERFORMANCE3(filter, p, test_sig_mlsag, 128, 2, 2); |
| 231 | TEST_PERFORMANCE3(filter, p, test_sig_mlsag, 256, 2, 2); |
| 232 | TEST_PERFORMANCE3(filter, p, test_sig_clsag, 4, 2, 2); // CLSAG verification |
| 233 | TEST_PERFORMANCE3(filter, p, test_sig_clsag, 8, 2, 2); |
| 234 | TEST_PERFORMANCE3(filter, p, test_sig_clsag, 16, 2, 2); |
| 235 | TEST_PERFORMANCE3(filter, p, test_sig_clsag, 32, 2, 2); |
| 236 | TEST_PERFORMANCE3(filter, p, test_sig_clsag, 64, 2, 2); |
| 237 | TEST_PERFORMANCE3(filter, p, test_sig_clsag, 128, 2, 2); |
| 238 | TEST_PERFORMANCE3(filter, p, test_sig_clsag, 256, 2, 2); |
| 239 | |
| 240 | TEST_PERFORMANCE2(filter, p, test_ringct_mlsag, 11, false); |
| 241 | TEST_PERFORMANCE2(filter, p, test_ringct_mlsag, 11, true); |
| 242 | |
| 243 | TEST_PERFORMANCE2(filter, p, test_equality, memcmp32, true); |
| 244 | TEST_PERFORMANCE2(filter, p, test_equality, memcmp32, false); |
| 245 | TEST_PERFORMANCE2(filter, p, test_equality, verify32, false); |
| 246 | TEST_PERFORMANCE2(filter, p, test_equality, verify32, false); |
| 247 | |
| 248 | TEST_PERFORMANCE1(filter, p, test_range_proof, true); |
| 249 | TEST_PERFORMANCE1(filter, p, test_range_proof, false); |
| 250 | |
| 251 | TEST_PERFORMANCE2(filter, p, test_bulletproof_plus, true, 1); // 1 bulletproof_plus with 1 amount |
| 252 | TEST_PERFORMANCE2(filter, p, test_bulletproof_plus, false, 1); |
| 253 | |
| 254 | TEST_PERFORMANCE2(filter, p, test_bulletproof_plus, true, 2); // 1 bulletproof_plus with 2 amounts |
| 255 | TEST_PERFORMANCE2(filter, p, test_bulletproof_plus, false, 2); |
| 256 | |
| 257 | TEST_PERFORMANCE2(filter, p, test_bulletproof_plus, true, 15); // 1 bulletproof_plus with 15 amounts |
| 258 | TEST_PERFORMANCE2(filter, p, test_bulletproof_plus, false, 15); |
| 259 | |
| 260 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof_plus, false, 2, 1, 1, 0, 4); |
| 261 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof_plus, true, 2, 1, 1, 0, 4); // 4 proofs, each with 2 amounts |
| 262 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof_plus, false, 8, 1, 1, 0, 4); |
| 263 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof_plus, true, 8, 1, 1, 0, 4); // 4 proofs, each with 8 amounts |
| 264 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof_plus, false, 1, 1, 2, 0, 4); |
| 265 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof_plus, true, 1, 1, 2, 0, 4); // 4 proofs with 1, 2, 4, 8 amounts |
| 266 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof_plus, false, 1, 8, 1, 1, 4); |
| 267 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof_plus, true, 1, 8, 1, 1, 4); // 32 proofs, with 1, 2, 3, 4 amounts, 8 of each |
| 268 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof_plus, false, 2, 1, 1, 0, 64); |
| 269 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof_plus, true, 2, 1, 1, 0, 64); // 64 proof, each with 2 amounts |
| 270 | |
| 271 | TEST_PERFORMANCE2(filter, p, test_bulletproof, true, 1); // 1 bulletproof with 1 amount |
| 272 | TEST_PERFORMANCE2(filter, p, test_bulletproof, false, 1); |
| 273 | |
| 274 | TEST_PERFORMANCE2(filter, p, test_bulletproof, true, 2); // 1 bulletproof with 2 amounts |
| 275 | TEST_PERFORMANCE2(filter, p, test_bulletproof, false, 2); |
| 276 | |
| 277 | TEST_PERFORMANCE2(filter, p, test_bulletproof, true, 15); // 1 bulletproof with 15 amounts |
| 278 | TEST_PERFORMANCE2(filter, p, test_bulletproof, false, 15); |
| 279 | |
| 280 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof, false, 2, 1, 1, 0, 4); |
| 281 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof, true, 2, 1, 1, 0, 4); // 4 proofs, each with 2 amounts |
| 282 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof, false, 8, 1, 1, 0, 4); |
| 283 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof, true, 8, 1, 1, 0, 4); // 4 proofs, each with 8 amounts |
| 284 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof, false, 1, 1, 2, 0, 4); |
| 285 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof, true, 1, 1, 2, 0, 4); // 4 proofs with 1, 2, 4, 8 amounts |
| 286 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof, false, 1, 8, 1, 1, 4); |
| 287 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof, true, 1, 8, 1, 1, 4); // 32 proofs, with 1, 2, 3, 4 amounts, 8 of each |
| 288 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof, false, 2, 1, 1, 0, 64); |
| 289 | TEST_PERFORMANCE6(filter, p, test_aggregated_bulletproof, true, 2, 1, 1, 0, 64); // 64 proof, each with 2 amounts |
| 290 | |
| 291 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_sc_add); |
| 292 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_sc_sub); |
| 293 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_sc_mul); |
| 294 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_ge_add_raw); |
| 295 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_ge_add_p3_p3); |
| 296 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_addKeys); |
| 297 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_scalarmultBase); |
| 298 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_scalarmultKey); |
| 299 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_scalarmultH); |
| 300 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_scalarmult8); |
| 301 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_scalarmult8_p3); |
| 302 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_ge_dsm_precomp); |
| 303 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_ge_double_scalarmult_base_vartime); |
| 304 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_ge_triple_scalarmult_base_vartime); |
| 305 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_ge_double_scalarmult_precomp_vartime); |
| 306 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_ge_triple_scalarmult_precomp_vartime); |
| 307 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_ge_double_scalarmult_precomp_vartime2); |
| 308 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_addKeys2); |
| 309 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_addKeys3); |
| 310 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_addKeys3_2); |
| 311 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_addKeys_aGbBcC); |
| 312 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_addKeys_aAbBcC); |
| 313 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_isInMainSubgroup); |
| 314 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_zeroCommitUncached); |
| 315 | TEST_PERFORMANCE1(filter, p, test_crypto_ops, op_zeroCommitCached); |
| 316 | |
| 317 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_bos_coster, 2); |
| 318 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_bos_coster, 4); |
| 319 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_bos_coster, 8); |
| 320 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_bos_coster, 16); |
| 321 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_bos_coster, 32); |
| 322 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_bos_coster, 64); |
| 323 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_bos_coster, 128); |
| 324 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_bos_coster, 256); |
| 325 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_bos_coster, 512); |
| 326 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_bos_coster, 1024); |
| 327 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_bos_coster, 2048); |
| 328 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_bos_coster, 4096); |
| 329 | |
| 330 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus, 2); |
| 331 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus, 4); |
| 332 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus, 8); |
| 333 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus, 16); |
| 334 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus, 32); |
| 335 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus, 64); |
| 336 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus, 128); |
| 337 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus, 256); |
| 338 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus, 512); |
| 339 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus, 1024); |
| 340 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus, 2048); |
| 341 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus, 4096); |
| 342 | |
| 343 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus_cached, 2); |
| 344 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus_cached, 4); |
| 345 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus_cached, 8); |
| 346 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus_cached, 16); |
| 347 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus_cached, 32); |
| 348 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus_cached, 64); |
| 349 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus_cached, 128); |
| 350 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus_cached, 256); |
| 351 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus_cached, 512); |
| 352 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus_cached, 1024); |
| 353 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus_cached, 2048); |
| 354 | TEST_PERFORMANCE2(filter, p, test_multiexp, multiexp_straus_cached, 4096); |
| 355 | |
| 356 | #if 1 |
| 357 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2, 1); |
| 358 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4, 2); |
| 359 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 8, 2); |
| 360 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 16, 3); |
| 361 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 32, 4); |
| 362 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 64, 4); |
| 363 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 128, 5); |
| 364 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 256, 6); |
| 365 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 512, 7); |
| 366 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 1024, 7); |
| 367 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2048, 8); |
| 368 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4096, 9); |
| 369 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2, 1); |
| 370 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4, 2); |
| 371 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 8, 2); |
| 372 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 16, 3); |
| 373 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 32, 4); |
| 374 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 64, 4); |
| 375 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 128, 5); |
| 376 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 256, 6); |
| 377 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 512, 7); |
| 378 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 1024, 7); |
| 379 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2048, 8); |
| 380 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4096, 9); |
| 381 | #else |
| 382 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2, 1); |
| 383 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2, 2); |
| 384 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2, 3); |
| 385 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2, 4); |
| 386 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2, 5); |
| 387 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2, 6); |
| 388 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2, 7); |
| 389 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2, 8); |
| 390 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2, 9); |
| 391 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4, 1); |
| 392 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4, 2); |
| 393 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4, 3); |
| 394 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4, 4); |
| 395 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4, 5); |
| 396 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4, 6); |
| 397 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4, 7); |
| 398 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4, 8); |
| 399 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4, 9); |
| 400 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 8, 1); |
| 401 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 8, 2); |
| 402 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 8, 3); |
| 403 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 8, 4); |
| 404 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 8, 5); |
| 405 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 8, 6); |
| 406 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 8, 7); |
| 407 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 8, 8); |
| 408 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 8, 9); |
| 409 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 16, 1); |
| 410 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 16, 2); |
| 411 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 16, 3); |
| 412 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 16, 4); |
| 413 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 16, 5); |
| 414 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 16, 6); |
| 415 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 16, 7); |
| 416 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 16, 8); |
| 417 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 16, 9); |
| 418 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 32, 1); |
| 419 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 32, 2); |
| 420 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 32, 3); |
| 421 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 32, 4); |
| 422 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 32, 5); |
| 423 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 32, 6); |
| 424 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 32, 7); |
| 425 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 32, 8); |
| 426 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 32, 9); |
| 427 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 64, 1); |
| 428 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 64, 2); |
| 429 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 64, 3); |
| 430 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 64, 4); |
| 431 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 64, 5); |
| 432 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 64, 6); |
| 433 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 64, 7); |
| 434 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 64, 8); |
| 435 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 64, 9); |
| 436 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 128, 1); |
| 437 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 128, 2); |
| 438 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 128, 3); |
| 439 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 128, 4); |
| 440 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 128, 5); |
| 441 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 128, 6); |
| 442 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 128, 7); |
| 443 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 128, 8); |
| 444 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 128, 9); |
| 445 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 256, 1); |
| 446 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 256, 2); |
| 447 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 256, 3); |
| 448 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 256, 4); |
| 449 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 256, 5); |
| 450 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 256, 6); |
| 451 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 256, 7); |
| 452 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 256, 8); |
| 453 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 256, 9); |
| 454 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 512, 1); |
| 455 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 512, 2); |
| 456 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 512, 3); |
| 457 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 512, 4); |
| 458 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 512, 5); |
| 459 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 512, 6); |
| 460 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 512, 7); |
| 461 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 512, 8); |
| 462 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 512, 9); |
| 463 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 1024, 1); |
| 464 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 1024, 2); |
| 465 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 1024, 3); |
| 466 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 1024, 4); |
| 467 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 1024, 5); |
| 468 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 1024, 6); |
| 469 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 1024, 7); |
| 470 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 1024, 8); |
| 471 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 1024, 9); |
| 472 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2048, 1); |
| 473 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2048, 2); |
| 474 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2048, 3); |
| 475 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2048, 4); |
| 476 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2048, 5); |
| 477 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2048, 6); |
| 478 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2048, 7); |
| 479 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2048, 8); |
| 480 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 2048, 9); |
| 481 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4096, 1); |
| 482 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4096, 2); |
| 483 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4096, 3); |
| 484 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4096, 4); |
| 485 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4096, 5); |
| 486 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4096, 6); |
| 487 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4096, 7); |
| 488 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4096, 8); |
| 489 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger_cached, 4096, 9); |
| 490 | |
| 491 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2, 1); |
| 492 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2, 2); |
| 493 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2, 3); |
| 494 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2, 4); |
| 495 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2, 5); |
| 496 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2, 6); |
| 497 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2, 7); |
| 498 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2, 8); |
| 499 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2, 9); |
| 500 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4, 1); |
| 501 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4, 2); |
| 502 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4, 3); |
| 503 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4, 4); |
| 504 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4, 5); |
| 505 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4, 6); |
| 506 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4, 7); |
| 507 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4, 8); |
| 508 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4, 9); |
| 509 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 8, 1); |
| 510 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 8, 2); |
| 511 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 8, 3); |
| 512 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 8, 4); |
| 513 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 8, 5); |
| 514 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 8, 6); |
| 515 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 8, 7); |
| 516 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 8, 8); |
| 517 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 8, 9); |
| 518 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 16, 1); |
| 519 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 16, 2); |
| 520 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 16, 3); |
| 521 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 16, 4); |
| 522 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 16, 5); |
| 523 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 16, 6); |
| 524 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 16, 7); |
| 525 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 16, 8); |
| 526 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 16, 9); |
| 527 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 32, 1); |
| 528 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 32, 2); |
| 529 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 32, 3); |
| 530 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 32, 4); |
| 531 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 32, 5); |
| 532 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 32, 6); |
| 533 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 32, 7); |
| 534 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 32, 8); |
| 535 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 32, 9); |
| 536 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 64, 1); |
| 537 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 64, 2); |
| 538 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 64, 3); |
| 539 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 64, 4); |
| 540 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 64, 5); |
| 541 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 64, 6); |
| 542 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 64, 7); |
| 543 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 64, 8); |
| 544 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 64, 9); |
| 545 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 128, 1); |
| 546 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 128, 2); |
| 547 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 128, 3); |
| 548 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 128, 4); |
| 549 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 128, 5); |
| 550 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 128, 6); |
| 551 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 128, 7); |
| 552 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 128, 8); |
| 553 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 128, 9); |
| 554 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 256, 1); |
| 555 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 256, 2); |
| 556 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 256, 3); |
| 557 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 256, 4); |
| 558 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 256, 5); |
| 559 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 256, 6); |
| 560 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 256, 7); |
| 561 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 256, 8); |
| 562 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 256, 9); |
| 563 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 512, 1); |
| 564 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 512, 2); |
| 565 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 512, 3); |
| 566 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 512, 4); |
| 567 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 512, 5); |
| 568 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 512, 6); |
| 569 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 512, 7); |
| 570 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 512, 8); |
| 571 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 512, 9); |
| 572 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 1024, 1); |
| 573 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 1024, 2); |
| 574 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 1024, 3); |
| 575 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 1024, 4); |
| 576 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 1024, 5); |
| 577 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 1024, 6); |
| 578 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 1024, 7); |
| 579 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 1024, 8); |
| 580 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 1024, 9); |
| 581 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2048, 1); |
| 582 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2048, 2); |
| 583 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2048, 3); |
| 584 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2048, 4); |
| 585 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2048, 5); |
| 586 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2048, 6); |
| 587 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2048, 7); |
| 588 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2048, 8); |
| 589 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 2048, 9); |
| 590 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4096, 1); |
| 591 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4096, 2); |
| 592 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4096, 3); |
| 593 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4096, 4); |
| 594 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4096, 5); |
| 595 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4096, 6); |
| 596 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4096, 7); |
| 597 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4096, 8); |
| 598 | TEST_PERFORMANCE3(filter, p, test_multiexp, multiexp_pippenger, 4096, 9); |
| 599 | #endif |
| 600 | |
| 601 | std::cout << "Tests finished. Elapsed time: " << timer.elapsed_ms() / 1000 << " sec" << std::endl; |
| 602 | |
| 603 | return 0; |
| 604 | CATCH_ENTRY_L0("main", 1); |
| 605 | } |