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: 72.002 µ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: 15.020 µs

Layout table with names only:

a1 a2 c1
c2
b1 b2 b3
c3

Time of job-list creation: 7.868 µs
Time of job-list execution: 3.099 µs
The job-list creation is worthwhile with N>0.66

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: 21.935 µ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: 9.060 µs

Layout table with names only:

a1 b1
b2
a2
b3
c1 c2 c3

Time of job-list creation: 6.199 µs
Time of job-list execution: 2.861 µs
The job-list creation is worthwhile with N>1.00

Test #3

Test #4

Test #5