sb_lower_bound VS zig

Compare sb_lower_bound vs zig and see what are their differences.

sb_lower_bound

Fastest Branchless Binary Search (by mh-dm)

zig

General-purpose programming language and toolchain for maintaining robust, optimal, and reusable software. (by ziglang)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
sb_lower_bound zig
8 818
14 30,946
- 3.7%
3.9 10.0
10 months ago 1 day ago
C++ Zig
- MIT License
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.

sb_lower_bound

Posts with mentions or reviews of sb_lower_bound. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-08-11.
  • Fastest Branchless Binary Search
    1 project | /r/hackernews | 13 Aug 2023
    1 project | /r/hypeurls | 12 Aug 2023
    14 projects | news.ycombinator.com | 11 Aug 2023
    Then you'll want to look at https://mhdm.dev/posts/sb_lower_bound/#prefetching

    100mb is large enough that the branchy version turns out to have a slight advantage, more due to quirks of x86 (speculative execution) rather than being better.

    1 project | news.ycombinator.com | 8 Aug 2023
    1 project | /r/programming | 6 Jul 2023
    2 projects | /r/cpp | 2 Jul 2023
    "very similar topic" is an understatement. Funnily enough the "implementation to perform the best on Apple M1 after all micro-optimizations are applied" in the Conclusion is equivalent in terms of the how many actual comparisons are made as with sb_lower_bound. Out of curiosity I've benchmarked the two and orlp lower_bound seems to perform slightly worse: ~39ns average (using gcc) vs ~33ns average of sb_lower_bound (using clang -cmov). I'm comparing best runs for both, usual disclaimer of tested on my machine.

zig

Posts with mentions or reviews of zig. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-05-08.

What are some alternatives?

When comparing sb_lower_bound and zig you can also consider the following projects:

ThinkingInSimd - An essay comparing performance implications of ignoring AVX acceleration

Nim - Nim is a statically typed compiled systems programming language. It combines successful concepts from mature languages like Python, Ada and Modula. Its design focuses on efficiency, expressiveness, and elegance (in that order of priority).

tigerbeetle - The distributed financial transactions database designed for mission critical safety and performance.

Odin - Odin Programming Language

optimization-manual - Contains the source code examples described in the "Intel® 64 and IA-32 Architectures Optimization Reference Manual"

v - Simple, fast, safe, compiled language for developing maintainable software. Compiles itself in <1s with zero library dependencies. Supports automatic C => V translation. https://vlang.io

amh-code - Complete implementations from "Algorithms for Modern Hardware"

rust - Empowering everyone to build reliable and efficient software.

go - The Go programming language

ssr-proxy-js - A Server-Side Rendering Proxy focused on customization and flexibility!