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, b, c

Source as box model:

h( a, b, c )

Time of analysis: 56.028 µs

Layout table with attributes:

a

[0,0]
1x1

b

[1,0]
1x1

c

[2,0]
1x1

Time of matrix creation: 28.133 µs

Layout table with names only:

a b c

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

Test #2

Source analysis:

Beautified source:
a, b / c, d

Source as box model:

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

Time of analysis: 46.015 µs

Layout table with attributes:

a

[0,0]
1x2

b

[1,0]
1x1

d

[2,0]
1x2

c

[1,1]
1x1

Time of matrix creation: 20.981 µs

Layout table with names only:

a b d
c

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

Test #3

Source analysis:

Beautified source:
( a1, a2 ) / ( b1, b2, b3, b4, b5, b6, b7 ) / c

Source as box model:

v( h( a1[3x1], a2[4x1] ) / h( b1, b2, b3, b4, b5, b6, b7 ) / c[7x1] )

Time of analysis: 227.928 µs

Layout table with attributes:

a1

[0,0]
3x1

a2

[3,0]
4x1

b1

[0,1]
1x1

b2

[1,1]
1x1

b3

[2,1]
1x1

b4

[3,1]
1x1

b5

[4,1]
1x1

b6

[5,1]
1x1

b7

[6,1]
1x1

c

[0,2]
7x1

Time of matrix creation: 39.816 µs

Layout table with names only:

a1 a2
b1 b2 b3 b4 b5 b6 b7
c

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

Test #4

Source analysis:

Beautified source:
( a1*3, a2 ) / ( b1, b2, b3, b4, b5, b6, b7 ) / c

Source as box model:

v( h( a1*3[5x1], a2[2x1] ) / h( b1, b2, b3, b4, b5, b6, b7 ) / c[7x1] )

Time of analysis: 102.043 µs

Layout table with attributes:

a1

[0,0]
5x1

a2

[5,0]
2x1

b1

[0,1]
1x1

b2

[1,1]
1x1

b3

[2,1]
1x1

b4

[3,1]
1x1

b5

[4,1]
1x1

b6

[5,1]
1x1

b7

[6,1]
1x1

c

[0,2]
7x1

Time of matrix creation: 34.094 µs

Layout table with names only:

a1 a2
b1 b2 b3 b4 b5 b6 b7
c

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

Test #5

Source analysis:

Beautified source:
a, ( b, c, d / ( e, f / g, h ) ) / x / y / z

Source as box model:

h( a[1x6], v( h( b[1x3], c[1x3], v( d[3x1] / h( e[1x2], v( f / g ), h[1x2] ) ) ) / x[5x1] / y[5x1] / z[5x1] ) )

Time of analysis: 101.805 µs

Layout table with attributes:

a

[0,0]
1x6

b

[1,0]
1x3

c

[2,0]
1x3

d

[3,0]
3x1

e

[3,1]
1x2

f

[4,1]
1x1

h

[5,1]
1x2

g

[4,2]
1x1

x

[1,3]
5x1

y

[1,4]
5x1

z

[1,5]
5x1

Time of matrix creation: 36.001 µs

Layout table with names only:

a b c d
e f h
g
x
y
z

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