SimSIMD VS highway

Compare SimSIMD vs highway and see what are their differences.

SimSIMD

Up to 200x Faster Inner Products and Vector Similarity — for Python, JavaScript, Rust, and C, supporting f64, f32, f16 real & complex, i8, and binary vectors using SIMD for both x86 AVX2 & AVX-512 and Arm NEON & SVE 📐 (by ashvardanian)
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
SimSIMD highway
15 66
715 3,645
- 1.8%
9.6 9.8
22 days ago 6 days ago
C C++
Apache License 2.0 Apache License 2.0
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.

SimSIMD

Posts with mentions or reviews of SimSIMD. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-28.
  • Deep Learning in JavaScript
    11 projects | news.ycombinator.com | 28 Mar 2024
  • From slow to SIMD: A Go optimization story
    10 projects | news.ycombinator.com | 23 Jan 2024
    For other languages (including nodejs/bun/rust/python etc) you can have a look at SimSIMD which I have contributed to this year (made recompiled binaries for nodejs/bun part of the build process for x86_64 and arm64 on Mac and Linux, x86 and x86_64 on windows).

    [0] https://github.com/ashvardanian/SimSIMD

  • Python, C, Assembly – Faster Cosine Similarity
    5 projects | news.ycombinator.com | 18 Dec 2023
    Kahan floats are also commonly used in such cases, but I believe there is room for improvement without hitting those extremes. First of all, we should tune the epsilon here: https://github.com/ashvardanian/SimSIMD/blob/f8ff727dcddcd14...

    As for the 64-bit version, its harder, as the higher-precision `rsqrt` approximations are only available with "AVX512ER". I'm not sure which CPUs support that, but its not available on Sapphire Rapids.

  • Beating GCC 12 - 118x Speedup for Jensen Shannon Divergence via AVX-512FP16
    1 project | /r/programming | 26 Oct 2023
  • Show HN: Beating GCC 12 – 118x Speedup for Jensen Shannon D. Via AVX-512FP16
    1 project | news.ycombinator.com | 24 Oct 2023
  • SimSIMD v2: Vector Similarity Functions 3x-200x Faster than SciPy and NumPy
    1 project | /r/programming | 7 Oct 2023
  • Show HN: SimSIMD vs. SciPy: How AVX-512 and SVE make SIMD cleaner and ML faster
    16 projects | news.ycombinator.com | 7 Oct 2023
    I encourage one to merge into e.g. {NumPy, SciPy, }; are there PRs?

    Though SymPy.physics only yet supports X,Y,Z vectors and doesn't mention e.g. "jaccard"?, FWIW: https://docs.sympy.org/latest/modules/physics/vector/vectors... https://docs.sympy.org/latest/modules/physics/vector/fields.... #cfd

    include/simsimd/simsimd.h: https://github.com/ashvardanian/SimSIMD/blob/main/include/si...

    conda-forge maintainer docs > Switching BLAS implementation:

  • SimSIMD v2: 3-200x Faster Vector Similarity Functions than SciPy and NumPy
    1 project | /r/Python | 7 Oct 2023
    Hello, everybody! I was working on the next major release of USearch, and in the process, I decided to generalize its underlying library - SimSIMD. It does one very simple job but does it well - computing distances and similarities between high-dimensional embeddings standard in modern AI workloads.
  • Comparing Vectors 3-200x Faster than SciPy and NumPy
    1 project | /r/Python | 7 Oct 2023
  • Show HN: U)Search Images demo in 200 lines of Python
    3 projects | news.ycombinator.com | 7 Sep 2023
    Hey everyone! I am excited to share updates on four of my & my teams' open-source projects that take large-scale search systems to the next level: USearch, UForm, UCall, and StringZilla. These projects are designed to work seamlessly together, end-to-end—covering everything from indexing and AI to storage and networking. And yeah, they're optimized for x86 AVX2/512 and Arm NEON/SVE hardware.

    USearch [1]: Think of it as Meta FAISS on steroids. It's now quicker, supports clustering of any granularity, and offers multi-index lookups. Plus, it's got more native bindings than probably all other vector search engines combined: C++, C, Python, Java, JavaScript, Rust, Obj-C, Swift, C#, GoLang, and even slightly outdated bindings for Wolfram. Need to refresh that last one!

    UForm v2 [2]: Imagine a much smaller OpenAI CLIP but more efficient and trained on balanced multilingual datasets, with equal exposure to languages from English, Chinese, and Hindi to Arabic, Hebrew, and Armenian. UForm now supports 21 languages, is so tiny that you can run it in the browser, and outputs small 256-dimensional embeddings. Perfect for rapid image and video searches. It's already available on Hugging-Face as "unum-cloud/uform-vl-multilingual-v2".

    UCall [3]: It started as a FastAPI alternative focusing on JSON-RPC (instead of REST protocols), offering 70x the bandwidth and 1/50th the latency. It was good but not enough, so we've added REST and TLS support, broadening its appeal. I've merged that code, and it is yet to be tested. Early benchmarks suggest that we still hit the same 150'000-250'000 requests/s on a single CPU core in Python by reusing HTTPS connections.

    StringZilla [4]: This project lets you sift through multi-gigabyte or terabyte strings with minimal use of RAM and maximal use of SIMD and SWAR techniques.

    All these projects are engineered for scalability and efficiency, even on tight budgets. Our demo, for instance, works on hundreds of gigabytes of images using just a few gigabytes of RAM and no GPUs for AI inference. That is a toy example with a small, noisy dataset, and I look forward to showing a much larger setup. Interestingly, even this tiny setup illustrates issues common to UForm and much larger OpenAI CLIP models - the quality of Multi-Modal alignment [5]. It also shows how different/accurate the search results are across different languages. Synthetic benchmarks suggest massive improvements for some low-resource languages (like Armenian and Hebrew) and more popular ones (like Hindi and Arabic) [6]. Still, when we look at visual demos like this, I can see a long road ahead for us and the broader industry, making LLMs Multi-Modal in 2024 :)

    All of the projects and the demo code are available under an Apache license, so feel free to use them in your commercial projects :)

    PS: The demo looks much nicer with just Unsplash dataset of 25'000 images, but it's less representative of modern AI datasets, too small, and may not be the best way to honestly show our current weaknesses. The second dataset - Conceptual Captions - is much noisier, and quite ugly.

    [1]: https://github.com/unum-cloud/usearch

