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

Layout table with names only:

a b
c d

Time of job-list creation: 5.007 µs
Time of job-list execution: 3.099 µ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: 18.120 µ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: 5.007 µs

Layout table with names only:

a b
c d
x y z

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

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: 11.921 µ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: 4.053 µs

Layout table with names only:

a c
d
b

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

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: 11.921 µ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: 5.960 µs

Layout table with names only:

a c x
d y
b z

Time of job-list creation: 3.099 µs
Time of job-list execution: 2.861 µ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: 15.020 µ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: 5.960 µs

Layout table with names only:

a1 a2
b1 b2 b3

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