Code Monkey home page Code Monkey logo

benchmarks's Introduction

This subrepository holds benchmarks used by the Go performance dashboard:
http://build.golang.org/perf

All benchmarks are compiled into a single binary, to build it execute:

	$ go get golang.org/x/benchmarks/bench

When you run the binary without any flags, it prints comma-separated list of
available benchmarks:

	$ bench
	build,garbage,http,json

To run a benchmark execute:

	$ bench -bench=json

The binary has a number of flags to control benchmark duration, etc.
Run 'bench -help' to get the full list of flags.

When the benchmarking finishes, the binary prints results:

	GOPERF-METRIC:allocated=7872994
	GOPERF-METRIC:allocs=105483
	GOPERF-METRIC:cputime=196757680
	GOPERF-METRIC:gc-pause-one=5762425
	GOPERF-METRIC:gc-pause-total=2650715
	GOPERF-METRIC:rss=63655936
	GOPERF-METRIC:sys-gc=3407366
	GOPERF-METRIC:sys-heap=53575680
	GOPERF-METRIC:sys-other=5253938
	GOPERF-METRIC:sys-stack=229376
	GOPERF-METRIC:sys-total=62466360
	GOPERF-METRIC:time=206958902
	GOPERF-FILE:cpuprof=/tmp/19.prof.txt
	GOPERF-FILE:memprof=/tmp/20.prof.txt

Description of metrics is available at:
https://golang.org/wiki/PerfDashboard

A typical usage of the benchmarking binary from dashboard builder is:

	$ ./builder -filelock=builderlock -build=false -bench -benchtime=5s \
		-benchnum=5 -benchmem=1024 -benchcpu=1,2,4,8,16 \
		-benchaffinity=85,85,85,21845 windows-amd64-perf

To submit changes to this repository, see http://golang.org/doc/contribute.html.

benchmarks's People

Contributors

dvyukov avatar aclements avatar dsymonds avatar robpike avatar adg avatar davecheney avatar rakyll avatar rsc avatar josharian avatar nigeltao avatar pavel-paulau avatar

Watchers

Antony Ingram 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.