Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
neilotoole committed Nov 10, 2023
1 parent 2106d10 commit 322bf81
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,10 @@ $ cat ./testdata/sakila_actor.json | jc

## Benchmarks

Note that this package contains `golang_bench_test.go`, which is inherited from `segmentj`.
But we're mainly interested in `benchmark_test.go:BenchmarkEncode`. The results below benchmark
the following:
Note that this package contains [`golang_bench_test.go`](./golang_bench_test.go), which
is inherited from `segmentj`. But here we're interested in [`benchmark_test.go:BenchmarkEncode`](./benchmark_test.go),
which benchmarks encoding performance versus other JSON encoder packages.
The results below benchmark the following:

- Stdlib [`encoding/json`](https://pkg.go.dev/encoding/json) (`go1.17.1`).
- [`segmentj`](https://github.com/segmentio/encoding): `v0.1.14`, which was when `jsoncolor` was forked. The newer `segmentj` code performs even better.
Expand Down

0 comments on commit 322bf81

Please sign in to comment.