highway

Posts with mentions or reviews of highway. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-03-31.
  • Llamafile 0.7 Brings AVX-512 Support: 10x Faster Prompt Eval Times for AMD Zen 4
    3 projects | news.ycombinator.com | 31 Mar 2024
    The bf16 dot instruction replaces 6 instructions: https://github.com/google/highway/blob/master/hwy/ops/x86_12...
  • JPEG XL and the Pareto Front
    9 projects | news.ycombinator.com | 1 Mar 2024
    [0] for those interested in Highway.

    It's also mentioned in [1], which starts off

    > Today we're sharing open source code that can sort arrays of numbers about ten times as fast as the C++ std::sort, and outperforms state of the art architecture-specific algorithms, while being portable across all modern CPU architectures. Below we discuss how we achieved this.

    [0] https://github.com/google/highway

    [1] https://opensource.googleblog.com/2022/06/Vectorized%20and%2..., which has an associated paper at https://arxiv.org/pdf/2205.05982.pdf.

  • Gemma.cpp: lightweight, standalone C++ inference engine for Gemma models
    7 projects | news.ycombinator.com | 23 Feb 2024
    Thanks so much!

    Everyone working on this self-selected into contributing, so I think of it less as my team than ... a team?

    Specifically want to call out: Jan Wassenberg (author of https://github.com/google/highway) and I started gemma.cpp as a small project just a few months ago + Phil Culliton, Dan Zheng, and Paul Chang + of course the GDM Gemma team.

  • From slow to SIMD: A Go optimization story
    10 projects | news.ycombinator.com | 23 Jan 2024
    C++ users can enjoy Highway [1].

    [1] https://github.com/google/highway/

  • GDlog: A GPU-Accelerated Deductive Engine
    16 projects | news.ycombinator.com | 3 Dec 2023
  • Designing a SIMD Algorithm from Scratch
    3 projects | news.ycombinator.com | 28 Nov 2023
    At that point it is better to have some kind of DSL that should not be in the main language, because it would target a much lower level than a typical program. The best effort I've seen in this scene was Google's Highway [1] (not to be confused with HighwayHash) and I even once attempted to recreate it in Rust, but it is still distanced from my ideal.

    [1] https://github.com/google/highway

  • SIMD Everywhere Optimization from ARM Neon to RISC-V Vector Extensions
    6 projects | news.ycombinator.com | 29 Sep 2023
    Interesting, thanks for sharing :)

    At the time we open-sourced Highway, the standardization process had already started and there were some discussions.

    I'm curious why stdlib is the only path you see to default? Compare the activity level of https://github.com/VcDevel/std-simd vs https://github.com/google/highway. As to open-source usage, after years of std::experimental, I see <200 search hits [1], vs >400 for Highway [2], even after excluding several library users.

    But that aside, I'm not convinced standardization is the best path for a SIMD library. We and external users extend Highway on a weekly basis as new use cases arise. What if we deferred those changes to 3-monthly meetings, or had to wait for one meeting per WD, CD, (FCD), DIS, (FDIS) stage before it's standardized? Standardization seems more useful for rarely-changing things.

    1: https://sourcegraph.com/search?q=context:global+std::experim...

    2: https://sourcegraph.com/search?q=context:global+HWY_NAMESPAC...

  • Permuting Bits with GF2P8AFFINEQB
    1 project | news.ycombinator.com | 27 Sep 2023
    Thanks for the link. We were previously using GFNI for bit reversal and 8-bit shifts, and I just extended that to our 8-bit BroadcastSignBit (https://github.com/google/highway/pull/1784).
  • Six times faster than C
    4 projects | news.ycombinator.com | 6 Jul 2023
    You could study Google's Highway library [1].

    [1] https://github.com/google/highway

  • AMD EPYC 97x4 “Bergamo” CPUs: 128 Zen 4c CPU Cores for Servers, Shipping Now
    1 project | news.ycombinator.com | 24 Jun 2023
    Runtime feature detection need not be rare nor hard, it's a few dozen lines of boilerplate. You can even write your code just once: see https://github.com/google/highway#examples.

What are some alternatives?

When comparing SimSIMD and highway you can also consider the following projects:

kuzu - Embeddable property graph database management system built for query speed and scalability. Implements Cypher.

xsimd - C++ wrappers for SIMD intrinsics and parallelized, optimized mathematical functions (SSE, AVX, AVX512, NEON, SVE))

nsimd - Agenium Scale vectorization library for CPUs and GPUs

Vc - SIMD Vector Classes for C++

numpy-feedstock - A conda-smithy repository for numpy.

swup - Versatile and extensible page transition library for server-rendered websites 🎉

mkl_random-feedstock - A conda-smithy repository for mkl_random.

DirectXMath - DirectXMath is an all inline SIMD C++ linear algebra library for use in games and graphics apps

usearch - Fast Open-Source Search & Clustering engine × for Vectors & 🔜 Strings × in C++, C, Python, JavaScript, Rust, Java, Objective-C, Swift, C#, GoLang, and Wolfram 🔍

riscv-v-spec - Working draft of the proposed RISC-V V vector extension

xtensor-fftw - FFTW bindings for the xtensor C++14 multi-dimensional array library

jpeg-xl