Tech News
← Back to articles

Comparison of different C libraries providing generic containers capabilities

read original related products more articles

Introduction

The goal of this project is to compare several C libraries that provide some STL like capabilities of the C++ (container template) but are targeting classic C language. A STL like library for C is a C library providing several classic generic containers for the C language, like vector, list, sorted set, unordered_map, and so on.

A small benchmark to compare their performance is includes in the bench directory.

To do this, the same simple programs will be implemented by the libraries in the more straight-forward way possible, for different kind of containers and for different types. Then the API ergonomics of each programs can be compared each other according to the user taste.

Objective characteristics of the libraries are directly compared in this file.

Disclaimer

I am the main author of M*LIB, one of theses libraries.

This work is still a WIP.

Test Program

Rules

... continue reading