bazel-buildfarm VS ccache

Compare bazel-buildfarm vs ccache and see what are their differences.

Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
bazel-buildfarm ccache
4 28
624 2,164
4.5% 2.4%
9.5 9.4
5 days ago 3 days ago
Java C++
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

bazel-buildfarm

Posts with mentions or reviews of bazel-buildfarm. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-01.
  • Distcc: A fast, free distributed C/C++ compiler
    11 projects | news.ycombinator.com | 1 Jun 2023
    It can be. By default it is local.

    But it has protobufs interfaces (IIRC), so a distributed build farm would generate the grpc endpoints for their implementation and then you tell bazel on the command line (or via .bazelrc) the address of the build farm it can use.

    There's a couple of projects that implement the distributed/grpc part, the main one is https://github.com/bazelbuild/bazel-buildfarm

  • Rust Is Portable
    10 projects | news.ycombinator.com | 27 Jul 2022
    Not sure what to say concerning buildfarm's remote execution.

    Reading an issue I've opened 1y ago [1], seems the backend requires the client to have a specific gcc version.

    That's a strong limitation imho.

    [1] https://github.com/bazelbuild/bazel-buildfarm/issues/545

  • Running container_push inside a container
    3 projects | /r/bazel | 23 Jul 2022
    You can also set up a remote build service that uses the same environment you run the containers in using something like https://github.com/bazelbuild/bazel-buildfarm
  • Distributed build clusters
    4 projects | /r/androiddev | 10 May 2022
    Currently migrating to Bazel + bazel remote execution via Bazel buildfarm. Bazel has native support for build clusters.

ccache

Posts with mentions or reviews of ccache. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-10.
  • Deep Learning with “AWS Graviton2 + NVIDIA Tensor T4G” for as low as free* with CUDA 12.2
    2 projects | dev.to | 10 Sep 2023
    # Download and install ccache for faster compilation wget https://github.com/ccache/ccache/releases/download/v4.8.3/ccache-4.8.3.tar.xz tar -xf ccache-4.8.3.tar.xz pushd ccache-4.8.3 cmake . make -j $CPUS make install popd # Install NumPy, a dependency for PyTorch dnf install -y numpy # Install Python typing extensions for better type-checking sudo -u ec2-user pip3 install typing-extensions # Clone PyTorch repository and install from source git clone --recursive https://github.com/pytorch/pytorch.git pushd pytorch python3 setup.py install popd # Refresh the dynamic linker run-time bindings ldconfig # Install additional Python libraries for PyTorch sudo -u ec2-user pip3 install sympy filelock fsspec networkx
  • This isn’t the way to speed up Rust compile times
    7 projects | news.ycombinator.com | 26 Aug 2023
    > What can I use to cache with MSVC that isn't Incredibuild?

    Ccache works, but if you use the Visual Studio C++ compiler you need to configure your build to be cacheable.

    https://github.com/ccache/ccache/wiki/MS-Visual-Studio

  • Flutter or React Native
    1 project | /r/FlutterDev | 4 Jul 2023
    That ecosystem now is too young. All these things must be configured by an automatic installer. Packages and pods need to be tested before release, etc. Previous was 80 min compilation time of the Firestore package. Solved with https://ccache.dev/. But why Dart developers must know, how to install and configure object cache for C++ compilers?
  • Distcc: A fast, free distributed C/C++ compiler
    11 projects | news.ycombinator.com | 1 Jun 2023
    Related

    https://github.com/icecc/icecream - another option that does what distcc does, but aimed at a somewhat different use case.

    https://ccache.dev/ - a similar idea but provides caching of build outputs instead of distributing builds. You can use it together with distcc to achieve even better performance.

  • Debugging the QtCreator
    1 project | /r/QtFramework | 27 Apr 2023
  • How to avoid compiling whole C++ project every time using Github actions?
    1 project | /r/cpp_questions | 26 Feb 2023
  • Boring Python: Code Quality
    14 projects | news.ycombinator.com | 20 Dec 2022
    > All those big changes introduce commits that make git bisect generally slower.

    Bisection search is log2(n) so doubling the number of commits should only add one more bisection step, yes?

    > Which might be awful if you also have some C code to recompile at every step of bisecting.

    That reminds me, I've got to try out ccache (https://ccache.dev/ ) for my project. My full compile is one minute, but the three files that take longest to compiler rarely change.

  • Ccache – a fast C/C++ compiler cache
    1 project | /r/patient_hackernews | 24 Nov 2022
    1 project | /r/hackernews | 24 Nov 2022
    9 projects | news.ycombinator.com | 22 Nov 2022
    I worked with the internals of this some 16 years ago, maintaining a customized version at Zeugma Systems. Some change of mine was reworked by someone and upstreamed:

    https://github.com/ccache/ccache/commit/e8354384f67bc733bea5...

What are some alternatives?

When comparing bazel-buildfarm and ccache you can also consider the following projects:

llama

sccache - Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.

gnu-parallel - A clone of GNU Parallel (git://git.savannah.gnu.org/parallel.git)

buildcache - A build cache

mainframer - Tool for remote builds. Sync project to remote machine, execute command, sync back.

Redis - Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps.

pyroscope-rs - Pyroscope Profiler for Rust. Profile your Rust applications.

linux-tkg - linux-tkg custom kernels

icecream - Distributed compiler with a central scheduler to share build load

rules_closure - Closure rules for Bazel

setup-gcc - GitHub action to set up GCC