Skip to content

Commit c42e215

Browse files
committed
Update version & benchmarks
Update uax29 to v2.2.0
1 parent 09c88ec commit c42e215

File tree

6 files changed

+139
-135
lines changed

6 files changed

+139
-135
lines changed

benchstat.txt

Lines changed: 35 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,40 @@ pkg: github.com/mattn/go-runewidth
44
cpu: Apple M2
55
│ old.txt │ new.txt │
66
│ sec/op │ sec/op vs base │
7-
String1WidthAll/regular-8 108.63m ± 1% 41.51m ± 1% -61.78% (p=0.002 n=6)
8-
String1WidthAll/lut-8 93.61m ± 1% 26.00m ± 0% -72.23% (p=0.002 n=6)
9-
String1Width768/regular-8 60.46µ ± 1% 15.80µ ± 0% -73.87% (p=0.002 n=6)
10-
String1Width768/lut-8 60.69µ ± 0% 15.55µ ± 0% -74.38% (p=0.002 n=6)
11-
String1WidthAllEastAsian/regular-8 115.24m ± 1% 47.06m ± 0% -59.16% (p=0.002 n=6)
12-
String1WidthAllEastAsian/lut-8 93.62m ± 0% 26.02m ± 1% -72.21% (p=0.002 n=6)
13-
String1Width768EastAsian/regular-8 75.25µ ± 0% 27.99µ ± 1% -62.81% (p=0.002 n=6)
14-
String1Width768EastAsian/lut-8 60.79µ ± 0% 15.58µ ± 0% -74.37% (p=0.002 n=6)
15-
geomean 2.559m 783.2µ -69.40%
7+
String1WidthAll/regular-8 108.92m ± 0% 35.09m ± 3% -67.78% (p=0.002 n=6)
8+
String1WidthAll/lut-8 93.97m ± 0% 18.70m ± 0% -80.10% (p=0.002 n=6)
9+
String1Width768/regular-8 60.62µ ± 1% 11.54µ ± 0% -80.97% (p=0.002 n=6)
10+
String1Width768/lut-8 60.66µ ± 1% 11.43µ ± 0% -81.16% (p=0.002 n=6)
11+
String1WidthAllEastAsian/regular-8 115.13m ± 1% 40.79m ± 8% -64.57% (p=0.002 n=6)
12+
String1WidthAllEastAsian/lut-8 93.65m ± 0% 18.70m ± 2% -80.03% (p=0.002 n=6)
13+
String1Width768EastAsian/regular-8 75.32µ ± 0% 23.49µ ± 0% -68.82% (p=0.002 n=6)
14+
String1Width768EastAsian/lut-8 60.76µ ± 0% 11.50µ ± 0% -81.07% (p=0.002 n=6)
15+
geomean 2.562m 604.5µ -76.41%
1616

17-
│ old.txt │ new.txt │
18-
│ B/op │ B/op vs base │
19-
String1WidthAll/regular-8 106.251Mi ± 0% 4.250Mi ± 0% -96.00% (p=0.002 n=6)
20-
String1WidthAll/lut-8 106.251Mi ± 0% 4.250Mi ± 0% -96.00% (p=0.002 n=6)
21-
String1Width768/regular-8 75.000Ki ± 0% 3.000Ki ± 0% -96.00% (p=0.002 n=6)
22-
String1Width768/lut-8 75.000Ki ± 0% 3.000Ki ± 0% -96.00% (p=0.002 n=6)
23-
String1WidthAllEastAsian/regular-8 106.251Mi ± 0% 4.250Mi ± 0% -96.00% (p=0.002 n=6)
24-
String1WidthAllEastAsian/lut-8 106.251Mi ± 0% 4.250Mi ± 0% -96.00% (p=0.002 n=6)
25-
String1Width768EastAsian/regular-8 75.000Ki ± 0% 3.000Ki ± 0% -96.00% (p=0.002 n=6)
26-
String1Width768EastAsian/lut-8 75.000Ki ± 0% 3.000Ki ± 0% -96.00% (p=0.002 n=6)
27-
geomean 2.790Mi 114.3Ki -96.00%
17+
│ old.txt │ new.txt │
18+
│ B/op │ B/op vs base │
19+
String1WidthAll/regular-8 106.3Mi ± 0% 0.0Mi ± 0% -100.00% (p=0.002 n=6)
20+
String1WidthAll/lut-8 106.3Mi ± 0% 0.0Mi ± 0% -100.00% (p=0.002 n=6)
21+
String1Width768/regular-8 75.00Ki ± 0% 0.00Ki ± 0% -100.00% (p=0.002 n=6)
22+
String1Width768/lut-8 75.00Ki ± 0% 0.00Ki ± 0% -100.00% (p=0.002 n=6)
23+
String1WidthAllEastAsian/regular-8 106.3Mi ± 0% 0.0Mi ± 0% -100.00% (p=0.002 n=6)
24+
String1WidthAllEastAsian/lut-8 106.3Mi ± 0% 0.0Mi ± 0% -100.00% (p=0.002 n=6)
25+
String1Width768EastAsian/regular-8 75.00Ki ± 0% 0.00Ki ± 0% -100.00% (p=0.002 n=6)
26+
String1Width768EastAsian/lut-8 75.00Ki ± 0% 0.00Ki ± 0% -100.00% (p=0.002 n=6)
27+
geomean 2.790Mi ? ¹ ²
28+
¹ summaries must be >0 to compute geomean
29+
² ratios must be >0 to compute geomean
2830

