Giter VIP home page Giter VIP logo

go-sjson's Introduction

go-sjson

GoDoc

Fast and simple JSON parser for Go

Package sjson provides decoding of JSON Text as defined in ECMA-404. Sjson designed to be fast and simple, for now it supports only dynamic deserialization. Simple benchmark shows ~2x speedup against encoding/json standard parser.

	$ go test -bench=Sample\|Code -benchtime=5s
	BenchmarkSample_sjson    1000000              7582 ns/op          87.43 MB/s // Equivalent of our production JSON
	BenchmarkSample__json     300000             19579 ns/op          33.86 MB/s
	BenchmarkCode_sjson          300          28384877 ns/op          68.36 MB/s // JSON Text from the encoding/json package
	BenchmarkCode__json          100          60002297 ns/op          32.34 MB/s

Links

Some useful links.

Thanks

Development of the project was sponsored by CP Decision Limited as part of a project on processing statistical data.

Some ideas was borrowed from excellent Marc A. Lehmanns JSON::XS code.

License

Licensed in terms of MIT license (see https://github.com/vovkasm/go-sjson/blob/master/LICENSE.md file).

go-sjson's People

Contributors

vovkasm avatar

Stargazers

Maksim avatar  avatar Michael Samoglyadov avatar Dmitry Stoletoff avatar 逐日不二 avatar  avatar Mikhail Busyrev avatar Artem Teleshev avatar Yuval Kogman avatar Imran Hayder  avatar  avatar Evgeny Kulev avatar  avatar Dmitrij Koniajev avatar Dmitry Chusovitin avatar undiabler avatar Gregory Tereshko avatar Andrei Abakumov avatar Myroslav Rys avatar Anton Taraev avatar  avatar

Watchers

 avatar  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.