1"""Provides the repo macro to import google benchmark""" 2 3load("//third_party:repo.bzl", "tf_http_archive", "tf_mirror_urls") 4 5def repo(): 6 """Imports benchmark.""" 7 BM_COMMIT = "0baacde3618ca617da95375e0af13ce1baadea47" 8 BM_SHA256 = "0b921a3bc39e35f4275c8dcc658af2391c150fb966102341287b0401ff2e6f21" 9 tf_http_archive( 10 name = "com_google_benchmark", 11 sha256 = BM_SHA256, 12 strip_prefix = "benchmark-{commit}".format(commit = BM_COMMIT), 13 build_file = "//third_party/benchmark:benchmark.BUILD", 14 urls = tf_mirror_urls("https://github.com/google/benchmark/archive/{commit}.tar.gz".format(commit = BM_COMMIT)), 15 ) 16