29-
│ old.txt │ new.txt │
30-
│ allocs/op │ allocs/op vs base │
31-
String1WidthAll/regular-8 3.342M ± 0% 1.114M ± 0% -66.67% (p=0.002 n=6)
32-
String1WidthAll/lut-8 3.342M ± 0% 1.114M ± 0% -66.67% (p=0.002 n=6)
33-
String1Width768/regular-8 2304.0 ± 0% 768.0 ± 0% -66.67% (p=0.002 n=6)
34-
String1Width768/lut-8 2304.0 ± 0% 768.0 ± 0% -66.67% (p=0.002 n=6)
35-
String1WidthAllEastAsian/regular-8 3.342M ± 0% 1.114M ± 0% -66.67% (p=0.002 n=6)
36-
String1WidthAllEastAsian/lut-8 3.342M ± 0% 1.114M ± 0% -66.67% (p=0.002 n=6)
37-
String1Width768EastAsian/regular-8 2304.0 ± 0% 768.0 ± 0% -66.67% (p=0.002 n=6)
38-
String1Width768EastAsian/lut-8 2304.0 ± 0% 768.0 ± 0% -66.67% (p=0.002 n=6)
39-
geomean 87.75k 29.25k -66.67%
31+
│ old.txt │ new.txt │
32+
│ allocs/op │ allocs/op vs base │
33+
String1WidthAll/regular-8 3.342M ± 0% 0.000M ± 0% -100.00% (p=0.002 n=6)
34+
String1WidthAll/lut-8 3.342M ± 0% 0.000M ± 0% -100.00% (p=0.002 n=6)
35+
String1Width768/regular-8 2.304k ± 0% 0.000k ± 0% -100.00% (p=0.002 n=6)
36+
String1Width768/lut-8 2.304k ± 0% 0.000k ± 0% -100.00% (p=0.002 n=6)
37+
String1WidthAllEastAsian/regular-8 3.342M ± 0% 0.000M ± 0% -100.00% (p=0.002 n=6)
38+
String1WidthAllEastAsian/lut-8 3.342M ± 0% 0.000M ± 0% -100.00% (p=0.002 n=6)
39+
String1Width768EastAsian/regular-8 2.304k ± 0% 0.000k ± 0% -100.00% (p=0.002 n=6)
40+
String1Width768EastAsian/lut-8 2.304k ± 0% 0.000k ± 0% -100.00% (p=0.002 n=6)
41+
geomean 87.75k ? ¹ ²
42+
¹ summaries must be >0 to compute geomean
43+
² ratios must be >0 to compute geomean

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module github.com/mattn/go-runewidth
22

33
go 1.20
44

