@@ -1059,21 +1059,19 @@ simply joining lists of values with a tab, comma, or other separator.
10591059
10601060At the same time, ` tabulate ` is comparable to other table
10611061pretty-printers. Given a 10x10 table (a list of lists) of mixed text and
1062- numeric data, ` tabulate ` appears to be slower than ` asciitable ` , and
1063- faster than ` PrettyTable ` and ` texttable ` The following mini-benchmark
1064- was run in Python 3.9.13 on Windows 10:
1065-
1066- ================================= ========== ===========
1067- Table formatter time, μs rel. time
1068- ================================= ========== ===========
1069- csv to StringIO 12.5 1.0
1070- join with tabs and newlines 14.6 1.2
1071- asciitable (0.8.0) 192.0 15.4
1072- tabulate (0.9.0) 483.5 38.7
1073- tabulate (0.9.0, WIDE_CHARS_MODE) 637.6 51.1
1074- PrettyTable (3.4.1) 1080.6 86.6
1075- texttable (1.6.4) 1390.3 111.4
1076- ================================= ========== ===========
1062+ numeric data, ` tabulate ` appears to be faster than ` PrettyTable ` and ` texttable ` .
1063+ The following mini-benchmark was run in Python 3.11.9 on Windows 11 (x64):
1064+
1065+ ================================== ========== ===========
1066+ Table formatter time, μs rel. time
1067+ ================================== ========== ===========
1068+ join with tabs and newlines 6.3 1.0
1069+ csv to StringIO 6.6 1.0
1070+ tabulate (0.10.0) 249.2 39.3
1071+ tabulate (0.10.0, WIDE_CHARS_MODE) 325.6 51.4
1072+ texttable (1.7.0) 579.3 91.5
1073+ PrettyTable (3.11.0) 605.5 95.6
1074+ ================================== ========== ===========
10771075
10781076
10791077Version history
0 commit comments