pretable

Crates.iopretable
lib.rspretable
version0.4.2
sourcesrc
created_at2018-06-15 02:26:00.673422
updated_at2023-05-20 15:19:14.92945
descriptionshow pretty table
homepage
repositoryhttps://github.com/ryota-sakamoto/pretable
max_upload_size
id70184
size18,667
Ryota Sakamoto (ryota-sakamoto)

documentation

https://docs.rs/pretable

README

pretable

test

You can create pretty table as follows.

+--------------+----------------+--------+
| NAME         |     FORMAL     | HEIGHT |
+--------------+----------------+--------+
| Everest      |  Chomolungma   |  8848m |
| K2           | Karakorum No.2 |  8611m |
| Kanchenjunga |                |  8505m |
+--------------+----------------+--------+

benchmark

$ cargo +nightly bench --bench bench
    Finished bench [optimized] target(s) in 0.00s
     Running benches/bench.rs (target/release/deps/bench-2f3d06edc693d389)

running 4 tests
test bench_output_100    ... bench:      20,188 ns/iter (+/- 1,280)
test bench_output_1000   ... bench:     185,939 ns/iter (+/- 15,162)
test bench_output_10000  ... bench:   2,276,584 ns/iter (+/- 697,180)
test bench_output_100000 ... bench:  23,073,557 ns/iter (+/- 2,902,075)

test result: ok. 0 passed; 0 failed; 0 ignored; 4 measured; 0 filtered out; finished in 14.92s
Commit count: 63

cargo fmt