All Projects → piotrmurach → benchmark-malloc

piotrmurach / benchmark-malloc

Licence: MIT License
Trace memory allocations and collect stats

Programming Languages

ruby
36898 projects - #4 most used programming language
shell
77523 projects

Projects that are alternatives of or similar to benchmark-malloc

S3 Benchmark
Measure Amazon S3's performance from any location.
Stars: ✭ 525 (+2816.67%)
Mutual labels:  benchmark, performance-analysis
autobench
Benchmark your application on CI
Stars: ✭ 16 (-11.11%)
Mutual labels:  benchmark, performance-analysis
IGUANA
IGUANA is a benchmark execution framework for querying HTTP endpoints and CLI Applications such as Triple Stores. Contact: [email protected]
Stars: ✭ 22 (+22.22%)
Mutual labels:  benchmark, performance-analysis
best
🏆 Delightful Benchmarking & Performance Testing
Stars: ✭ 73 (+305.56%)
Mutual labels:  benchmark, performance-analysis
Crossplatformdisktest
Windows, macOS and Android storage (HDD, SSD, RAM) speed testing/performance benchmarking app
Stars: ✭ 123 (+583.33%)
Mutual labels:  benchmark, performance-analysis
benchmark-trend
Measure performance trends of Ruby code
Stars: ✭ 60 (+233.33%)
Mutual labels:  rubygem, performance-analysis
Dbtester
Distributed database benchmark tester
Stars: ✭ 214 (+1088.89%)
Mutual labels:  benchmark, performance-analysis
serializer-benchmark
A PHP benchmark application to compare PHP serializer libraries
Stars: ✭ 14 (-22.22%)
Mutual labels:  benchmark, performance-analysis
kubernetes-iperf3
Simple wrapper around iperf3 to measure network bandwidth from all nodes of a Kubernetes cluster
Stars: ✭ 80 (+344.44%)
Mutual labels:  benchmark
workbook
simple framework for containing spreadsheet like data
Stars: ✭ 13 (-27.78%)
Mutual labels:  rubygem
JUnitPerf
API performance testing framework built using JUnit
Stars: ✭ 48 (+166.67%)
Mutual labels:  performance-analysis
micro bench
⏰ Dead simple, non intrusive, realtime benchmarks
Stars: ✭ 13 (-27.78%)
Mutual labels:  benchmark
tpch-spark
TPC-H queries in Apache Spark SQL using native DataFrames API
Stars: ✭ 63 (+250%)
Mutual labels:  benchmark
django-web-profiler
Django package to log request values such as device, IP address, user CPU time, system CPU time, No of queries, SQL time, no of cache calls, missing, setting data cache calls for a particular URL with a basic UI.
Stars: ✭ 76 (+322.22%)
Mutual labels:  performance-analysis
Filipino-Text-Benchmarks
Open-source benchmark datasets and pretrained transformer models in the Filipino language.
Stars: ✭ 22 (+22.22%)
Mutual labels:  benchmark
python-performance
Performance benchmarks of Python, Numpy, etc. vs. other languages such as Matlab, Julia, Fortran.
Stars: ✭ 24 (+33.33%)
Mutual labels:  benchmark
p3arsec
Parallel Patterns Implementation of PARSEC Benchmark Applications
Stars: ✭ 12 (-33.33%)
Mutual labels:  benchmark
benchbox
🧀 The Benchmark Testing Box
Stars: ✭ 19 (+5.56%)
Mutual labels:  benchmark
dgraph-bench
A benchmark program for dgraph.
Stars: ✭ 27 (+50%)
Mutual labels:  benchmark
KLUE
📖 Korean NLU Benchmark
Stars: ✭ 420 (+2233.33%)
Mutual labels:  benchmark

Benchmark::Malloc

Gem Version Actions CI Build status Maintainability Coverage Status Inline docs

Trace memory allocations and collect stats.

The Benchmark::Malloc is used by rspec-benchmark

Installation

Add this line to your application's Gemfile:

gem 'benchmark-malloc'

And then execute:

$ bundle

Or install it yourself as:

$ gem install benchmark-malloc

Usage

bench_malloc = Benchmark::Malloc.new

stats = bench_malloc.run { %w[foo bar baz].sort[1] }

stats.allocated.total_objects # => 3

stats.allocated.total_memory # => 120

API

start & stop

You can manually begin tracing memory allocations with the start method:

malloc = Benchmark::Malloc.new
malloc.start

Any Ruby code after the start invocation will count towards the stats:

%w[foo bar baz].sort[1]

Finally, to finish tracing call the stop method:

malloc.stop

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/piotrmurach/benchmark-malloc. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Benchmark::Malloc project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

Copyright

Copyright (c) 2019 Piotr Murach. See LICENSE for further details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].