benchmarks: golang.org/x/benchmarks/json Index | Files

package json

import "golang.org/x/benchmarks/json"

JSON benchmark marshals and unmarshals ~2MB json string with a tree-like object hierarchy, in 4*GOMAXPROCS goroutines.

Index

Package Files

json.go json_data.go

type Node

type Node struct {
    Name     string  `json:"name"`
    Kids     []*Node `json:"kids"`
    CLWeight float64 `json:"cl_weight"`
    Touches  int     `json:"touches"`
    MinT     int64   `json:"min_t"`
    MaxT     int64   `json:"max_t"`
    MeanT    int64   `json:"mean_t"`
}

type Response

type Response struct {
    Tree     *Node  `json:"tree"`
    Username string `json:"username"`
}

Package json imports 7 packages (graph) and is imported by 1 packages. Updated 2 months ago. Refresh now. Tools for package owners.