Giter Site home page Giter Site logo

rrdlite's Introduction

Go (golang) for rrdtool(1.4.9)

一个轻量级的rrdtool工具包,线程安全,解除librrd依赖,只提供create,update,fetch,info

Installing

go get github.com/yubo/rrdlite

Benchmark

#enable mmap
$go test -bench=Add
#or
$go test -bench=.

...
#cgo CFLAGS: -std=c99 -DRRD_LITE -D_BSD_SOURCE -DHAVE_CONFIG_H -D_POSIX_SOURCE -DNUMVERS=1.4009
BenchmarkAdd-4            100000             49386 ns/op
BenchmarkUpdate-4         100000             19366 ns/op
BenchmarkFetch-4          100000             10956 ns/op

#cgo CFLAGS: -std=c99 -DRRD_LITE -D_BSD_SOURCE -DHAVE_CONFIG_H -D_POSIX_SOURCE -DNUMVERS=1.4009 -DUSE_STDIO=1
BenchmarkAdd-4            100000             56381 ns/op
BenchmarkUpdate-4         100000             21609 ns/op
BenchmarkFetch-4          100000             17339 ns/op

#cgo CFLAGS: -std=c99 -DRRD_LITE -D_BSD_SOURCE -DHAVE_CONFIG_H -D_POSIX_SOURCE -DNUMVERS=1.4009 -DHAVE_MMAP
BenchmarkAdd-4            100000             50000 ns/op
BenchmarkUpdate-4         100000             13741 ns/op
BenchmarkFetch-4          100000             11005 ns/op

Example

See rrd_test.go for an example of using this package.

rrdlite's People

Contributors

michalderkacz avatar yubo avatar hnakamur avatar vbatoufflet avatar caglar10ur avatar garyburd avatar jingzhaoyang avatar laiwei avatar

Stargazers

牧游人 avatar YZJClear avatar  avatar Guqiu avatar xuxiandi avatar Anti Zhou avatar  avatar Xiong-Jia.Le avatar 庞晓楠 avatar Earl avatar 邹文 avatar  avatar Dan Ryan avatar 11111111 avatar zhangyue avatar 祥子 avatar  avatar zht avatar nehcuoh avatar pyinx avatar Zhao Peng avatar Xiaofan Hu avatar letgo avatar ulricqin avatar yflau avatar  avatar

Watchers

 avatar James Cloos avatar nehcuoh avatar  avatar  avatar

rrdlite's Issues

Windows上能编译吗?

···

github.com/open-falcon/rrdlite

In file included from .\rrd_config.h:433:0,
from .\rrd_tool.h:17,
from .\rrd_create.c:12:
.\rrd_config_bottom.h:14:23: fatal error: features.h: No such file or directory
compilation terminated.
···

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.