open-risk / matrix2json

Benchmarks of matrix to JSON conversion performance in various languages

Home Page:https://www.openriskmanagement.com/representing-matrices-as-json-objects-part-1/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

matrix2json

Benchmarks of matrix to JSON conversion performance in various languages / packages

Background about the context, methodology etc. in these blog posts:

NB: Work in Progress

Package T_out T_in Size
jsonlite 19.23444 secs 25.10679 secs 238.9 MB
RJSONIO 19.62544 secs 23.94082 secs 238.9 MB
rjson 4.120749 secs 16.52509 sec 238.9 MB
numpy / json 5.80395 secs 5.51479 secs 238.9 MB
pandas.to_json 7.97321 secs 14.95067 secs 238.9 MB

Installation

C++ Benchmarks

If not already present, install the following:

Armadillo

  • sudo apt-get install libarmadillo-dev
  • Version 10 of armadillo is used

Eigen

  • sudo apt-get install libeigen3-dev
  • Version 3.4

About

Benchmarks of matrix to JSON conversion performance in various languages

https://www.openriskmanagement.com/representing-matrices-as-json-objects-part-1/

License:GNU General Public License v3.0


Languages

Language:Python 43.1%Language:C++ 27.6%Language:R 13.1%Language:Julia 8.8%Language:CMake 7.4%