Test: Table Layout

Links

Use setup ... Goto ...

Short introduction

The pagers of this website use a layout generator. The generator needs only a list of names separated by commas for horizontal layout and slashes for vertical layout. Slashes have higher priority than commas. Parenthesis are supported too.

The table layout with attributes colspan= and rowspan= is calculatd by the source list. Best is to begin with the setups (see above) and to play with the settings. There are always 5 independent test scenarios available.

This page was used to develop and test the layout generator for the pagers.

Test #1

Source analysis:

Beautified source:
( a1, a2 ) / ( b1, b2@w=2, b3 ), c1 / c2@h=2 / c3

Source as box model:

h( v( h( a1[2x2], a2[2x2] ) / h( b1[1x2], b2@w=2[2x2], b3[1x2] ) ), v( c1 / c2@h=2[1x2] / c3 ) )

Time of analysis: 319.958 µs

Layout table with attributes:

a1

[0,0]
2x2

a2

[2,0]
2x2

c1

[4,0]
1x1

c2

[4,1]
1x2

b1

[0,2]
1x2

b2

[1,2]
2x2

b3

[3,2]
1x2

c3

[4,3]
1x1

Time of matrix creation: 66.996 µs

Layout table with names only:

a1 a2 c1
c2
b1 b2 b3
c3

Time of job-list creation: 41.008 µs
Time of job-list execution: 17.881 µs
The job-list creation is worthwhile with N>0.83

Test #2

Source analysis:

Beautified source:
( a1 / a2, b1 / b2@h=2 / b3 ) / ( c1, c2@w=2, c3 )

Source as box model:

v( h( v( a1[2x2] / a2[2x2] ), v( b1[2x1] / b2@h=2[2x2] / b3[2x1] ) ) / h( c1, c2@w=2[2x1], c3 ) )

Time of analysis: 123.024 µs

Layout table with attributes:

a1

[0,0]
2x2

b1

[2,0]
2x1

b2

[2,1]
2x2

a2

[0,2]
2x2

b3

[2,3]
2x1

c1

[0,4]
1x1

c2

[1,4]
2x1

c3

[3,4]
1x1

Time of matrix creation: 46.968 µs

Layout table with names only:

a1 b1
b2
a2
b3
c1 c2 c3

Time of job-list creation: 42.200 µs
Time of job-list execution: 17.166 µs
The job-list creation is worthwhile with N>1.42

Test #3

Test #4

Test #5