5-
require github.com/clipperhouse/uax29/v2 v2.0.1
5+
require github.com/clipperhouse/uax29/v2 v2.2.0

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
github.com/clipperhouse/uax29/v2 v2.0.1 h1:zi9dkuc9uqsFeg9aRjJzqPUp65zoFaaXuHKjB+z3WYE=
2-
github.com/clipperhouse/uax29/v2 v2.0.1/go.mod h1:bEQs02DmQTHXdORNFdtBie8JY1ozuiESYqgAkr7f56E=
1+
github.com/clipperhouse/uax29/v2 v2.2.0 h1:ChwIKnQN3kcZteTXMgb1wztSgaU+ZemkgWdohwgs8tY=
2+
github.com/clipperhouse/uax29/v2 v2.2.0/go.mod h1:EFJ2TJMRUaplDxHKj1qAEhCtQPW2tJSwu5BF98AuoVM=

new.txt

Lines changed: 49 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,53 @@ goos: darwin
22
goarch: arm64
33
pkg: github.com/mattn/go-runewidth
44
cpu: Apple M2
5-
BenchmarkString1WidthAll/regular-8 27 41509185 ns/op 4456485 B/op 1114112 allocs/op
6-
BenchmarkString1WidthAll/regular-8 28 41549839 ns/op 4456474 B/op 1114112 allocs/op
7-
BenchmarkString1WidthAll/regular-8 28 41507516 ns/op 4456474 B/op 1114112 allocs/op
8-
BenchmarkString1WidthAll/regular-8 28 41912821 ns/op 4456484 B/op 1114112 allocs/op
9-
BenchmarkString1WidthAll/regular-8 27 41519022 ns/op 4456482 B/op 1114112 allocs/op
10-
BenchmarkString1WidthAll/regular-8 27 41497157 ns/op 4456471 B/op 1114112 allocs/op
11-
BenchmarkString1WidthAll/lut-8 45 26027476 ns/op 4456516 B/op 1114112 allocs/op
12-
BenchmarkString1WidthAll/lut-8 45 25995505 ns/op 4456496 B/op 1114112 allocs/op
13-
BenchmarkString1WidthAll/lut-8 45 25953954 ns/op 4456501 B/op 1114112 allocs/op
14-
BenchmarkString1WidthAll/lut-8 45 25977054 ns/op 4456500 B/op 1114112 allocs/op
15-
BenchmarkString1WidthAll/lut-8 45 26004708 ns/op 4456503 B/op 1114112 allocs/op
16-
BenchmarkString1WidthAll/lut-8 45 25999668 ns/op 4456505 B/op 1114112 allocs/op
17-
BenchmarkString1Width768/regular-8 76068 15763 ns/op 3072 B/op 768 allocs/op
18-
BenchmarkString1Width768/regular-8 75843 15789 ns/op 3072 B/op 768 allocs/op
19-
BenchmarkString1Width768/regular-8 75612 15838 ns/op 3072 B/op 768 allocs/op
20-
BenchmarkString1Width768/regular-8 75717 15855 ns/op 3072 B/op 768 allocs/op
21-
BenchmarkString1Width768/regular-8 75703 15778 ns/op 3072 B/op 768 allocs/op
22-
BenchmarkString1Width768/regular-8 75901 15813 ns/op 3072 B/op 768 allocs/op
23-
BenchmarkString1Width768/lut-8 76696 15594 ns/op 3072 B/op 768 allocs/op
24-
BenchmarkString1Width768/lut-8 77456 15546 ns/op 3072 B/op 768 allocs/op
25-
BenchmarkString1Width768/lut-8 77518 15562 ns/op 3072 B/op 768 allocs/op
26-
BenchmarkString1Width768/lut-8 76616 15552 ns/op 3072 B/op 768 allocs/op
27-
BenchmarkString1Width768/lut-8 77176 15547 ns/op 3072 B/op 768 allocs/op
28-
BenchmarkString1Width768/lut-8 77379 15497 ns/op 3072 B/op 768 allocs/op
29-
BenchmarkString1WidthAllEastAsian/regular-8 25 47071812 ns/op 4456485 B/op 1114112 allocs/op
30-
BenchmarkString1WidthAllEastAsian/regular-8 25 47071985 ns/op 4456485 B/op 1114112 allocs/op
31-
BenchmarkString1WidthAllEastAsian/regular-8 25 47051745 ns/op 4456471 B/op 1114112 allocs/op
32-
BenchmarkString1WidthAllEastAsian/regular-8 25 47005855 ns/op 4456484 B/op 1114112 allocs/op
33-
BenchmarkString1WidthAllEastAsian/regular-8 25 47095312 ns/op 4456509 B/op 1114112 allocs/op
34-
BenchmarkString1WidthAllEastAsian/regular-8 25 47052542 ns/op 4456480 B/op 1114112 allocs/op
35-
BenchmarkString1WidthAllEastAsian/lut-8 45 25995477 ns/op 4456498 B/op 1114112 allocs/op
36-
BenchmarkString1WidthAllEastAsian/lut-8 45 25980138 ns/op 4456503 B/op 1114112 allocs/op
37-
BenchmarkString1WidthAllEastAsian/lut-8 45 26188815 ns/op 4456523 B/op 1114112 allocs/op
38-
BenchmarkString1WidthAllEastAsian/lut-8 45 26040702 ns/op 4456500 B/op 1114112 allocs/op
39-
BenchmarkString1WidthAllEastAsian/lut-8 45 26052057 ns/op 4456514 B/op 1114112 allocs/op
40-
BenchmarkString1WidthAllEastAsian/lut-8 45 25985549 ns/op 4456496 B/op 1114112 allocs/op
41-
BenchmarkString1Width768EastAsian/regular-8 42775 28003 ns/op 3072 B/op 768 allocs/op
42-
BenchmarkString1Width768EastAsian/regular-8 39133 27975 ns/op 3072 B/op 768 allocs/op
43-
BenchmarkString1Width768EastAsian/regular-8 43075 27877 ns/op 3072 B/op 768 allocs/op
44-
BenchmarkString1Width768EastAsian/regular-8 43077 27868 ns/op 3072 B/op 768 allocs/op
45-
BenchmarkString1Width768EastAsian/regular-8 43065 28108 ns/op 3072 B/op 768 allocs/op
46-
BenchmarkString1Width768EastAsian/regular-8 42739 28221 ns/op 3072 B/op 768 allocs/op
47-
BenchmarkString1Width768EastAsian/lut-8 76803 15582 ns/op 3072 B/op 768 allocs/op
48-
BenchmarkString1Width768EastAsian/lut-8 77178 15533 ns/op 3072 B/op 768 allocs/op
49-
BenchmarkString1Width768EastAsian/lut-8 77490 15589 ns/op 3072 B/op 768 allocs/op
50-
BenchmarkString1Width768EastAsian/lut-8 76488 15542 ns/op 3072 B/op 768 allocs/op
51-
BenchmarkString1Width768EastAsian/lut-8 77306 15590 ns/op 3072 B/op 768 allocs/op
52-
BenchmarkString1Width768EastAsian/lut-8 77364 15581 ns/op 3072 B/op 768 allocs/op
5+
BenchmarkString1WidthAll/regular-8 33 35033923 ns/op 0 B/op 0 allocs/op
6+
BenchmarkString1WidthAll/regular-8 33 34965112 ns/op 0 B/op 0 allocs/op
7+
BenchmarkString1WidthAll/regular-8 33 36307234 ns/op 0 B/op 0 allocs/op
8+
BenchmarkString1WidthAll/regular-8 33 35007705 ns/op 0 B/op 0 allocs/op
9+
BenchmarkString1WidthAll/regular-8 33 35154182 ns/op 0 B/op 0 allocs/op
10+
BenchmarkString1WidthAll/regular-8 34 35155400 ns/op 0 B/op 0 allocs/op
11+
BenchmarkString1WidthAll/lut-8 63 18688500 ns/op 0 B/op 0 allocs/op
12+
BenchmarkString1WidthAll/lut-8 63 18712474 ns/op 0 B/op 0 allocs/op
13+
BenchmarkString1WidthAll/lut-8 63 18700211 ns/op 0 B/op 0 allocs/op
14+
BenchmarkString1WidthAll/lut-8 62 18694179 ns/op 0 B/op 0 allocs/op
15+
BenchmarkString1WidthAll/lut-8 62 18708392 ns/op 0 B/op 0 allocs/op
16+
BenchmarkString1WidthAll/lut-8 63 18770608 ns/op 0 B/op 0 allocs/op
17+
BenchmarkString1Width768/regular-8 104137 11526 ns/op 0 B/op 0 allocs/op
18+
BenchmarkString1Width768/regular-8 103986 11540 ns/op 0 B/op 0 allocs/op
19+
BenchmarkString1Width768/regular-8 104079 11552 ns/op 0 B/op 0 allocs/op
20+
BenchmarkString1Width768/regular-8 103963 11530 ns/op 0 B/op 0 allocs/op
21+
BenchmarkString1Width768/regular-8 103714 11538 ns/op 0 B/op 0 allocs/op
22+
BenchmarkString1Width768/regular-8 104181 11537 ns/op 0 B/op 0 allocs/op
23+
BenchmarkString1Width768/lut-8 105150 11420 ns/op 0 B/op 0 allocs/op
24+
BenchmarkString1Width768/lut-8 104778 11423 ns/op 0 B/op 0 allocs/op
25+
BenchmarkString1Width768/lut-8 105069 11422 ns/op 0 B/op 0 allocs/op
26+
BenchmarkString1Width768/lut-8 105127 11475 ns/op 0 B/op 0 allocs/op
27+
BenchmarkString1Width768/lut-8 104742 11433 ns/op 0 B/op 0 allocs/op
28+
BenchmarkString1Width768/lut-8 105163 11432 ns/op 0 B/op 0 allocs/op
29+
BenchmarkString1WidthAllEastAsian/regular-8 28 40723347 ns/op 0 B/op 0 allocs/op
30+
BenchmarkString1WidthAllEastAsian/regular-8 28 40790299 ns/op 0 B/op 0 allocs/op
31+
BenchmarkString1WidthAllEastAsian/regular-8 28 40801338 ns/op 0 B/op 0 allocs/op
32+
BenchmarkString1WidthAllEastAsian/regular-8 28 40798216 ns/op 0 B/op 0 allocs/op
33+
BenchmarkString1WidthAllEastAsian/regular-8 28 44135253 ns/op 0 B/op 0 allocs/op
34+
BenchmarkString1WidthAllEastAsian/regular-8 28 40779546 ns/op 0 B/op 0 allocs/op
35+
BenchmarkString1WidthAllEastAsian/lut-8 62 18694165 ns/op 0 B/op 0 allocs/op
36+
BenchmarkString1WidthAllEastAsian/lut-8 62 18685047 ns/op 0 B/op 0 allocs/op
37+
BenchmarkString1WidthAllEastAsian/lut-8 62 18689273 ns/op 0 B/op 0 allocs/op
38+
BenchmarkString1WidthAllEastAsian/lut-8 62 19150346 ns/op 0 B/op 0 allocs/op
39+
BenchmarkString1WidthAllEastAsian/lut-8 63 19126154 ns/op 0 B/op 0 allocs/op
40+
BenchmarkString1WidthAllEastAsian/lut-8 62 18712619 ns/op 0 B/op 0 allocs/op
41+
BenchmarkString1Width768EastAsian/regular-8 50775 23595 ns/op 0 B/op 0 allocs/op
42+
BenchmarkString1Width768EastAsian/regular-8 51061 23563 ns/op 0 B/op 0 allocs/op
43+
BenchmarkString1Width768EastAsian/regular-8 51057 23492 ns/op 0 B/op 0 allocs/op
44+
BenchmarkString1Width768EastAsian/regular-8 51138 23445 ns/op 0 B/op 0 allocs/op
45+
BenchmarkString1Width768EastAsian/regular-8 51195 23469 ns/op 0 B/op 0 allocs/op
46+
BenchmarkString1Width768EastAsian/regular-8 51087 23482 ns/op 0 B/op 0 allocs/op
47+
BenchmarkString1Width768EastAsian/lut-8 104559 11549 ns/op 0 B/op 0 allocs/op
48+
BenchmarkString1Width768EastAsian/lut-8 104508 11483 ns/op 0 B/op 0 allocs/op
49+
BenchmarkString1Width768EastAsian/lut-8 104296 11503 ns/op 0 B/op 0 allocs/op
50+
BenchmarkString1Width768EastAsian/lut-8 104606 11485 ns/op 0 B/op 0 allocs/op
51+
BenchmarkString1Width768EastAsian/lut-8 104588 11495 ns/op 0 B/op 0 allocs/op
52+
BenchmarkString1Width768EastAsian/lut-8 104602 11518 ns/op 0 B/op 0 allocs/op
5353
PASS
54-
ok github.com/mattn/go-runewidth 65.010s
54+
ok github.com/mattn/go-runewidth 64.455s

0 commit comments

Comments
 (0)