Giter Club home page Giter Club logo

1brc's Introduction

1brc

One Billion Row Challenge

Attempts at the 1 Billion Row Challenge.

To get started pixi run create_measurements to generate 1 billion city temperature pairs (approximately 13 GB).

Environments and tasks are managed with Pixi for sanity.

Rough results:

time (seconds) pixi run <task> description
776.58 s py_1_std_lib Just using the standard library (plus TQDM to keep track) and iterating over a file by lines
129.07 s py_2_pandas Pandas groupby and aggreggate
56.22 s py_3_dask Dask groupby and aggregate
error (locked up machine) py_4_polars_eager Using Polar's eager or immediate Pandas-like API caused my computer to lock up
130.02 s py_5_polars_lazy Polars has a lazy API, though it wasn't much faster (though lower memeory) than Pandas as it couldn't skip reading data.
9.27 s py_6_1_ibis_duckdb Ibis is a library that wrapps multiple ways of interacting with dataframes. The default way is to use DuckDB, which managed to read the file at around 1.5 GB/s!

1brc's People

Contributors

abkfenris avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.