File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -59,6 +59,23 @@ testdata_buf = serialized_buf(testdata)
59
59
g[" serialize" , " Matrix{Float64}" ] = @benchmarkable serialize (io, $ testdata) setup= (io= IOBuffer ())
60
60
g[" deserialize" , " Matrix{Float64}" ] = @benchmarkable (seek ($ testdata_buf, 0 ); deserialize ($ testdata_buf))
61
61
62
+ # ##################################
63
+ # limited array printing (#23681) #
64
+ # ##################################
65
+
66
+ g = addgroup! (SUITE, " array_limit" , [" array" , " display" ])
67
+
68
+ test_vector = rand (10 ^ 8 )
69
+ test_column_matrix = reshape (test_vector, length (test_vector), 1 )
70
+ test_square_matrix = reshape (test_vector, 10 ^ 4 , 10 ^ 4 )
71
+ disp = TextDisplay (IOContext (devnull , :limit => true ))
72
+
73
+ for A in (test_vector, test_column_matrix, test_square_matrix)
74
+ g[" display" , " $(typeof (A))$(size (A)) " ] = @benchmarkable display ($ disp, $ A)
75
+ end
76
+
77
+ # ##################################
78
+
62
79
function perf_skipchars_21109 ()
63
80
mktemp () do _, file
64
81
println (file, " G" )
You can’t perform that action at this time.
0 commit comments