$72 GRAYBYTE WORDPRESS FILE MANAGER $18

SERVER : in-mum-web1330.main-hosting.eu #1 SMP Mon Feb 10 22:45:17 UTC 2025
SERVER IP : 88.222.243.245 | ADMIN IP 216.73.216.215
OPTIONS : CRL = ON | WGT = ON | SDO = OFF | PKEX = OFF
DEACTIVATED : NONE

/opt/go/pkg/mod/github.com/hashicorp/go-msgpack@v0.5.3/codec/

HOME
Current File : /opt/go/pkg/mod/github.com/hashicorp/go-msgpack@v0.5.3/codec//ext_dep_test.go
// //+build ignore

// NOTE (Jeff Mitchell): I'm disabling this for now as this package never
// changes, but leaving this file active causes go mod to pull in some very
// ugly deps. This can be run manually if further changes are ever made to this
// lib.

// Copyright (c) 2012, 2013 Ugorji Nwoke. All rights reserved.
// Use of this source code is governed by a BSD-style license found in the LICENSE file.

package codec

/*

// This file includes benchmarks which have dependencies on 3rdparty
// packages (bson and vmihailenco/msgpack) which must be installed locally.
//
// To run the benchmarks including these 3rdparty packages, first
//   - Uncomment first line in this file (put // // in front of it)
//   - Get those packages:
//       go get github.com/vmihailenco/msgpack
//       go get labix.org/v2/mgo/bson
//   - Run:
//       go test -bi -bench=.

import (
	"testing"

	vmsgpack "gopkg.in/vmihailenco/msgpack.v2"
	"labix.org/v2/mgo/bson"
)

func init() {
	benchCheckers = append(benchCheckers,
		benchChecker{"v-msgpack", fnVMsgpackEncodeFn, fnVMsgpackDecodeFn},
		benchChecker{"bson", fnBsonEncodeFn, fnBsonDecodeFn},
	)
}

func fnVMsgpackEncodeFn(ts interface{}) ([]byte, error) {
	return vmsgpack.Marshal(ts)
}

func fnVMsgpackDecodeFn(buf []byte, ts interface{}) error {
	return vmsgpack.Unmarshal(buf, ts)
}

func fnBsonEncodeFn(ts interface{}) ([]byte, error) {
	return bson.Marshal(ts)
}

func fnBsonDecodeFn(buf []byte, ts interface{}) error {
	return bson.Unmarshal(buf, ts)
}

func Benchmark__Bson_______Encode(b *testing.B) {
	fnBenchmarkEncode(b, "bson", benchTs, fnBsonEncodeFn)
}

func Benchmark__Bson_______Decode(b *testing.B) {
	fnBenchmarkDecode(b, "bson", benchTs, fnBsonEncodeFn, fnBsonDecodeFn, fnBenchNewTs)
}

func Benchmark__VMsgpack___Encode(b *testing.B) {
	fnBenchmarkEncode(b, "v-msgpack", benchTs, fnVMsgpackEncodeFn)
}

func Benchmark__VMsgpack___Decode(b *testing.B) {
	fnBenchmarkDecode(b, "v-msgpack", benchTs, fnVMsgpackEncodeFn, fnVMsgpackDecodeFn, fnBenchNewTs)
}

func TestMsgpackPythonGenStreams(t *testing.T) {
	doTestMsgpackPythonGenStreams(t)
}

func TestMsgpackRpcSpecGoClientToPythonSvc(t *testing.T) {
	doTestMsgpackRpcSpecGoClientToPythonSvc(t)
}

func TestMsgpackRpcSpecPythonClientToGoSvc(t *testing.T) {
	doTestMsgpackRpcSpecPythonClientToGoSvc(t)
}
*/

Current_dir [ NOT WRITEABLE ] Document_root [ WRITEABLE ]


[ Back ]
NAME
SIZE
LAST TOUCH
USER
CAN-I?
FUNCTIONS
..
--
25 Jan 2024 4.43 PM
root / root
0555
0doc.go
4.843 KB
25 Jan 2024 4.43 PM
root / root
0444
README.md
6.803 KB
25 Jan 2024 4.43 PM
root / root
0444
bench_test.go
8.593 KB
25 Jan 2024 4.43 PM
root / root
0444
binc.go
16.972 KB
25 Jan 2024 4.43 PM
root / root
0444
codecs_test.go
27.341 KB
25 Jan 2024 4.43 PM
root / root
0444
decode.go
26.549 KB
25 Jan 2024 4.43 PM
root / root
0444
encode.go
23.561 KB
25 Jan 2024 4.43 PM
root / root
0444
ext_dep_test.go
2.267 KB
25 Jan 2024 4.43 PM
root / root
0444
helper.go
16.094 KB
25 Jan 2024 4.43 PM
root / root
0444
helper_internal.go
2.983 KB
25 Jan 2024 4.43 PM
root / root
0444
msgpack.go
20.946 KB
25 Jan 2024 4.43 PM
root / root
0444
msgpack_test.py
3.396 KB
25 Jan 2024 4.43 PM
root / root
0444
rpc.go
3.48 KB
25 Jan 2024 4.43 PM
root / root
0444
simple.go
11.657 KB
25 Jan 2024 4.43 PM
root / root
0444
time.go
6.05 KB
25 Jan 2024 4.43 PM
root / root
0444
z_helper_test.go
2.262 KB
25 Jan 2024 4.43 PM
root / root
0444

GRAYBYTE WORDPRESS FILE MANAGER @ 2026 CONTACT ME
Static GIF