mirror of
https://github.com/uutils/red.git
synced 2026-06-10 16:14:42 -07:00
Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f18ab518e4 | |||
| acd1d3f559 | |||
| 6cac408b7c | |||
| e02448acda | |||
| 20c9d2db54 |
@@ -0,0 +1,30 @@
|
||||
name: Benchmark
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
benchmark:
|
||||
name: Run benchmarks
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Rust
|
||||
uses: dtolnay/rust-toolchain@stable
|
||||
|
||||
- name: Build release
|
||||
working-directory: ./red
|
||||
run: cargo build --release --verbose
|
||||
|
||||
- name: Install hyperfine
|
||||
run: cargo install hyperfine
|
||||
|
||||
- name: Run benchmarks
|
||||
working-directory: ./red
|
||||
env:
|
||||
TERM: xterm-256color
|
||||
FORCE_COLOR: "1"
|
||||
run: bash scripts/benchmark.sh
|
||||
@@ -2,6 +2,7 @@
|
||||
|
||||
An experimental drop-in replacement for GNU sed, written in Rust.
|
||||
|
||||
[](https://crates.io/crates/red-sed)
|
||||
[](https://opensource.org/licenses/MIT)
|
||||
[](https://www.rust-lang.org/)
|
||||
[](https://github.com/vyavdoshenko/red/actions/workflows/ci.yml)
|
||||
|
||||
Generated
+1
-1
@@ -470,7 +470,7 @@ checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
|
||||
|
||||
[[package]]
|
||||
name = "red-sed"
|
||||
version = "1.0.1"
|
||||
version = "1.0.2"
|
||||
dependencies = [
|
||||
"anyhow",
|
||||
"assert_cmd",
|
||||
|
||||
+12
-1
@@ -1,9 +1,10 @@
|
||||
[package]
|
||||
name = "red-sed"
|
||||
version = "1.0.1"
|
||||
version = "1.0.2"
|
||||
edition = "2021"
|
||||
description = "An experimental drop-in replacement for GNU sed, written in Rust"
|
||||
license = "MIT"
|
||||
readme = "../README.md"
|
||||
repository = "https://github.com/vyavdoshenko/red"
|
||||
keywords = ["sed", "text-processing", "cli", "unix"]
|
||||
categories = ["command-line-utilities", "text-processing"]
|
||||
@@ -40,3 +41,13 @@ assert_cmd = "2.0"
|
||||
predicates = "3.1"
|
||||
tempfile = "3.10"
|
||||
assert_fs = "1.1"
|
||||
|
||||
[profile.release]
|
||||
opt-level = 3
|
||||
debug = "none"
|
||||
strip = "symbols"
|
||||
debug-assertions = false
|
||||
lto = "fat"
|
||||
panic = "abort"
|
||||
incremental = false
|
||||
codegen-units = 1
|
||||
|
||||
Reference in New Issue
Block a user