Skip to content

Commit

Permalink
0.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sttk committed Feb 25, 2024
1 parent 632a624 commit 01d6cf3
Show file tree
Hide file tree
Showing 3 changed files with 74 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "stringcase"
version = "0.1.1"
version = "0.2.0"
authors = ["Takayuki Sato <sttk.xslet@gmail.com>"]
edition = "2021"
rust-version = "1.56.1"
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ In `Cargo.toml`, write this crate as a dependency.

```toml
[dependencies]
stringcase = "0.1.1"
stringcase = "0.2.0"
```

## Usage
Expand Down Expand Up @@ -69,7 +69,7 @@ See the file LICENSE in this distribution for more details.


[repo-url]: https://github.com/sttk/stringcase-rust
[crateio-img]: https://img.shields.io/badge/crate.io-ver.0.1.1-fc8d62?logo=rust
[crateio-img]: https://img.shields.io/badge/crate.io-ver.0.2.0-fc8d62?logo=rust
[crateio-url]: https://crates.io/crates/stringcase
[docrs-img]: https://img.shields.io/badge/doc.rs-stringcase-66c2a5?logo=docs.rs
[docrs-url]: https://docs.rs/stringcase
Expand Down
73 changes: 71 additions & 2 deletions benches/benchmark.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,73 @@
## v0.1.1
## 0.2.0

```
% ./build.sh bench
running 248 tests
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 88/248
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii 176/248
iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii
test result: ok. 0 passed; 0 failed; 248 ignored; 0 measured; 0 filtered out; finished in 0.00s
running 3 tests
test bench_camel_case ... bench: 78 ns/iter (+/- 3)
test bench_camel_case_with_keep ... bench: 88 ns/iter (+/- 6)
test bench_camel_case_with_sep ... bench: 149 ns/iter (+/- 12)
test result: ok. 0 passed; 0 failed; 0 ignored; 3 measured; 0 filtered out; finished in 0.91s
running 3 tests
test bench_cobol_case ... bench: 108 ns/iter (+/- 21)
test bench_cobol_case_with_keep ... bench: 103 ns/iter (+/- 8)
test bench_cobol_case_with_sep ... bench: 146 ns/iter (+/- 12)
test result: ok. 0 passed; 0 failed; 0 ignored; 3 measured; 0 filtered out; finished in 0.94s
running 3 tests
test bench_kebab_case ... bench: 82 ns/iter (+/- 24)
test bench_kebab_case_with_keep ... bench: 87 ns/iter (+/- 2)
test bench_kebab_case_with_sep ... bench: 155 ns/iter (+/- 12)
test result: ok. 0 passed; 0 failed; 0 ignored; 3 measured; 0 filtered out; finished in 9.63s
running 3 tests
test bench_macro_case ... bench: 78 ns/iter (+/- 4)
test bench_macro_case_with_keep ... bench: 90 ns/iter (+/- 2)
test bench_macro_case_with_sep ... bench: 144 ns/iter (+/- 8)
test result: ok. 0 passed; 0 failed; 0 ignored; 3 measured; 0 filtered out; finished in 9.58s
running 3 tests
test bench_pascal_case ... bench: 77 ns/iter (+/- 3)
test bench_pascal_case_with_keep ... bench: 93 ns/iter (+/- 12)
test bench_pascal_case_with_sep ... bench: 145 ns/iter (+/- 9)
test result: ok. 0 passed; 0 failed; 0 ignored; 3 measured; 0 filtered out; finished in 4.26s
running 3 tests
test bench_snake_case ... bench: 80 ns/iter (+/- 7)
test bench_snake_case_with_keep ... bench: 89 ns/iter (+/- 27)
test bench_snake_case_with_sep ... bench: 151 ns/iter (+/- 11)
test result: ok. 0 passed; 0 failed; 0 ignored; 3 measured; 0 filtered out; finished in 0.78s
running 3 tests
test bench_train_case ... bench: 82 ns/iter (+/- 6)
test bench_train_case_with_keep ... bench: 86 ns/iter (+/- 8)
test bench_train_case_with_sep ... bench: 142 ns/iter (+/- 14)
test result: ok. 0 passed; 0 failed; 0 ignored; 3 measured; 0 filtered out; finished in 1.40s
```


## 0.1.1

```
% ./build.sh bench
Expand Down Expand Up @@ -66,7 +135,7 @@ test bench_train_case_with_sep ... bench: 134 ns/iter (+/- 8)
test result: ok. 0 passed; 0 failed; 0 ignored; 3 measured; 0 filtered out; finished in 10.44s
```

## v0.1.0
## 0.1.0

```
% ./build.sh bench
Expand Down

0 comments on commit 01d6cf3

Please sign in to comment.