1load("//tensorflow:tensorflow.bzl", "tf_py_test") 2 3package( 4 default_visibility = ["//tensorflow:internal"], 5 licenses = ["notice"], 6) 7 8py_library( 9 name = "benchmark_base", 10 srcs = ["benchmark_base.py"], 11 srcs_version = "PY3", 12 deps = [ 13 "//tensorflow/python:client_testlib", 14 "//tensorflow/python:session", 15 "//tensorflow/python/data/ops:dataset_ops", 16 "//third_party/py/numpy", 17 ], 18) 19 20tf_py_test( 21 name = "meta_benchmark", 22 srcs = ["meta_benchmark.py"], 23 deps = [ 24 ":benchmark_base", 25 "//tensorflow/python:client_testlib", 26 "//tensorflow/python:session", 27 "//tensorflow/python/data/experimental/ops:testing", 28 "//tensorflow/python/data/ops:dataset_ops", 29 "//third_party/py/numpy", 30 ], 31) 32 33tf_py_test( 34 name = "batch_benchmark", 35 srcs = ["batch_benchmark.py"], 36 deps = [ 37 ":benchmark_base", 38 "//tensorflow/python:sparse_tensor", 39 "//tensorflow/python/data/ops:dataset_ops", 40 "//third_party/py/numpy", 41 ], 42) 43 44tf_py_test( 45 name = "filter_benchmark", 46 srcs = ["filter_benchmark.py"], 47 deps = [ 48 ":benchmark_base", 49 "//tensorflow/python/data/ops:dataset_ops", 50 ], 51) 52 53tf_py_test( 54 name = "from_tensor_slices_benchmark", 55 srcs = ["from_tensor_slices_benchmark.py"], 56 deps = [ 57 ":benchmark_base", 58 "//tensorflow/python/data/experimental/ops:get_single_element", 59 "//tensorflow/python/data/ops:dataset_ops", 60 "//third_party/py/numpy", 61 ], 62) 63 64tf_py_test( 65 name = "interleave_benchmark", 66 srcs = ["interleave_benchmark.py"], 67 deps = [ 68 ":benchmark_base", 69 "//tensorflow/python:client_testlib", 70 "//tensorflow/python:math_ops", 71 "//tensorflow/python:session", 72 "//tensorflow/python/data/experimental/ops:interleave_ops", 73 "//tensorflow/python/data/experimental/ops:testing", 74 "//tensorflow/python/data/ops:dataset_ops", 75 "//third_party/py/numpy", 76 ], 77) 78 79tf_py_test( 80 name = "list_files_benchmark", 81 srcs = ["list_files_benchmark.py"], 82 deps = [ 83 ":benchmark_base", 84 "//tensorflow/python:client_testlib", 85 "//tensorflow/python:errors", 86 "//tensorflow/python:framework_ops", 87 "//tensorflow/python:session", 88 "//tensorflow/python/data/ops:dataset_ops", 89 "//third_party/py/numpy", 90 ], 91) 92 93tf_py_test( 94 name = "map_benchmark", 95 srcs = ["map_benchmark.py"], 96 deps = [ 97 ":benchmark_base", 98 "//tensorflow/python/data/ops:dataset_ops", 99 ], 100) 101 102tf_py_test( 103 name = "prefetch_benchmark", 104 srcs = ["prefetch_benchmark.py"], 105 deps = [ 106 ":benchmark_base", 107 "//tensorflow/python/data/ops:dataset_ops", 108 ], 109) 110 111tf_py_test( 112 name = "range_benchmark", 113 srcs = ["range_benchmark.py"], 114 deps = [ 115 ":benchmark_base", 116 "//tensorflow/python/data/ops:dataset_ops", 117 ], 118) 119