{"id":15395143,"url":"https://github.com/orhun/rust-stdout-vs-stderr","last_synced_at":"2025-04-16T00:07:38.492Z","repository":{"id":216469077,"uuid":"739169225","full_name":"orhun/rust-stdout-vs-stderr","owner":"orhun","description":"Benchmarks for comparing the speed of stdout vs stderr \u0026 code snippets for my blog post.","archived":false,"fork":false,"pushed_at":"2024-12-04T18:36:15.000Z","size":193,"stargazers_count":15,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-16T00:07:29.060Z","etag":null,"topics":["comparison","io","rust","stderr","stderr-stream","stdout","stdout-stream"],"latest_commit_sha":null,"homepage":"https://blog.orhun.dev/stdout-vs-stderr","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orhun.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"orhun","patreon":"orhunp","custom":["https://www.buymeacoffee.com/orhun"]}},"created_at":"2024-01-04T23:48:16.000Z","updated_at":"2025-04-05T11:37:17.000Z","dependencies_parsed_at":"2024-01-15T21:14:29.280Z","dependency_job_id":"c4ff6f00-1528-4560-b722-56ddb6c7d77b","html_url":"https://github.com/orhun/rust-stdout-vs-stderr","commit_stats":{"total_commits":43,"total_committers":2,"mean_commits":21.5,"dds":0.4418604651162791,"last_synced_commit":"5e93882e07a068b5470525ee8b9a84e1f8022780"},"previous_names":["orhun/rust-stdout-vs-stderr"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Frust-stdout-vs-stderr","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Frust-stdout-vs-stderr/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Frust-stdout-vs-stderr/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orhun%2Frust-stdout-vs-stderr/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orhun","download_url":"https://codeload.github.com/orhun/rust-stdout-vs-stderr/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249173084,"owners_count":21224483,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["comparison","io","rust","stderr","stderr-stream","stdout","stdout-stream"],"created_at":"2024-10-01T15:26:08.443Z","updated_at":"2025-04-16T00:07:38.474Z","avatar_url":"https://github.com/orhun.png","language":"Rust","funding_links":["https://github.com/sponsors/orhun","https://patreon.com/orhunp","https://www.buymeacoffee.com/orhun"],"categories":[],"sub_categories":[],"readme":"# `stdout` vs `stderr` ⚔️\n\n✨ Read the blog post: [**https://blog.orhun.dev/stdout-vs-stderr**](https://blog.orhun.dev/stdout-vs-stderr)\n\n![stdout-vs-stderr-detailed](https://github.com/orhun/rust-stdout-vs-stderr/assets/24392180/5971ba46-62b6-4964-8096-532673983058)\n\nThis repository contains the following Rust scripts:\n\n- [`stdout-vs-stderr-all.rs`](./src/stdout-vs-stderr-all.rs) (**default**): Rendering comparison for stdout and stderr using unbuffered / line-buffered / block-buffered writes\n- [`simple-tui.rs`](./src/simple-tui.rs): A simple TUI application built with [Ratatui](https://ratatui.rs/) \u0026 [Crossterm](https://github.com/crossterm-rs/crossterm)\n- [`stdout-vs-stderr.rs`](./src/stdout-vs-stderr.rs): Measuring FPS for stdout and stderr\n- [`stdout-vs-stderr-profiler.rs`](./src/stdout-vs-stderr.rs): Profiling stdout and stderr\n  - Also see [`run-profiler.sh`](./run-profiler.sh)\n- [`linewriter.rs`](./src/writer/linewriter.rs): `LineWriter` example\n- [`bufwriter.rs`](./src/writer/bufwriter.rs): `BufWriter` example\n- [`block-buffered-stdout.rs`](./src/writer/block-buffered-stdout.rs): Stdout with `BufWriter`\n- [`raw-stdout-broken`](./src/unbuffered/raw-stdout-broken.rs): Broken example of unbuffered stdout\n  - [`raw-stdout-1`](./src/unbuffered/raw-stdout-1.rs): Unbuffered stdout\n  - [`raw-stdout-2`](./src/unbuffered/raw-stdout-2.rs): Unbuffered stdout (alternative)\n- [`snowfall.rs`](./src/bonus/snowfall.rs): Happy new year!\n\n## License\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg?style=flat\u0026logo=GitHub\u0026labelColor=1D272B\u0026color=819188\u0026logoColor=white)](./LICENSE-MIT)\n[![License: Apache 2.0](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat\u0026logo=GitHub\u0026labelColor=1D272B\u0026color=819188\u0026logoColor=white)](./LICENSE-APACHE)\n\nLicensed under either of [Apache License Version 2.0](./LICENSE-APACHE) or [The MIT License](./LICENSE-MIT) at your option.\n\n🦀 ノ( º \\_ º ノ) - respect crables!\n\n## Copyright\n\nCopyright © 2024, [Orhun Parmaksız](mailto:orhunparmaksiz@gmail.com)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forhun%2Frust-stdout-vs-stderr","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forhun%2Frust-stdout-vs-stderr","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forhun%2Frust-stdout-vs-stderr/lists"}