source: core/perl/i2pbench.sh @ 5634055

Last change on this file since 5634055 was 40642c8, checked in by str4d <str4d@…>, 3 years ago

Remove old benchmarks

  • Property mode set to 100644
File size: 997 bytes
Line 
1#!/usr/bin/perl
2# Use the "--gij" parameter to run the tests against libgcj.
3# Use the "--sourcedir" parameter if running this from the source tree.
4
5$runtime = "java";
6$classpath = "../lib/i2p.jar:../lib/jbigi.jar";
7
8foreach $argv (@ARGV) {
9        if ($argv eq "--gij") {
10                $runtime = "gij";
11                print "\n*** Using gij + libgcj ***\n\n";
12        }
13        if ($argv eq "--sourcedir") {
14                $classpath = "../../build/i2p.jar:../../build/jbigi.jar";
15        }
16}
17
18$javacommand = "$runtime -cp $classpath -Dlogger.shutdownDelay=0";
19
20print "\nBenchmark Suite #1: i2p/core/java/test/net/i2p/crypto/*\n\n";
21
22@testclasses = ( "DSABench" );
23
24foreach $testclass (@testclasses) {
25        print "[BENCHMARK] $testclass:\n\n";
26        system("$javacommand net.i2p.crypto.$testclass");
27        print "\n";
28}
29
30print "\nBenchmark Suite #2: i2p/core/java/src/net/i2p/util/NativeBigInteger\n\n";
31
32$javacommand = "$runtime -cp $classpath -Djava.library.path=.";
33
34system("$javacommand net.i2p.util.NativeBigInteger");
35
36print "\n\n*** ALL BENCHMARKS COMPLETE ***\n\n";
Note: See TracBrowser for help on using the repository browser.