diff --git a/dev/CODE_OF_CONDUCT.html b/dev/CODE_OF_CONDUCT.html index f153e4c8..dfba5936 100644 --- a/dev/CODE_OF_CONDUCT.html +++ b/dev/CODE_OF_CONDUCT.html @@ -7,7 +7,7 @@ cli - 3.6.3.9000 + 3.6.3.9001
#> # A tibble: 3 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 ansi 44.9µs 48.4µs 20342. 99.3KB 18.8
-#> 2 plain 45.3µs 48.6µs 20255. 0B 19.5
-#> 3 base 11.5µs 12.6µs 78117. 48.4KB 15.6
+#> 1 ansi 45.2µs 48.6µs 20344. 99.3KB 19.0
+#> 2 plain 45.8µs 49.1µs 20029. 0B 19.9
+#> 3 base 11.6µs 12.9µs 75814. 48.4KB 22.8
bench::mark(
ansi = ansi_align(ansi, width = 20, align = "right"),
@@ -161,9 +162,9 @@
#> # A tibble: 3 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 ansi 47.4µs 51µs 19332. 0B 21.2
-#> 2 plain 46.2µs 49.6µs 19831. 0B 21.2
-#> 3 base 13.5µs 14.5µs 67638. 0B 27.1
+#> 1 ansi 47.6µs 50.9µs 19380. 0B 21.2
+#> 2 plain 47.5µs 50.7µs 19388. 0B 21.5
+#> 3 base 13.5µs 15µs 65374. 0B 19.6
#> # A tibble: 3 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 ansi 109.47µs 115.14µs 8549. 75.06KB 14.6
-#> 2 plain 87.61µs 91.7µs 10724. 8.73KB 14.6
-#> 3 base 1.89µs 2.02µs 479448. 0B 47.9
+#> 1 ansi 111.03µs 116.4µs 8389. 75.07KB 16.8
+#> 2 plain 88.52µs 93.6µs 10532. 8.73KB 12.5
+#> 3 base 1.87µs 2µs 479280. 0B 47.9
#> # A tibble: 2 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 ansi 329µs 347µs 2829. 33.17KB 19.2
-#> 2 plain 325µs 341µs 2897. 1.09KB 19.1
+#> 1 ansi 325µs 346µs 2862. 33.17KB 19.2
+#> 2 plain 326µs 348µs 2830. 1.09KB 19.3
#> # A tibble: 12 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli_ansi 5.68µs 6.21µs 156325. 9.2KB 31.3
-#> 2 fansi_ansi 30.66µs 33.27µs 29479. 4.18KB 23.6
-#> 3 cli_plain 5.73µs 6.23µs 157343. 0B 31.5
-#> 4 fansi_plain 30.25µs 32.79µs 29940. 688B 24.0
-#> 5 cli_vec_ansi 6.95µs 7.4µs 132854. 448B 13.3
-#> 6 fansi_vec_ansi 39.28µs 41.13µs 23959. 5.02KB 19.2
-#> 7 cli_vec_plain 7.49µs 7.88µs 124659. 448B 24.9
-#> 8 fansi_vec_plain 38.41µs 40.19µs 24486. 5.02KB 19.6
-#> 9 cli_txt_ansi 5.68µs 6.04µs 160891. 0B 32.2
-#> 10 fansi_txt_ansi 30.49µs 32.22µs 30602. 688B 24.5
-#> 11 cli_txt_plain 6.53µs 6.89µs 142730. 0B 14.3
-#> 12 fansi_txt_plain 38.52µs 40.55µs 24347. 5.02KB 19.5
+#> 1 cli_ansi 5.77µs 6.3µs 154965. 9.2KB 31.0
+#> 2 fansi_ansi 30.72µs 33.43µs 29013. 4.18KB 23.2
+#> 3 cli_plain 5.73µs 6.23µs 157159. 0B 15.7
+#> 4 fansi_plain 30.96µs 33.87µs 28615. 688B 22.9
+#> 5 cli_vec_ansi 6.97µs 7.38µs 133092. 448B 26.6
+#> 6 fansi_vec_ansi 39.94µs 41.62µs 23721. 5.02KB 19.0
+#> 7 cli_vec_plain 7.58µs 8.12µs 121353. 448B 24.3
+#> 8 fansi_vec_plain 38.94µs 40.88µs 24062. 5.02KB 19.3
+#> 9 cli_txt_ansi 5.73µs 6.09µs 161666. 0B 16.2
+#> 10 fansi_txt_ansi 30.62µs 32.62µs 30237. 688B 24.2
+#> 11 cli_txt_plain 6.58µs 7.06µs 138482. 0B 27.7
+#> 12 fansi_txt_plain 38.96µs 41.12µs 24012. 5.02KB 19.2
#> # A tibble: 2 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli 62.8µs 64.1µs 15496. 29.5KB 8.15
-#> 2 fansi 123.2µs 125.6µs 7888. 55.3KB 8.21
+#> 1 cli 62.5µs 64.6µs 15348. 29.5KB 8.20
+#> 2 fansi 122.2µs 124.9µs 7930. 55.3KB 8.21
#> # A tibble: 18 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli_ansi 6.87µs 7.43µs 132334. 0B 26.5
-#> 2 fansi_ansi 90.45µs 94.61µs 10375. 31.85KB 16.7
-#> 3 base_ansi 911.07ns 952.04ns 1003358. 0B 0
-#> 4 cli_plain 6.87µs 7.45µs 132233. 0B 26.5
-#> 5 fansi_plain 90.03µs 93.69µs 10532. 688B 16.7
-#> 6 base_plain 851ns 891.97ns 1075239. 0B 0
-#> 7 cli_vec_ansi 28.23µs 29.08µs 34033. 448B 6.81
-#> 8 fansi_vec_ansi 109.78µs 114.65µs 8613. 5.02KB 12.5
-#> 9 base_vec_ansi 13.53µs 13.62µs 73006. 448B 0
-#> 10 cli_vec_plain 26.62µs 27.36µs 35847. 448B 7.17
-#> 11 fansi_vec_plain 101.1µs 104.88µs 9403. 5.02KB 14.7
-#> 12 base_vec_plain 8.09µs 8.15µs 121311. 448B 12.1
-#> 13 cli_txt_ansi 29.22µs 30.03µs 33008. 0B 3.30
-#> 14 fansi_txt_ansi 103.18µs 107.12µs 9213. 688B 14.6
-#> 15 base_txt_ansi 13µs 13.05µs 75921. 0B 7.59
-#> 16 cli_txt_plain 26.4µs 27.05µs 36242. 0B 3.62
-#> 17 fansi_txt_plain 92.47µs 96.56µs 10166. 688B 16.7
-#> 18 base_txt_plain 7.71µs 8.23µs 122705. 0B 0
+#> 1 cli_ansi 6.93µs 7.52µs 130781. 0B 13.1
+#> 2 fansi_ansi 90.95µs 95.52µs 10333. 31.85KB 16.8
+#> 3 base_ansi 900.94ns 941.92ns 1006742. 0B 0
+#> 4 cli_plain 6.84µs 7.31µs 134336. 0B 26.9
+#> 5 fansi_plain 90.37µs 94.97µs 10341. 688B 16.9
+#> 6 base_plain 840.87ns 880.91ns 1062787. 0B 0
+#> 7 cli_vec_ansi 28.21µs 29.16µs 33959. 448B 6.79
+#> 8 fansi_vec_ansi 111.41µs 115.92µs 8524. 5.02KB 12.5
+#> 9 base_vec_ansi 13.52µs 13.64µs 72493. 448B 7.25
+#> 10 cli_vec_plain 26.7µs 27.43µs 36116. 448B 3.61
+#> 11 fansi_vec_plain 101.81µs 106.25µs 9254. 5.02KB 14.7
+#> 12 base_vec_plain 8.05µs 8.18µs 120577. 448B 12.1
+#> 13 cli_txt_ansi 28.21µs 29.14µs 34004. 0B 3.40
+#> 14 fansi_txt_ansi 103.08µs 108.01µs 9142. 688B 14.6
+#> 15 base_txt_ansi 12.99µs 13.04µs 75776. 0B 7.58
+#> 16 cli_txt_plain 26.32µs 26.94µs 36791. 0B 3.68
+#> 17 fansi_txt_plain 92.7µs 97.45µs 10111. 688B 16.8
+#> 18 base_txt_plain 7.98µs 8.24µs 116230. 0B 0
bench::mark(
cli_ansi = ansi_nchar(ansi, type = "width"),
@@ -324,24 +325,24 @@
#> # A tibble: 18 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli_ansi 8.6µs 9.23µs 105710. 0B 21.1
-#> 2 fansi_ansi 91.24µs 95.66µs 10319. 688B 16.7
-#> 3 base_ansi 1.22µs 1.27µs 758634. 0B 0
-#> 4 cli_plain 8.59µs 9.25µs 106181. 0B 21.2
-#> 5 fansi_plain 90.83µs 94.78µs 10274. 688B 16.7
-#> 6 base_plain 1µs 1.05µs 903573. 0B 90.4
-#> 7 cli_vec_ansi 34.22µs 34.96µs 28404. 448B 5.68
-#> 8 fansi_vec_ansi 116.82µs 120.27µs 8198. 5.02KB 12.4
-#> 9 base_vec_ansi 38.81µs 38.97µs 25424. 448B 0
-#> 10 cli_vec_plain 33.36µs 34.04µs 29093. 448B 8.73
-#> 11 fansi_vec_plain 106.56µs 110.68µs 8925. 5.02KB 12.5
-#> 12 base_vec_plain 20.03µs 20.13µs 49388. 448B 4.94
-#> 13 cli_txt_ansi 36.01µs 36.79µs 26972. 0B 5.40
-#> 14 fansi_txt_ansi 109.48µs 113.99µs 8670. 688B 12.5
-#> 15 base_txt_ansi 41.49µs 41.74µs 23641. 0B 2.36
-#> 16 cli_txt_plain 33.17µs 33.94µs 29255. 0B 5.85
-#> 17 fansi_txt_plain 98.57µs 102.56µs 9618. 688B 14.5
-#> 18 base_txt_plain 21.84µs 22µs 45187. 0B 4.52
+#> 1 cli_ansi 8.6µs 9.27µs 106077. 0B 21.2
+#> 2 fansi_ansi 91.46µs 95.44µs 10335. 688B 16.8
+#> 3 base_ansi 1.21µs 1.25µs 756633. 0B 0
+#> 4 cli_plain 8.55µs 9.31µs 105429. 0B 21.1
+#> 5 fansi_plain 90.87µs 95.09µs 10374. 688B 16.8
+#> 6 base_plain 1.02µs 1.06µs 885930. 0B 88.6
+#> 7 cli_vec_ansi 34.21µs 35.03µs 28091. 448B 5.62
+#> 8 fansi_vec_ansi 117.46µs 121.04µs 8148. 5.02KB 12.5
+#> 9 base_vec_ansi 38.81µs 39.2µs 25371. 448B 0
+#> 10 cli_vec_plain 33.4µs 34.14µs 28934. 448B 8.68
+#> 11 fansi_vec_plain 107.69µs 111.18µs 8868. 5.02KB 12.5
+#> 12 base_vec_plain 20.01µs 20.14µs 48509. 448B 4.85
+#> 13 cli_txt_ansi 34.67µs 35.31µs 28097. 0B 5.62
+#> 14 fansi_txt_ansi 108.88µs 113.81µs 8677. 688B 12.5
+#> 15 base_txt_ansi 41.49µs 41.79µs 23815. 0B 2.38
+#> 16 cli_txt_plain 33.17µs 33.88µs 29256. 0B 5.85
+#> 17 fansi_txt_plain 98.66µs 103.34µs 9519. 688B 14.6
+#> 18 base_txt_plain 21.83µs 22.01µs 45177. 0B 0
#> # A tibble: 6 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli_ansi 6.87µs 7.45µs 132097. 0B 13.2
-#> 2 cli_plain 6.32µs 6.81µs 144472. 0B 28.9
-#> 3 cli_vec_ansi 38.96µs 39.81µs 24591. 848B 4.92
-#> 4 cli_vec_plain 10.27µs 10.81µs 91434. 848B 9.14
-#> 5 cli_txt_ansi 37.18µs 38.07µs 26069. 0B 5.21
-#> 6 cli_txt_plain 7.22µs 7.75µs 127231. 0B 12.7
+#> 1 cli_ansi 7.05µs 7.61µs 129315. 0B 12.9
+#> 2 cli_plain 6.42µs 6.99µs 140481. 0B 28.1
+#> 3 cli_vec_ansi 39.12µs 39.95µs 24815. 848B 4.96
+#> 4 cli_vec_plain 10.29µs 10.85µs 90827. 848B 9.08
+#> 5 cli_txt_ansi 36.91µs 37.73µs 26223. 0B 5.25
+#> 6 cli_txt_plain 7.28µs 7.84µs 125025. 0B 12.5
#> # A tibble: 12 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli_ansi 11.7µs 12.5µs 78576. 0B 23.6
-#> 2 fansi_ansi 28.3µs 29.9µs 32914. 688B 23.1
-#> 3 cli_plain 11.4µs 12.2µs 80961. 0B 24.3
-#> 4 fansi_plain 27.5µs 29µs 33540. 688B 23.5
-#> 5 cli_vec_ansi 20.2µs 21.2µs 46597. 848B 14.0
-#> 6 fansi_vec_ansi 52.8µs 55.3µs 17874. 5.41KB 14.7
-#> 7 cli_vec_plain 14.1µs 14.8µs 66555. 848B 20.0
-#> 8 fansi_vec_plain 36.4µs 38.2µs 25783. 4.59KB 20.6
-#> 9 cli_txt_ansi 20.2µs 20.9µs 47196. 0B 14.2
-#> 10 fansi_txt_ansi 43.9µs 45.5µs 21526. 5.12KB 15.1
-#> 11 cli_txt_plain 12.4µs 13µs 75539. 0B 30.2
-#> 12 fansi_txt_plain 28.8µs 30.5µs 32192. 688B 22.6
+#> 1 cli_ansi 11.9µs 12.6µs 78230. 0B 23.5
+#> 2 fansi_ansi 28.7µs 30.2µs 32603. 688B 22.8
+#> 3 cli_plain 11.7µs 12.5µs 78844. 0B 31.6
+#> 4 fansi_plain 28.5µs 30.2µs 32397. 688B 22.7
+#> 5 cli_vec_ansi 20.3µs 21.2µs 46541. 848B 14.0
+#> 6 fansi_vec_ansi 54.2µs 56.5µs 17458. 5.41KB 14.8
+#> 7 cli_vec_plain 14.3µs 15.1µs 64971. 848B 19.5
+#> 8 fansi_vec_plain 36.7µs 38.9µs 25353. 4.59KB 17.8
+#> 9 cli_txt_ansi 19.9µs 21µs 47046. 0B 14.1
+#> 10 fansi_txt_ansi 44.2µs 45.9µs 21361. 5.12KB 17.1
+#> 11 cli_txt_plain 12.5µs 13.3µs 74322. 0B 22.3
+#> 12 fansi_txt_plain 29.3µs 31µs 31690. 688B 25.4
#> # A tibble: 18 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli_ansi 147.07µs 152.26µs 6480. 104.34KB 19.0
-#> 2 fansi_ansi 124.04µs 129.26µs 7585. 102.13KB 19.4
-#> 3 base_ansi 3.95µs 4.41µs 218588. 224B 21.9
-#> 4 cli_plain 143.27µs 148.8µs 6625. 8.09KB 16.7
-#> 5 fansi_plain 122.83µs 127.45µs 7699. 9.62KB 19.0
-#> 6 base_plain 3.56µs 3.8µs 258911. 0B 25.9
-#> 7 cli_vec_ansi 7.33ms 7.5ms 133. 823.77KB 25.1
-#> 8 fansi_vec_ansi 1.01ms 1.05ms 928. 846.81KB 19.6
-#> 9 base_vec_ansi 154.6µs 159.53µs 6137. 22.7KB 2.04
-#> 10 cli_vec_plain 7.25ms 7.4ms 134. 823.77KB 25.2
-#> 11 fansi_vec_plain 960.07µs 1ms 989. 845.98KB 19.7
-#> 12 base_vec_plain 108.39µs 111.82µs 8824. 848B 4.11
-#> 13 cli_txt_ansi 3.31ms 3.37ms 296. 63.6KB 0
-#> 14 fansi_txt_ansi 1.54ms 1.55ms 640. 35.05KB 2.02
-#> 15 base_txt_ansi 136.21µs 144.52µs 6926. 18.47KB 2.02
-#> 16 cli_txt_plain 2.38ms 2.41ms 412. 63.6KB 0
-#> 17 fansi_txt_plain 512.25µs 542.61µs 1843. 30.6KB 6.16
-#> 18 base_txt_plain 90.07µs 91.69µs 10744. 11.05KB 2.02
+#> 1 cli_ansi 147.72µs 153.12µs 6446. 104.34KB 16.8
+#> 2 fansi_ansi 127.35µs 132.91µs 7376. 102.13KB 22.3
+#> 3 base_ansi 4.17µs 4.45µs 222265. 224B 0
+#> 4 cli_plain 145.72µs 150.48µs 6562. 8.09KB 19.0
+#> 5 fansi_plain 122.91µs 128.23µs 7705. 9.62KB 19.0
+#> 6 base_plain 3.69µs 3.96µs 248600. 0B 24.9
+#> 7 cli_vec_ansi 7.43ms 7.53ms 133. 823.77KB 25.0
+#> 8 fansi_vec_ansi 1.02ms 1.06ms 914. 846.81KB 19.5
+#> 9 base_vec_ansi 153.94µs 160.31µs 6121. 22.7KB 2.04
+#> 10 cli_vec_plain 7.27ms 7.37ms 135. 823.77KB 25.0
+#> 11 fansi_vec_plain 982.95µs 1.02ms 964. 845.98KB 19.8
+#> 12 base_vec_plain 107.8µs 112.95µs 8748. 848B 4.06
+#> 13 cli_txt_ansi 3.24ms 3.3ms 300. 63.6KB 0
+#> 14 fansi_txt_ansi 1.52ms 1.55ms 644. 35.05KB 2.02
+#> 15 base_txt_ansi 138.37µs 147.09µs 6754. 18.47KB 2.06
+#> 16 cli_txt_plain 2.38ms 2.4ms 415. 63.6KB 0
+#> 17 fansi_txt_plain 513.08µs 522.26µs 1893. 30.6KB 6.17
+#> 18 base_txt_plain 90.42µs 91.83µs 10767. 11.05KB 2.02
#> # A tibble: 18 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli_ansi 96.74µs 102.96µs 9564. 33.84KB 21.0
-#> 2 fansi_ansi 53.99µs 56.9µs 17212. 31.43KB 23.4
-#> 3 base_ansi 1.06µs 1.1µs 876006. 4.2KB 0
-#> 4 cli_plain 96.02µs 100.47µs 9781. 0B 21.1
-#> 5 fansi_plain 53.97µs 57.61µs 16975. 872B 23.8
-#> 6 base_plain 990.93ns 1.04µs 923251. 0B 0
-#> 7 cli_vec_ansi 235.44µs 241.63µs 4085. 16.73KB 8.25
-#> 8 fansi_vec_ansi 122.38µs 125.94µs 7799. 5.59KB 12.5
-#> 9 base_vec_ansi 33.83µs 34.47µs 28866. 848B 0
-#> 10 cli_vec_plain 181.17µs 186.73µs 5264. 16.73KB 12.4
-#> 11 fansi_vec_plain 114.82µs 118.4µs 8356. 5.59KB 12.5
-#> 12 base_vec_plain 29.2µs 29.71µs 33298. 848B 0
-#> 13 cli_txt_ansi 106.43µs 109.89µs 8992. 0B 18.9
-#> 14 fansi_txt_ansi 53.28µs 56.26µs 17410. 872B 23.4
-#> 15 base_txt_ansi 1.11µs 1.15µs 838289. 0B 0
-#> 16 cli_txt_plain 96.72µs 100.88µs 9793. 0B 21.1
-#> 17 fansi_txt_plain 53.3µs 56.52µs 17473. 872B 23.3
-#> 18 base_txt_plain 1.04µs 1.08µs 888882. 0B 0
+#> 1 cli_ansi 98.63µs 103.38µs 9434. 33.84KB 21.2
+#> 2 fansi_ansi 54.24µs 57.2µs 17142. 31.43KB 23.4
+#> 3 base_ansi 1.03µs 1.09µs 875047. 4.2KB 0
+#> 4 cli_plain 95.43µs 100.07µs 9785. 0B 21.2
+#> 5 fansi_plain 53.47µs 57.11µs 17162. 872B 23.5
+#> 6 base_plain 981.15ns 1.05µs 896008. 0B 0
+#> 7 cli_vec_ansi 233.25µs 239.92µs 4080. 16.73KB 8.26
+#> 8 fansi_vec_ansi 122.22µs 126.2µs 7787. 5.59KB 12.6
+#> 9 base_vec_ansi 33.85µs 34.73µs 28587. 848B 0
+#> 10 cli_vec_plain 180.4µs 184.85µs 5322. 16.73KB 12.6
+#> 11 fansi_vec_plain 115.36µs 118.69µs 8248. 5.59KB 12.0
+#> 12 base_vec_plain 28.93µs 29.67µs 33553. 848B 0
+#> 13 cli_txt_ansi 106.51µs 110.25µs 8962. 0B 19.0
+#> 14 fansi_txt_ansi 53.46µs 56.12µs 17548. 872B 23.5
+#> 15 base_txt_ansi 1.08µs 1.13µs 850654. 0B 0
+#> 16 cli_txt_plain 96.23µs 100.08µs 9826. 0B 21.2
+#> 17 fansi_txt_plain 53.22µs 56.23µs 17511. 872B 23.5
+#> 18 base_txt_plain 1.01µs 1.05µs 914905. 0B 0
#> # A tibble: 18 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli_ansi 319.3µs 331.5µs 2986. 268.44KB 21.5
-#> 2 fansi_ansi 96.45µs 101.73µs 9647. 10.29KB 21.2
-#> 3 base_ansi 38.28µs 40.34µs 24310. 0B 19.5
-#> 4 cli_plain 199.26µs 206.11µs 4746. 0B 16.7
-#> 5 fansi_plain 94.67µs 100.4µs 9801. 872B 23.4
-#> 6 base_plain 31.98µs 33.85µs 29036. 0B 17.4
-#> 7 cli_vec_ansi 32.79ms 32.86ms 30.3 2.48KB 60.7
-#> 8 fansi_vec_ansi 236.89µs 242.77µs 4039. 7.25KB 10.3
-#> 9 base_vec_ansi 2.14ms 2.24ms 446. 48.18KB 25.8
-#> 10 cli_vec_plain 20.11ms 20.38ms 49.0 2.48KB 29.4
-#> 11 fansi_vec_plain 199.31µs 204.46µs 4822. 6.42KB 12.5
-#> 12 base_vec_plain 1.57ms 1.61ms 619. 47.4KB 24.4
-#> 13 cli_txt_ansi 21.15ms 21.27ms 46.8 507.59KB 13.0
-#> 14 fansi_txt_ansi 235.8µs 241.26µs 4077. 6.77KB 10.3
-#> 15 base_txt_ansi 2.02ms 2.07ms 480. 582.06KB 13.1
-#> 16 cli_txt_plain 1.61ms 1.65ms 600. 369.84KB 10.8
-#> 17 fansi_txt_plain 181.3µs 186.61µs 5298. 2.51KB 12.5
-#> 18 base_txt_plain 1.3ms 1.33ms 736. 367.31KB 13.1
+#> 1 cli_ansi 318.57µs 328.48µs 3012. 268.44KB 21.3
+#> 2 fansi_ansi 96.89µs 101.97µs 9519. 10.29KB 19.1
+#> 3 base_ansi 38.33µs 40.76µs 23978. 0B 21.6
+#> 4 cli_plain 198.42µs 205.16µs 4785. 0B 16.8
+#> 5 fansi_plain 96.83µs 102.48µs 9561. 872B 21.3
+#> 6 base_plain 31.48µs 33.26µs 29505. 0B 20.7
+#> 7 cli_vec_ansi 32.38ms 33.17ms 30.3 2.48KB 60.7
+#> 8 fansi_vec_ansi 238.96µs 245.22µs 4016. 7.25KB 10.4
+#> 9 base_vec_ansi 2.18ms 2.28ms 437. 48.18KB 23.4
+#> 10 cli_vec_plain 19.89ms 20.05ms 49.8 2.48KB 35.6
+#> 11 fansi_vec_plain 202.45µs 206.91µs 4771. 6.42KB 12.5
+#> 12 base_vec_plain 1.58ms 1.62ms 612. 47.4KB 22.1
+#> 13 cli_txt_ansi 21.05ms 21.48ms 46.6 507.59KB 16.4
+#> 14 fansi_txt_ansi 228.41µs 234.41µs 4214. 6.77KB 8.20
+#> 15 base_txt_ansi 2.03ms 2.08ms 478. 582.06KB 13.3
+#> 16 cli_txt_plain 1.61ms 1.64ms 602. 369.84KB 10.7
+#> 17 fansi_txt_plain 182.31µs 188.64µs 5229. 2.51KB 12.5
+#> 18 base_txt_plain 1.29ms 1.33ms 746. 367.31KB 13.0
#> # A tibble: 18 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli_ansi 6.56µs 7.17µs 134778. 24.83KB 27.0
-#> 2 fansi_ansi 76.99µs 81.96µs 12010. 28.48KB 21.3
-#> 3 base_ansi 982.08ns 1.05µs 907935. 0B 0
-#> 4 cli_plain 6.43µs 6.93µs 141248. 0B 42.4
-#> 5 fansi_plain 76.9µs 81.4µs 12055. 1.98KB 21.3
-#> 6 base_plain 992.09ns 1.04µs 921359. 0B 0
-#> 7 cli_vec_ansi 27.9µs 28.89µs 34173. 1.7KB 6.84
-#> 8 fansi_vec_ansi 113.55µs 117.65µs 8301. 8.86KB 14.8
-#> 9 base_vec_ansi 5.75µs 6.06µs 162129. 848B 0
-#> 10 cli_vec_plain 22.81µs 23.84µs 41468. 1.7KB 12.4
-#> 11 fansi_vec_plain 107.31µs 112.65µs 8743. 8.86KB 14.8
-#> 12 base_vec_plain 5.63µs 5.75µs 172166. 848B 0
-#> 13 cli_txt_ansi 6.53µs 7.09µs 137807. 0B 27.6
-#> 14 fansi_txt_ansi 77.07µs 80.85µs 12096. 1.98KB 21.2
-#> 15 base_txt_ansi 3.84µs 3.9µs 251811. 0B 25.2
-#> 16 cli_txt_plain 7.36µs 7.95µs 123698. 0B 24.7
-#> 17 fansi_txt_plain 76.07µs 79.91µs 12334. 1.98KB 22.1
-#> 18 base_txt_plain 2.67µs 2.73µs 360473. 0B 0
+#> 1 cli_ansi 6.56µs 7.29µs 132896. 24.83KB 39.9
+#> 2 fansi_ansi 76.31µs 80.99µs 12136. 28.48KB 21.3
+#> 3 base_ansi 1µs 1.04µs 924626. 0B 0
+#> 4 cli_plain 6.49µs 7.08µs 138314. 0B 27.7
+#> 5 fansi_plain 75.81µs 80.79µs 12170. 1.98KB 21.3
+#> 6 base_plain 951ns 1µs 926102. 0B 0
+#> 7 cli_vec_ansi 27.94µs 28.91µs 34169. 1.7KB 10.3
+#> 8 fansi_vec_ansi 113.62µs 117.97µs 8305. 8.86KB 14.7
+#> 9 base_vec_ansi 5.71µs 6.03µs 164248. 848B 0
+#> 10 cli_vec_plain 22.88µs 24.09µs 40396. 1.7KB 8.08
+#> 11 fansi_vec_plain 108.08µs 112.12µs 8781. 8.86KB 14.8
+#> 12 base_vec_plain 5.49µs 5.74µs 169462. 848B 16.9
+#> 13 cli_txt_ansi 6.63µs 7.33µs 133334. 0B 26.7
+#> 14 fansi_txt_ansi 76.68µs 80.66µs 12179. 1.98KB 21.3
+#> 15 base_txt_ansi 3.86µs 3.91µs 251730. 0B 0
+#> 16 cli_txt_plain 7.25µs 7.89µs 124412. 0B 24.9
+#> 17 fansi_txt_plain 75.38µs 80.68µs 12161. 1.98KB 22.0
+#> 18 base_txt_plain 2.62µs 2.68µs 354626. 0B 0
#> # A tibble: 12 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli_ansi 103.25µs 107.03µs 9206. 11.88KB 16.7
-#> 2 base_ansi 1.33µs 1.37µs 717909. 0B 0
-#> 3 cli_plain 83.68µs 86.79µs 11344. 8.73KB 14.6
-#> 4 base_plain 1.04µs 1.08µs 880333. 0B 0
-#> 5 cli_vec_ansi 3.9ms 3.99ms 250. 838.77KB 31.2
-#> 6 base_vec_ansi 72.95µs 74.71µs 13254. 848B 0
-#> 7 cli_vec_plain 2.2ms 2.26ms 441. 816.9KB 27.3
-#> 8 base_vec_plain 43.34µs 44.44µs 22373. 848B 0
-#> 9 cli_txt_ansi 11.86ms 11.93ms 83.7 114.42KB 6.44
-#> 10 base_txt_ansi 73.73µs 75.21µs 13203. 0B 0
-#> 11 cli_txt_plain 246.75µs 250.72µs 3937. 18.16KB 6.12
-#> 12 base_txt_plain 41.73µs 42.63µs 23538. 0B 0
+#> 1 cli_ansi 104.16µs 107.55µs 9171. 11.88KB 14.6
+#> 2 base_ansi 1.3µs 1.34µs 724935. 0B 0
+#> 3 cli_plain 83.4µs 86.41µs 11411. 8.73KB 16.8
+#> 4 base_plain 1µs 1.04µs 936061. 0B 0
+#> 5 cli_vec_ansi 3.92ms 4.03ms 247. 838.77KB 28.8
+#> 6 base_vec_ansi 74.18µs 74.8µs 13228. 848B 0
+#> 7 cli_vec_plain 2.21ms 2.28ms 437. 816.9KB 30.1
+#> 8 base_vec_plain 43.28µs 44.27µs 22418. 848B 0
+#> 9 cli_txt_ansi 11.85ms 11.95ms 83.5 114.42KB 6.59
+#> 10 base_txt_ansi 73.66µs 75.16µs 13211. 0B 0
+#> 11 cli_txt_plain 246.55µs 254.53µs 3806. 18.16KB 6.13
+#> 12 base_txt_plain 41.84µs 42.78µs 23282. 0B 0
#> # A tibble: 12 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli_ansi 74.1µs 78.2µs 12550. 0B 21.1
-#> 2 base_ansi 16.4µs 17.6µs 56139. 0B 22.5
-#> 3 cli_plain 73.4µs 77.6µs 12569. 0B 21.1
-#> 4 base_plain 16.8µs 17.9µs 55206. 0B 16.6
-#> 5 cli_vec_ansi 158.4µs 164.7µs 5979. 7.2KB 10.4
-#> 6 base_vec_ansi 51.9µs 56.8µs 17420. 1.66KB 6.12
-#> 7 cli_vec_plain 145.1µs 151µs 6492. 7.2KB 10.4
-#> 8 base_vec_plain 48µs 53µs 18641. 1.66KB 8.20
-#> 9 cli_txt_ansi 135.2µs 138.8µs 7108. 0B 10.3
-#> 10 base_txt_ansi 35.2µs 36.4µs 27096. 0B 8.13
-#> 11 cli_txt_plain 119.3µs 123.6µs 7930. 0B 12.4
-#> 12 base_txt_plain 31.8µs 33.1µs 29884. 0B 12.0
+#> 1 cli_ansi 73.6µs 78.2µs 12343. 0B 21.3
+#> 2 base_ansi 16.4µs 17.7µs 55169. 0B 22.1
+#> 3 cli_plain 72.9µs 76.8µs 12815. 0B 21.2
+#> 4 base_plain 16.4µs 17.4µs 56410. 0B 16.9
+#> 5 cli_vec_ansi 158µs 162.8µs 6026. 7.2KB 10.4
+#> 6 base_vec_ansi 52.5µs 57.1µs 17272. 1.66KB 6.13
+#> 7 cli_vec_plain 144.1µs 150.4µs 6474. 7.2KB 10.4
+#> 8 base_vec_plain 48.2µs 53.2µs 18462. 1.66KB 8.23
+#> 9 cli_txt_ansi 135.4µs 138.9µs 7120. 0B 10.3
+#> 10 base_txt_ansi 35.1µs 36.3µs 27223. 0B 10.9
+#> 11 cli_txt_plain 119.9µs 123.5µs 7982. 0B 12.5
+#> 12 base_txt_plain 32.4µs 33.6µs 29343. 0B 11.7
#> # A tibble: 6 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli 8.36µs 9µs 108854. 13.3KB 21.8
-#> 2 base 920.96ns 972.1ns 981564. 0B 0
-#> 3 cli_vec 24.59µs 25.4µs 38698. 448B 7.74
-#> 4 base_vec 11.37µs 11.5µs 86518. 448B 0
-#> 5 cli_txt 25.32µs 26µs 38061. 0B 11.4
-#> 6 base_txt 12.42µs 12.5µs 77295. 0B 0
+#> 1 cli 8.41µs 9.1µs 105017. 13.3KB 31.5
+#> 2 base 891.04ns 932.1ns 1024081. 0B 0
+#> 3 cli_vec 24.75µs 25.6µs 38673. 448B 7.74
+#> 4 base_vec 11.33µs 11.4µs 86551. 448B 0
+#> 5 cli_txt 25.52µs 26.3µs 37544. 0B 7.51
+#> 6 base_txt 12.42µs 12.5µs 79074. 0B 7.91
bench::mark(
cli = utf8_nchar(uni, type = "width"),
@@ -710,12 +711,12 @@
#> # A tibble: 6 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli 8.11µs 8.7µs 110080. 0B 22.0
-#> 2 base 1.32µs 1.36µs 708589. 0B 70.9
-#> 3 cli_vec 29.18µs 29.9µs 33182. 448B 6.64
-#> 4 base_vec 46.94µs 47.31µs 21050. 448B 0
-#> 5 cli_txt 29.66µs 31µs 31632. 0B 6.33
-#> 6 base_txt 83.41µs 84.79µs 11750. 0B 0
+#> 1 cli 8.34µs 9.04µs 108454. 0B 21.7
+#> 2 base 1.3µs 1.36µs 688715. 0B 68.9
+#> 3 cli_vec 29.16µs 30.07µs 32901. 448B 6.58
+#> 4 base_vec 47.07µs 47.25µs 21050. 448B 0
+#> 5 cli_txt 30.43µs 31.11µs 31915. 0B 6.38
+#> 6 base_txt 83.17µs 85.84µs 11555. 0B 0
bench::mark(
cli = utf8_nchar(uni, type = "codepoints"),
@@ -729,12 +730,12 @@
#> # A tibble: 6 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli 8.78µs 9.4µs 104783. 0B 21.0
-#> 2 base 912.11ns 962.1ns 987708. 0B 0
-#> 3 cli_vec 19.51µs 20.2µs 49123. 448B 14.7
-#> 4 base_vec 11.37µs 11.5µs 86307. 448B 0
-#> 5 cli_txt 20.28µs 20.9µs 47325. 0B 14.2
-#> 6 base_txt 12.43µs 12.5µs 79424. 0B 0
+#> 1 cli 8.84µs 9.38µs 105251. 0B 21.1
+#> 2 base 901.99ns 952.04ns 1007423. 0B 0
+#> 3 cli_vec 19.49µs 20.19µs 49035. 448B 14.7
+#> 4 base_vec 11.32µs 11.43µs 86771. 448B 0
+#> 5 cli_txt 20.35µs 21.01µs 47192. 0B 9.44
+#> 6 base_txt 12.42µs 12.5µs 79235. 0B 7.92
#> # A tibble: 6 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 cli 6.11µs 6.65µs 142952. 22.1KB 28.6
-#> 2 base 1.02µs 1.09µs 888129. 0B 88.8
-#> 3 cli_vec 29.7µs 30.62µs 32468. 1.7KB 6.49
-#> 4 base_vec 7.7µs 7.91µs 125445. 848B 0
-#> 5 cli_txt 6.14µs 6.65µs 146647. 0B 29.3
-#> 6 base_txt 5.48µs 5.54µs 178020. 0B 17.8
+#> 1 cli 6.22µs 6.79µs 145336. 22.1KB 29.1
+#> 2 base 991.98ns 1.06µs 893255. 0B 89.3
+#> 3 cli_vec 29.59µs 30.68µs 32251. 1.7KB 6.45
+#> 4 base_vec 7.7µs 7.89µs 125356. 848B 0
+#> 5 cli_txt 6.14µs 6.75µs 145861. 0B 29.2
+#> 6 base_txt 5.46µs 5.52µs 178191. 0B 17.8
vignettes/palettes.Rmd
palettes.Rmd
vignettes/pluralization.Rmd
pluralization.Rmd
vignettes/progress-advanced.Rmd
progress-advanced.Rmd
vignettes/progress-benchmark.Rmd
progress-benchmark.Rmd
ben_st2 <- bench::mark(
if (`__cli_update_due`) foobar()
@@ -128,8 +128,8 @@ The timerben_st2
#> # A tibble: 1 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
-#> <bch:expr> <bch:> <bch:> <dbl> <bch:byt> <dbl>
-#> 1 if (`__cli_update_due`) foob… 39.9ns 51ns 14107957. 0B 0
for
loop
@@ -175,10 +175,10 @@
ben_taf2 <- bench::mark(f0(1e6), fp(1e6))
#> Warning: Some expressions had a GC in every iteration; so filtering is
@@ -187,10 +187,10 @@
#> # A tibble: 2 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 f0(1e+06) 132ms 139ms 6.56 0B 54.2
-#> 2 fp(1e+06) 149ms 151ms 6.60 1.93KB 52.8
+#> 1 f0(1e+06) 130ms 140ms 6.56 0B 52.5
+#> 2 fp(1e+06) 148ms 151ms 6.58 1.93KB 52.7
(ben_taf2$median[2] - ben_taf2$median[1]) / 1e6
-#> [1] 11.8ns
ben_taf3 <- bench::mark(f0(1e7), fp(1e7))
#> Warning: Some expressions had a GC in every iteration; so filtering is
@@ -199,10 +199,10 @@
#> # A tibble: 2 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 f0(1e+07) 1.41s 1.41s 0.710 0B 58.9
-#> 2 fp(1e+07) 1.5s 1.5s 0.666 1.93KB 54.6
+#> 1 f0(1e+07) 1.45s 1.45s 0.692 0B 57.4
+#> 2 fp(1e+07) 1.56s 1.56s 0.640 1.93KB 52.4
(ben_taf3$median[2] - ben_taf3$median[1]) / 1e7
-#> [1] 9.2ns
ben_taf4 <- bench::mark(f0(1e8), fp(1e8))
#> Warning: Some expressions had a GC in every iteration; so filtering is
@@ -211,10 +211,10 @@
#> # A tibble: 2 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 f0(1e+08) 13.5s 13.5s 0.0739 0B 39.0
-#> 2 fp(1e+08) 14.8s 14.8s 0.0675 1.93KB 33.7
+#> 1 f0(1e+08) 13.6s 13.6s 0.0734 0B 36.7
+#> 2 fp(1e+08) 14.8s 14.8s 0.0674 1.93KB 33.6
(ben_taf4$median[2] - ben_taf4$median[1]) / 1e8
-#> [1] 12.8ns
lapply()
@@ -255,11 +255,11 @@ lapply()
#> # A tibble: 3 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 f0() 72.2ms 80.4ms 9.45 781KB 17.0
-#> 2 f01() 94.4ms 104.7ms 9.69 781KB 17.4
-#> 3 fp() 99.7ms 106.7ms 8.59 783KB 10.3
+#> 1 f0() 83.5ms 92.7ms 10.8 781KB 23.4
+#> 2 f01() 113.3ms 124.7ms 6.99 781KB 15.4
+#> 3 fp() 100.7ms 104.1ms 9.55 783KB 13.4
(ben_tam$median[3] - ben_tam$median[1]) / 1e5
-#> [1] 263ns
ben_tam2 <- bench::mark(f0(1e6), f01(1e6), fp(1e6))
#> Warning: Some expressions had a GC in every iteration; so filtering is
@@ -268,13 +268,13 @@ Mapping with lapply()
#> # A tibble: 3 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 f0(1e+06) 1.67s 1.67s 0.598 7.63MB 4.19
-#> 2 f01(1e+06) 936.98ms 936.98ms 1.07 7.63MB 2.13
-#> 3 fp(1e+06) 1.06s 1.06s 0.942 7.63MB 3.77
+#> 1 f0(1e+06) 831.94ms 831.94ms 1.20 7.63MB 8.41
+#> 2 f01(1e+06) 1.24s 1.24s 0.805 7.63MB 5.64
+#> 3 fp(1e+06) 1.39s 1.39s 0.720 7.63MB 5.04
(ben_tam2$median[3] - ben_tam2$median[1]) / 1e6
-#> [1] 1ns
+#> [1] 558ns
(ben_tam2$median[3] - ben_tam2$median[2]) / 1e6
-#> [1] 125ns
ben_pur2 <- bench::mark(f0(1e6), f01(1e6), fp(1e6))
#> Warning: Some expressions had a GC in every iteration; so filtering is
@@ -328,13 +328,13 @@ Mapping with purrr#> # A tibble: 3 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 f0(1e+06) 773.01ms 773.01ms 1.29 7.63MB 2.59
-#> 2 f01(1e+06) 1.03s 1.03s 0.971 7.63MB 2.91
-#> 3 fp(1e+06) 1.08s 1.08s 0.922 7.63MB 2.77
+#> 1 f0(1e+06) 770.65ms 770.65ms 1.30 7.63MB 1.30
+#> 2 f01(1e+06) 1.03s 1.03s 0.975 7.63MB 2.93
+#> 3 fp(1e+06) 1.1s 1.1s 0.910 7.63MB 2.73
(ben_pur2$median[3] - ben_pur2$median[1]) / 1e6
-#> [1] 312ns
+#> [1] 329ns
(ben_pur2$median[3] - ben_pur2$median[2]) / 1e6
-#> [1] 55.1ns
ben_api2 <- bench::mark(f0(1e6), ff(1e6), fp(1e6))
#> Warning: Some expressions had a GC in every iteration; so filtering is
@@ -428,13 +428,13 @@ Traditional API#> # A tibble: 3 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
-#> 1 f0(1e+06) 1.36s 1.36s 0.733 0B 0.733
-#> 2 ff(1e+06) 208.15ms 238.51ms 4.32 1.95KB 2.88
-#> 3 fp(1e+06) 21.32s 21.32s 0.0469 1.95KB 1.97
+#> 1 f0(1e+06) 131.3ms 137.6ms 7.11 0B 5.33
+#> 2 ff(1e+06) 240.6ms 241.7ms 4.14 1.95KB 4.14
+#> 3 fp(1e+06) 23.2s 23.2s 0.0432 1.95KB 1.81
(ben_api2$median[3] - ben_api2$median[1]) / 1e6
-#> [1] 20µs
+#> [1] 23µs
(ben_api2$median[2] - ben_api2$median[1]) / 1e6
-#> [1] 1ns
cli_progress_bar(total = NA)
bench::mark(cli_progress_update(force = TRUE), max_iterations = 10000)
-#> ⠙ 1 done (451/s) | 3ms
-#> ⠹ 2 done (64/s) | 32ms
-#> ⠸ 3 done (78/s) | 39ms
-#> ⠼ 4 done (88/s) | 46ms
-#> ⠴ 5 done (95/s) | 53ms
-#> ⠦ 6 done (101/s) | 60ms
-#> ⠧ 7 done (105/s) | 67ms
-#> ⠇ 8 done (109/s) | 74ms
-#> ⠏ 9 done (112/s) | 81ms
-#> ⠋ 10 done (115/s) | 88ms
-#> ⠙ 11 done (117/s) | 95ms
-#> ⠹ 12 done (119/s) | 101ms
-#> ⠸ 13 done (121/s) | 108ms
-#> ⠼ 14 done (122/s) | 115ms
-#> ⠴ 15 done (124/s) | 122ms
-#> ⠦ 16 done (125/s) | 129ms
-#> ⠧ 17 done (126/s) | 136ms
-#> ⠇ 18 done (127/s) | 143ms
-#> ⠏ 19 done (127/s) | 150ms
-#> ⠋ 20 done (128/s) | 157ms
-#> ⠙ 21 done (129/s) | 163ms
-#> ⠹ 22 done (126/s) | 175ms
-#> ⠸ 23 done (127/s) | 182ms
-#> ⠼ 24 done (128/s) | 189ms
-#> ⠴ 25 done (128/s) | 195ms
-#> ⠦ 26 done (129/s) | 202ms
-#> ⠧ 27 done (130/s) | 209ms
-#> ⠇ 28 done (130/s) | 216ms
-#> ⠏ 29 done (130/s) | 223ms
-#> ⠋ 30 done (131/s) | 230ms
-#> ⠙ 31 done (131/s) | 237ms
-#> ⠹ 32 done (132/s) | 244ms
-#> ⠸ 33 done (132/s) | 250ms
-#> ⠼ 34 done (132/s) | 257ms
-#> ⠴ 35 done (133/s) | 264ms
-#> ⠦ 36 done (133/s) | 271ms
-#> ⠧ 37 done (133/s) | 278ms
-#> ⠇ 38 done (134/s) | 285ms
-#> ⠏ 39 done (134/s) | 292ms
-#> ⠋ 40 done (134/s) | 299ms
-#> ⠙ 41 done (134/s) | 306ms
-#> ⠹ 42 done (135/s) | 313ms
-#> ⠸ 43 done (135/s) | 320ms
-#> ⠼ 44 done (135/s) | 326ms
-#> ⠴ 45 done (135/s) | 333ms
-#> ⠦ 46 done (135/s) | 340ms
-#> ⠧ 47 done (136/s) | 347ms
-#> ⠇ 48 done (136/s) | 354ms
-#> ⠏ 49 done (136/s) | 361ms
-#> ⠋ 50 done (136/s) | 368ms
-#> ⠙ 51 done (136/s) | 375ms
-#> ⠹ 52 done (136/s) | 382ms
-#> ⠸ 53 done (137/s) | 389ms
-#> ⠼ 54 done (137/s) | 395ms
-#> ⠴ 55 done (137/s) | 402ms
-#> ⠦ 56 done (137/s) | 409ms
-#> ⠧ 57 done (137/s) | 416ms
-#> ⠇ 58 done (137/s) | 423ms
-#> ⠏ 59 done (137/s) | 430ms
-#> ⠋ 60 done (138/s) | 437ms
-#> ⠙ 61 done (138/s) | 444ms
-#> ⠹ 62 done (138/s) | 450ms
-#> ⠸ 63 done (138/s) | 457ms
-#> ⠼ 64 done (138/s) | 464ms
-#> ⠴ 65 done (138/s) | 471ms
-#> ⠦ 66 done (138/s) | 478ms
-#> ⠧ 67 done (138/s) | 485ms
-#> ⠇ 68 done (138/s) | 492ms
-#> ⠏ 69 done (139/s) | 499ms
-#> ⠋ 70 done (139/s) | 506ms
-#> ⠙ 71 done (139/s) | 512ms
-#> ⠹ 72 done (139/s) | 519ms
-#> ⠸ 73 done (139/s) | 526ms
+#> ⠙ 1 done (480/s) | 3ms
+#> ⠹ 2 done (66/s) | 31ms
+#> ⠸ 3 done (80/s) | 38ms
+#> ⠼ 4 done (91/s) | 45ms
+#> ⠴ 5 done (99/s) | 51ms
+#> ⠦ 6 done (104/s) | 58ms
+#> ⠧ 7 done (109/s) | 65ms
+#> ⠇ 8 done (113/s) | 71ms
+#> ⠏ 9 done (116/s) | 78ms
+#> ⠋ 10 done (119/s) | 85ms
+#> ⠙ 11 done (121/s) | 92ms
+#> ⠹ 12 done (123/s) | 98ms
+#> ⠸ 13 done (124/s) | 105ms
+#> ⠼ 14 done (126/s) | 112ms
+#> ⠴ 15 done (127/s) | 119ms
+#> ⠦ 16 done (128/s) | 126ms
+#> ⠧ 17 done (129/s) | 132ms
+#> ⠇ 18 done (130/s) | 139ms
+#> ⠏ 19 done (131/s) | 146ms
+#> ⠋ 20 done (132/s) | 153ms
+#> ⠙ 21 done (128/s) | 164ms
+#> ⠹ 22 done (129/s) | 171ms
+#> ⠸ 23 done (130/s) | 178ms
+#> ⠼ 24 done (130/s) | 185ms
+#> ⠴ 25 done (131/s) | 191ms
+#> ⠦ 26 done (132/s) | 198ms
+#> ⠧ 27 done (132/s) | 205ms
+#> ⠇ 28 done (133/s) | 211ms
+#> ⠏ 29 done (133/s) | 218ms
+#> ⠋ 30 done (134/s) | 225ms
+#> ⠙ 31 done (134/s) | 231ms
+#> ⠹ 32 done (134/s) | 239ms
+#> ⠸ 33 done (135/s) | 246ms
+#> ⠼ 34 done (135/s) | 253ms
+#> ⠴ 35 done (135/s) | 259ms
+#> ⠦ 36 done (136/s) | 266ms
+#> ⠧ 37 done (136/s) | 273ms
+#> ⠇ 38 done (136/s) | 280ms
+#> ⠏ 39 done (136/s) | 286ms
+#> ⠋ 40 done (137/s) | 293ms
+#> ⠙ 41 done (137/s) | 300ms
+#> ⠹ 42 done (137/s) | 307ms
+#> ⠸ 43 done (137/s) | 314ms
+#> ⠼ 44 done (138/s) | 320ms
+#> ⠴ 45 done (138/s) | 327ms
+#> ⠦ 46 done (138/s) | 334ms
+#> ⠧ 47 done (138/s) | 341ms
+#> ⠇ 48 done (138/s) | 348ms
+#> ⠏ 49 done (139/s) | 354ms
+#> ⠋ 50 done (139/s) | 361ms
+#> ⠙ 51 done (139/s) | 368ms
+#> ⠹ 52 done (139/s) | 375ms
+#> ⠸ 53 done (139/s) | 382ms
+#> ⠼ 54 done (139/s) | 389ms
+#> ⠴ 55 done (139/s) | 396ms
+#> ⠦ 56 done (139/s) | 402ms
+#> ⠧ 57 done (139/s) | 409ms
+#> ⠇ 58 done (140/s) | 416ms
+#> ⠏ 59 done (140/s) | 423ms
+#> ⠋ 60 done (140/s) | 430ms
+#> ⠙ 61 done (140/s) | 437ms
+#> ⠹ 62 done (140/s) | 444ms
+#> ⠸ 63 done (140/s) | 451ms
+#> ⠼ 64 done (140/s) | 458ms
+#> ⠴ 65 done (140/s) | 465ms
+#> ⠦ 66 done (140/s) | 472ms
+#> ⠧ 67 done (140/s) | 478ms
+#> ⠇ 68 done (140/s) | 485ms
+#> ⠏ 69 done (140/s) | 492ms
+#> ⠋ 70 done (141/s) | 499ms
+#> ⠙ 71 done (141/s) | 506ms
+#> ⠹ 72 done (141/s) | 512ms
+#> ⠸ 73 done (141/s) | 519ms
+#> ⠼ 74 done (141/s) | 526ms
#> # A tibble: 1 × 6
#> expression min median `itr/sec` mem_alloc `gc/sec`
#> <bch:expr> <bch:> <bch:> <dbl> <bch:byt> <dbl>
-#> 1 cli_progress_update(force = … 6.77ms 6.88ms 145. 265KB 2.05
+#> 1 cli_progress_update(force = … 6.66ms 6.78ms 147. 265KB 2.04
cli_progress_done()
vignettes/progress.Rmd
progress.Rmd
vignettes/semantic-cli.Rmd
semantic-cli.Rmd
-#> This is sub-process 15477 from callr -#> [1] 15477 +#> This is sub-process 15423 from callr +#> [1] 15423
vignettes/usethis-ui.Rmd
usethis-ui.Rmd
Csárdi G (2024). cli: Helpers for Developing Command Line Interfaces. -R package version 3.6.3.9000, https://github.com/r-lib/cli, https://cli.r-lib.org. +R package version 3.6.3.9001, https://github.com/r-lib/cli, https://cli.r-lib.org.
@Manual{, title = {cli: Helpers for Developing Command Line Interfaces}, author = {Gábor Csárdi}, year = {2024}, - note = {R package version 3.6.3.9000, https://github.com/r-lib/cli}, + note = {R package version 3.6.3.9001, https://github.com/r-lib/cli}, url = {https://cli.r-lib.org}, }diff --git a/dev/index.html b/dev/index.html index 9bf9f6f3..eb0535fb 100644 --- a/dev/index.html +++ b/dev/index.html @@ -26,7 +26,7 @@ cli - 3.6.3.9000 + 3.6.3.9001
cli_progress_bar()
now accepts total
= Inf or -Inf which mimics the behavior of when total
is NA.
The format of the URI part of “run”, “help” and “vignette” hyperlinks can now be configured via options and env vars (@jennybc, #739).
cli_progress_bar()
now accepts total
= Inf or -Inf which mimics the behavior of when total
is NA.
num_ansi_colors()
now does not warn in Emacs if the INSIDE_EMACS
environment variable is not a proper version number (@rundel, #689).
ansi_collapse()
and inline collapsing now uses last
as the separator (without the serial comma) for two-element vectors if sep2
is not given (@rundel, #681).
ansi_collapse()
is now correct for length-1 vectors with style “head” if width is specified (@rundel, #590).