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: 37.909 µs

Layout table with attributes:

a

[0,0]
1x1

b

[1,0]
1x1

c

[2,0]
1x1

Time of matrix creation: 18.120 µs

Layout table with names only:

a b c

Time of job-list creation: 9.060 µs
Time of job-list execution: 5.960 µs
The job-list creation is worthwhile with N>0.75

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: 29.087 µ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: 12.875 µs

Layout table with names only:

a b d
c

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

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: 138.998 µ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: 25.988 µs

Layout table with names only:

a1 a2
b1 b2 b3 b4 b5 b6 b7
c

Time of job-list creation: 25.034 µs
Time of job-list execution: 13.828 µs
The job-list creation is worthwhile with N>2.06

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: 89.884 µ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: 27.895 µs

Layout table with names only:

a1 a2
b1 b2 b3 b4 b5 b6 b7
c

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

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: 85.115 µ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: 30.041 µs

Layout table with names only:

a b c d
e f h
g
x
y
z

Time of job-list creation: 20.027 µs
Time of job-list execution: 12.875 µs
The job-list creation is worthwhile with N>1.17