Simple filter to gather numbers in repeated text

RhysU1 pts0 comments

GitHub - rustyrussell/stats · GitHub

/" data-turbo-transient="true" />

Skip to content

Search or jump to...

Search code, repositories, users, issues, pull requests...

-->

Search

Clear

Search syntax tips

Provide feedback

--><br>We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Cancel

Submit feedback

Saved searches

Use saved searches to filter your results more quickly

-->

Name

Query

To see all available qualifiers, see our documentation.

Cancel

Create saved search

Sign in

/;ref_cta:Sign up;ref_loc:header logged out"}"<br>Sign up

Appearance settings

Resetting focus

You signed in with another tab or window. Reload to refresh your session.<br>You signed out in another tab or window. Reload to refresh your session.<br>You switched accounts on another tab or window. Reload to refresh your session.

Dismiss alert

{{ message }}

rustyrussell

stats

Public

Notifications<br>You must be signed in to change notification settings

Fork

Star<br>48

master

BranchesTags

Go to file

CodeOpen more actions menu

Folders and files<br>NameNameLast commit message<br>Last commit date<br>Latest commit

History<br>42 Commits<br>42 Commits

ccan

ccan

licenses

licenses

test

test

tools

tools

.gitignore

.gitignore

LICENSE

LICENSE

Makefile

Makefile

README

README

configure

configure

stats.c

stats.c

View all files

Repository files navigation

stats - simple filter to gather numbers in repeated text.

Ever written a little benchmark program to print out results, and run<br>it 100 times to see how much it varied? This filter finds identical<br>lines and collapses all the numbers into a range, average and standard<br>deviation; it can also print out all the numbers in CSV form for import<br>into spreadsheets, etc.

Example usage:

$ ./mybenchmark<br>Using CPUS 0 and 3<br>Guest: notified 156437, pinged 156251<br>Host: notified 156251, pinged 78219

$ for i in `seq 100`; do ./mybenchmark; done | stats<br>Using CPUS 0 and 3<br>Guest: notified 156437-156610(156548+/-40), pinged 156251<br>Host: notified 156251, pinged 78219-78305(78274+/-27)

Compilation notes:<br>1) You can use an external config.h, but a trivial program generates it<br>for you and is usually right.<br>2) The ccan/ directory modules are straight from the http://ccodearchive.net/<br>project, brought in using create-ccan-tree.

Good luck!<br>Rusty Russell.

About

No description, website, or topics provided.

Resources

Readme

License

View license

Uh oh!

There was an error while loading. Please reload this page.

Activity

Stars

48<br>stars

Watchers

watching

Forks

forks

Report repository

Releases

No releases published

Packages

Uh oh!

There was an error while loading. Please reload this page.

Contributors

Uh oh!

There was an error while loading. Please reload this page.

Languages

99.4%

Makefile<br>0.6%

You can’t perform that action at this time.

stats reload search filter numbers ccan

Related Articles