MyGit

andrewrk/poop

Fork: 60 Star: 1135 (更新于 2024-12-18 13:02:04)

license: MIT

Language: Zig .

Performance Optimizer Observation Platform

最后发布版本: 0.5.0 ( 2024-09-07 03:02:03)

GitHub网址

Performance Optimizer Observation Platform

Stop flushing your performance down the drain.

Overview

This command line tool uses Linux's perf_event_open functionality to compare the performance of multiple commands with a colorful terminal user interface.

image

Usage

Usage: poop [options] <command1> ... <commandN>

Compares the performance of the provided commands.

Options:
 --duration <ms>    (default: 5000) how long to repeatedly sample each command

Building from Source

Tested with Zig 0.11.0-dev.3883+7166407d8.

zig build

Comparison with Hyperfine

Poop (so far) is brand new, whereas Hyperfine is a mature project with more configuration options and generally more polish.

However, poop does report peak memory usage as well as 5 other hardware counters, which I personally find useful when doing performance testing. Hey, maybe it will inspire the Hyperfine maintainers to add the extra data points!

Poop does not support running the commands in a shell. This has the upside of not including shell spawning noise in the data points collected, and the downside of not supporting strings inside the commands. Hyperfine by default runs the commands in a shell, with command line options to disable this.

Poop treats the first command as a reference and the subsequent ones relative to it, giving the user the choice of the meaning of the coloring of the deltas. Hyperfine by default prints the wall-clock-fastest command first, with a command line option to select a different reference command explicitly.

While Hyperfine is cross-platform, Poop is Linux-only.

最近版本更新:(数据更新于 2024-10-08 09:25:50)

2024-09-07 03:02:03 0.5.0

2023-06-22 12:01:04 0.4.0

2023-06-17 07:58:35 0.3.0

2023-06-14 09:32:54 0.2.0

andrewrk/poop同语言 Zig最近更新仓库

2024-11-29 19:55:48 oven-sh/bun

2024-09-03 04:34:45 tigerbeetle/tigerbeetle

2024-06-07 14:02:54 ziglang/zig

1970-01-01 00:00:00 zigcc/zig-cookbook

1970-01-01 00:00:00 kubkon/zig-wasi-tutorial