json-converter

command module
v0.0.0-...-c26a672 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 16, 2021 License: Apache-2.0 Imports: 10 Imported by: 0

README

json-converter

json-converter, is conversion package for json, and is 20 times slower than encoding/json.

Feature

  • decode from json string to go struct
  • encode from go struct to json string

Usage

git clone https://github.com/uh-zz/json-converter
cd json-converter
go build
./json-converter

Benchmark

  • goos: darwin
  • goarch: amd64
  • cpu: Intel(R) Core(TM) i5-8210Y CPU @ 1.60GHz
日付 パッケージ 実行した回数 1 回あたりの実行にかかった時間(ns/op) 1 回あたりのアロケーションで確保した容量(B/op) 1 回あたりのアロケーション回数(allocs/op)
2021/05/16 encoding/json 983222 1104 264 6
2021/05/16 json-converter 56949 20886 13258 185

Licence

Apache2

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL