1cc_binary(
2    name = "word_freq_shards_basic",
3    srcs = ["word_freq_shards_basic.cc"],
4    # linkopts = ["-ltcmalloc_and_profiler"],
5    deps = [
6        ":common",
7        "@absl//absl/container:flat_hash_map",
8    ],
9)
10
11cc_binary(
12    name = "word_freq_sort_basic",
13    srcs = ["word_freq_sort_basic.cc"],
14    # linkopts = ["-lprofiler"],
15    deps = [
16        ":common",
17        "@muduo//muduo/base",
18    ],
19)
20
21cc_library(
22    name = "common",
23    hdrs = [
24        "file.h",
25        "input.h",
26        "merge.h",
27        "timer.h",
28    ],
29    deps = [
30        "@absl//absl/strings:str_format",
31        "@muduo//muduo/base",
32    ],
33)
34
35cc_test(
36    name = "benchmark",
37    srcs = ["benchmark.cc"],
38    # linkopts = ["-ltcmalloc_and_profiler"],
39    deps = [
40        ":common",
41        "@absl//absl/container:flat_hash_set",
42    ],
43)
44