class _SingleSource_Benchmarks_McGill(object): """The McGill benchmarks.""" queens = benchmarks_pb2.Benchmark( name='queens', usage='queens [-ac] <n>', binary=str( bazelutil.DataPath( 'llvm_test_suite/SingleSource_Benchmarks_McGill_queens')), srcs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/McGill/queens.c') ), ], )
logging.debug('$ %s', ' '.join(cmd)) process = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE) stdout, stderr = process.communicate(data) if process.returncode == 9: raise Bzip2Timeout(f'bzip2 timed out after {timeout_seconds}s') process.stdout = stdout process.stderr = stderr return process Bzip2 = benchmarks_pb2.Benchmark( name='bzip2', binary=str(BZIP2), srcs=[str(x) for x in BZIP2_SRCS], hdrs=[str(x) for x in BZIP2_HEADERS], ) # A list of all benchmarks in this file. BENCHMARKS = [ Bzip2, ] def main(argv): """Main entry point.""" try: proc = Exec(argv[1:], timeout_seconds=FLAGS.opt_timeout_seconds) if proc.stdout: print(proc.stdout)
class _SingleSource_Benchmarks_Shootout(object): """The Programming Language Shootout benchmarks.""" ackermann = benchmarks_pb2.Benchmark( name='ackermann', binary=str( bazelutil.DataPath( 'llvm_test_suite/SingleSource_Benchmarks_Shootout_ackermann')), srcs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/Shootout/ackermann.c' )), ], ) ary3 = benchmarks_pb2.Benchmark( name='ary3', binary=str( bazelutil.DataPath( 'llvm_test_suite/SingleSource_Benchmarks_Shootout_ary3')), srcs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/Shootout/ary3.c') ), ], ) fib2 = benchmarks_pb2.Benchmark( name='fib2', binary=str( bazelutil.DataPath( 'llvm_test_suite/SingleSource_Benchmarks_Shootout_fib2')), srcs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/Shootout/fib2.c') ), ], ) hash = benchmarks_pb2.Benchmark( name='hash', binary=str( bazelutil.DataPath( 'llvm_test_suite/SingleSource_Benchmarks_Shootout_hash')), srcs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/Shootout/hash.c') ), ], hdrs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/Shootout/simple_hash.h' )), ], ) heapsort = benchmarks_pb2.Benchmark( name='heapsort', binary=str( bazelutil.DataPath( 'llvm_test_suite/SingleSource_Benchmarks_Shootout_heapsort')), srcs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/Shootout/heapsort.c' )), ], ) hello = benchmarks_pb2.Benchmark( name='hello', binary=str( bazelutil.DataPath( 'llvm_test_suite/SingleSource_Benchmarks_Shootout_hello')), srcs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/Shootout/hello.c') ), ], ) lists = benchmarks_pb2.Benchmark( name='lists', binary=str( bazelutil.DataPath( 'llvm_test_suite/SingleSource_Benchmarks_Shootout_lists')), srcs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/Shootout/lists.c') ), ], ) matrix = benchmarks_pb2.Benchmark( name='matrix', binary=str( bazelutil.DataPath( 'llvm_test_suite/SingleSource_Benchmarks_Shootout_matrix')), srcs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/Shootout/matrix.c' )), ], ) methcall = benchmarks_pb2.Benchmark( name='methcall', binary=str( bazelutil.DataPath( 'llvm_test_suite/SingleSource_Benchmarks_Shootout_methcall')), srcs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/Shootout/methcall.c' )), ], ) nestedloop = benchmarks_pb2.Benchmark( name='nestedloop', binary=str( bazelutil.DataPath( 'llvm_test_suite/SingleSource_Benchmarks_Shootout_nestedloop') ), srcs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/Shootout/nestedloop.c' )), ], ) objinst = benchmarks_pb2.Benchmark( name='objinst', binary=str( bazelutil.DataPath( 'llvm_test_suite/SingleSource_Benchmarks_Shootout_objinst')), srcs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/Shootout/objinst.c' )), ], ) random = benchmarks_pb2.Benchmark( name='random', binary=str( bazelutil.DataPath( 'llvm_test_suite/SingleSource_Benchmarks_Shootout_random')), srcs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/Shootout/random.c' )), ], ) sieve = benchmarks_pb2.Benchmark( name='sieve', binary=str( bazelutil.DataPath( 'llvm_test_suite/SingleSource_Benchmarks_Shootout_sieve')), srcs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/Shootout/sieve.c') ), ], ) strcat = benchmarks_pb2.Benchmark( name='strcat', binary=str( bazelutil.DataPath( 'llvm_test_suite/SingleSource_Benchmarks_Shootout_strcat')), srcs=[ str( bazelutil.DataPath( 'llvm_test_suite/SingleSource/Benchmarks/Shootout/strcat.c' )), ], )
class _SingleSource_Benchmarks_Shootout(object): """The Programming Language Shootout benchmarks.""" ackermann = benchmarks_pb2.Benchmark( name="ackermann", binary=str( bazelutil.DataPath( "llvm_test_suite/SingleSource_Benchmarks_Shootout_ackermann")), srcs=[ str( bazelutil.DataPath( "llvm_test_suite/SingleSource/Benchmarks/Shootout/ackermann.c" )), ], ) ary3 = benchmarks_pb2.Benchmark( name="ary3", binary=str( bazelutil.DataPath( "llvm_test_suite/SingleSource_Benchmarks_Shootout_ary3")), srcs=[ str( bazelutil.DataPath( "llvm_test_suite/SingleSource/Benchmarks/Shootout/ary3.c") ), ], ) fib2 = benchmarks_pb2.Benchmark( name="fib2", binary=str( bazelutil.DataPath( "llvm_test_suite/SingleSource_Benchmarks_Shootout_fib2")), srcs=[ str( bazelutil.DataPath( "llvm_test_suite/SingleSource/Benchmarks/Shootout/fib2.c") ), ], ) hash = benchmarks_pb2.Benchmark( name="hash", binary=str( bazelutil.DataPath( "llvm_test_suite/SingleSource_Benchmarks_Shootout_hash")), srcs=[ str( bazelutil.DataPath( "llvm_test_suite/SingleSource/Benchmarks/Shootout/hash.c") ), ], hdrs=[ str( bazelutil.DataPath( "llvm_test_suite/SingleSource/Benchmarks/Shootout/simple_hash.h" )), ], ) heapsort = benchmarks_pb2.Benchmark( name="heapsort", binary=str( bazelutil.DataPath( "llvm_test_suite/SingleSource_Benchmarks_Shootout_heapsort")), srcs=[ str( bazelutil.DataPath( "llvm_test_suite/SingleSource/Benchmarks/Shootout/heapsort.c" )), ], ) hello = benchmarks_pb2.Benchmark( name="hello", binary=str( bazelutil.DataPath( "llvm_test_suite/SingleSource_Benchmarks_Shootout_hello")), srcs=[ str( bazelutil.DataPath( "llvm_test_suite/SingleSource/Benchmarks/Shootout/hello.c") ), ], ) lists = benchmarks_pb2.Benchmark( name="lists", binary=str( bazelutil.DataPath( "llvm_test_suite/SingleSource_Benchmarks_Shootout_lists")), srcs=[ str( bazelutil.DataPath( "llvm_test_suite/SingleSource/Benchmarks/Shootout/lists.c") ), ], ) matrix = benchmarks_pb2.Benchmark( name="matrix", binary=str( bazelutil.DataPath( "llvm_test_suite/SingleSource_Benchmarks_Shootout_matrix")), srcs=[ str( bazelutil.DataPath( "llvm_test_suite/SingleSource/Benchmarks/Shootout/matrix.c" )), ], ) methcall = benchmarks_pb2.Benchmark( name="methcall", binary=str( bazelutil.DataPath( "llvm_test_suite/SingleSource_Benchmarks_Shootout_methcall")), srcs=[ str( bazelutil.DataPath( "llvm_test_suite/SingleSource/Benchmarks/Shootout/methcall.c" )), ], ) nestedloop = benchmarks_pb2.Benchmark( name="nestedloop", binary=str( bazelutil.DataPath( "llvm_test_suite/SingleSource_Benchmarks_Shootout_nestedloop") ), srcs=[ str( bazelutil.DataPath( "llvm_test_suite/SingleSource/Benchmarks/Shootout/nestedloop.c" )), ], ) objinst = benchmarks_pb2.Benchmark( name="objinst", binary=str( bazelutil.DataPath( "llvm_test_suite/SingleSource_Benchmarks_Shootout_objinst")), srcs=[ str( bazelutil.DataPath( "llvm_test_suite/SingleSource/Benchmarks/Shootout/objinst.c" )), ], ) random = benchmarks_pb2.Benchmark( name="random", binary=str( bazelutil.DataPath( "llvm_test_suite/SingleSource_Benchmarks_Shootout_random")), srcs=[ str( bazelutil.DataPath( "llvm_test_suite/SingleSource/Benchmarks/Shootout/random.c" )), ], ) sieve = benchmarks_pb2.Benchmark( name="sieve", binary=str( bazelutil.DataPath( "llvm_test_suite/SingleSource_Benchmarks_Shootout_sieve")), srcs=[ str( bazelutil.DataPath( "llvm_test_suite/SingleSource/Benchmarks/Shootout/sieve.c") ), ], ) strcat = benchmarks_pb2.Benchmark( name="strcat", binary=str( bazelutil.DataPath( "llvm_test_suite/SingleSource_Benchmarks_Shootout_strcat")), srcs=[ str( bazelutil.DataPath( "llvm_test_suite/SingleSource/Benchmarks/Shootout/strcat.c" )), ], )