Git Product home page Git Product logo

tacho's Introduction

Tacho

A Prometheus-focused metrics library for Future-aware Rust applications.

  • Inspired by finagle-stats.
  • Supports Prometheus-style labels and formatting.
  • Supports scoped.
  • Future-aware timing histograms.
  • Thread-safe.

License

Copyright 2017, Buoyant Inc. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use these files except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

tacho's People

Contributors

olix0r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

tacho's Issues

Trimming down time to process work items

In an attempt to fix linkerd/linkerd-tcp#35 I'm benchmarking master vs ver/synchro-system (using time cargo run --release --example multithread | tee output.txt and want to share some numbers.

ver/synchro-system output (this is the last report from the metrics reporter)

metrics_count 5
loop_iters_count{role="worker"} 1000000000
loop_iters_curr{role="worker"} 999999999
total_time_ms{role="worker"} 654672
heartbeats{role="heartbeat"} 653
loop_time_us{stat="count", role="worker"} 1086186
loop_time_us{stat="mean", role="worker"} 0.0055248364460598835
loop_time_us{stat="min", role="worker"} 0
loop_time_us{stat="max", role="worker"} 414
loop_time_us{stat="stddev", role="worker"} 0.42562936784848004
loop_time_us{stat="p50", role="worker"} 0
loop_time_us{stat="p90", role="worker"} 0
loop_time_us{stat="p95", role="worker"} 0
loop_time_us{stat="p99", role="worker"} 0
loop_time_us{stat="p999", role="worker"} 0
loop_time_us{stat="p9999", role="worker"} 0

real	10m54.844s
user	8m5.564s
sys	2m49.460s

master output. (note our last report doesn't show the last batch of items being processed)

metrics_count 4
loop_iters_count{role="worker"} 999826348
loop_iters_curr{role="worker"} 999826347
heartbeats{role="heartbeat"} 5377
loop_time_us{stat="count", role="worker"} 374274
loop_time_us{stat="mean", role="worker"} 1.7634861091072316
loop_time_us{stat="min", role="worker"} 0
loop_time_us{stat="max", role="worker"} 137
loop_time_us{stat="stddev", role="worker"} 2.118960934392008
loop_time_us{stat="p50", role="worker"} 0
loop_time_us{stat="p90", role="worker"} 0
loop_time_us{stat="p95", role="worker"} 0
loop_time_us{stat="p99", role="worker"} 0
loop_time_us{stat="p999", role="worker"} 0
loop_time_us{stat="p9999", role="worker"} 0

real	89m39.084s
user	102m42.164s
sys	63m15.424s

The example in master is 9x slower than the version in very/synchro-system. I'll build some flame graphs so compare the two.

Can we work together

github.com/posix4e/rust-metrics <- I am currently working on getting this integrated into tokio itself. Anyway we can join forces @durch should be able to help develope as well.

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.