Code Monkey home page Code Monkey logo

Data.Aeson benchmark of different ToJSON derivations

This is a small project that uses the criterion library to compare preformance of two different ways of deriving the ToJSON instances from Data.Aeson:

  1. deriving anyclass ToJSON
  2. instance ToJSON Foo where toEncoding = genericToEncoding defaultOptions

The documentation says that the second way is more performant for reasons, but the first way is kept as-is for backward compatibility. The results (see ./aeson-bench-results.xlsx) confirm this hypothesis, and further show that there is a significant difference between optimized and unoptimized code.

Fyodor Soikin's Projects

beam icon beam

A type-safe, non-TH Haskell SQL library and ORM

documentation icon documentation

Documentation for the PureScript language, compiler, and tools.

dustjs icon dustjs

Asynchronous templates for the browser and node.js

enzyme icon enzyme

JavaScript Testing utilities for React

erecruit.expr icon erecruit.expr

Juice your .NET Expression Trees for everything they've got!

fable-arch icon fable-arch

Framework for building applications based on the elm architecture.

fovel icon fovel

F# to ShovelSpec transpiler

happy-dom icon happy-dom

Happy DOM is a JavaScript implementation of a web browser without its graphical user interface. It includes many web standards from WHATWG DOM and HTML.

linq icon linq

TypeScript Implementation of Language-Integrated Query (LINQ) (ECMAScript 2015)

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.