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:
( a@w=2, b ) / ( c, d@w=2 )

Source as box model:

v( h( a@w=2[2x1], b ) / h( c, d@w=2[2x1] ) )

Time of analysis: 272.989 µs

Layout table with attributes:

a

[0,0]
2x1

b

[2,0]
1x1

c

[0,1]
1x1

d

[1,1]
2x1

Time of matrix creation: 39.101 µs

Layout table with names only:

a b
c d

Time of job-list creation: 21.935 µs
Time of job-list execution: 13.113 µs
The job-list creation is worthwhile with N>0.84

Test #2

Source analysis:

Beautified source:
( a@w=2, b ) / ( c, d@w=2 ) / ( x, y, z )

Source as box model:

v( h( a@w=2[2x1], b ) / h( c, d@w=2[2x1] ) / h( x, y, z ) )

Time of analysis: 104.904 µs

Layout table with attributes:

a

[0,0]
2x1

b

[2,0]
1x1

c

[0,1]
1x1

d

[1,1]
2x1

x

[0,2]
1x1

y

[1,2]
1x1

z

[2,2]
1x1

Time of matrix creation: 31.948 µs

Layout table with names only:

a b
c d
x y z

Time of job-list creation: 18.835 µs
Time of job-list execution: 14.067 µs
The job-list creation is worthwhile with N>1.05

Test #3

Source analysis:

Beautified source:
a@h=2 / b, c / d@h=2

Source as box model:

h( v( a@h=2[1x2] / b ), v( c / d@h=2[1x2] ) )

Time of analysis: 72.956 µs

Layout table with attributes:

a

[0,0]
1x2

c

[1,0]
1x1

d

[1,1]
1x2

b

[0,2]
1x1

Time of matrix creation: 25.988 µs

Layout table with names only:

a c
d
b

Time of job-list creation: 15.020 µs
Time of job-list execution: 8.106 µs
The job-list creation is worthwhile with N>0.84

Test #4

Source analysis:

Beautified source:
a@h=2 / b, c / d@h=2, x / y / z

Source as box model:

h( v( a@h=2[1x2] / b ), v( c / d@h=2[1x2] ), v( x / y / z ) )

Time of analysis: 70.095 µs

Layout table with attributes:

a

[0,0]
1x2

c

[1,0]
1x1

x

[2,0]
1x1

d

[1,1]
1x2

y

[2,1]
1x1

b

[0,2]
1x1

z

[2,2]
1x1

Time of matrix creation: 27.895 µs

Layout table with names only:

a c x
d y
b z

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

Test #5

Source analysis:

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

Source as box model:

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

Time of analysis: 84.877 µs

Layout table with attributes:

a1

[0,0]
2x1

a2

[2,0]
2x1

b1

[0,1]
1x1

b2

[1,1]
2x1

b3

[3,1]
1x1

Time of matrix creation: 30.994 µs

Layout table with names only:

a1 a2
b1 b2 b3

Time of job-list creation: 45.061 µs
Time of job-list execution: 10.967 µs
The job-list creation is worthwhile with N>2.25