Git Product home page Git Product logo

elixir-random-benchmarks's Introduction

Elixir Random Benchmarks

A collection of functions I've been using to benchmark various Elixir functionalities.

As part of building out Starship, I've been trying to use the fastest and most performant functions in Elixir. This project is what I use to benchmark random functions in order to choose the best and fastest functions.

Current Benchmarks

In random_benchmarks.ex you'll find a collection of functions that run Benchee Benchmarks on functions in the Elixir Core Language. These were just random functions I wanted to compare in the core of the language in order to choose the best function to use in my project.

In json_benchmarks.ex you'll find my benchmarking of the JSON libraries in Elixir that I have used in the past. I've seen on each of these libraries home pages that they are the fastest, so I decided to find out for myself. I'll try to update this regularly as the libraries get updated or as I find others that I use regularly.

Note: I used some random documents I found on my work computer to test inputs in JSON, so I cannot upload them to public GitHib repos. I will add the file sizes here so you can see the general size differences on the different inputs.

File Sizes:

  • tiny.json - 1,351 bytes (1 KB)
  • small.json - 4,333,998 bytes (4.3 MB)
  • medium.json - 21,347,852 bytes (21.3 MB)
  • large.json - 177,435,045 bytes (177.4 MB)

To see the output from the JSON Benchmarks, see the outputs directory

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.