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, d, e, f

Source as box model:

h( h( a, b ), h( c, d ), h( e, f ) )

Time of analysis: 145.197 µs

Layout table with attributes:

a

[0,0]
1x1

b

[1,0]
1x1

c

[2,0]
1x1

d

[3,0]
1x1

e

[4,0]
1x1

f

[5,0]
1x1

Time of matrix creation: 39.816 µs

Layout table with names only:

a b c d e f

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

Test #2

Source analysis:

Beautified source:
a / b / c / d / e / f

Source as box model:

v( v( a / b ) / v( c / d ) / v( e / f ) )

Time of analysis: 97.036 µs

Layout table with attributes:

a

[0,0]
1x1

b

[0,1]
1x1

c

[0,2]
1x1

d

[0,3]
1x1

e

[0,4]
1x1

f

[0,5]
1x1

Time of matrix creation: 29.087 µs

Layout table with names only:

a
b
c
d
e
f

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

Test #3

Source analysis:

Beautified source:
( a, b ) / ( c, d ) / ( e, f )

Source as box model:

v( h( a, b ) / h( c, d ) / h( e, f ) )

Time of analysis: 99.897 µs

Layout table with attributes:

a

[0,0]
1x1

b

[1,0]
1x1

c

[0,1]
1x1

d

[1,1]
1x1

e

[0,2]
1x1

f

[1,2]
1x1

Time of matrix creation: 30.041 µs

Layout table with names only:

a b
c d
e f

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

Test #4

Source analysis:

Beautified source:
a / b, c / d, e / f

Source as box model:

h( v( a / b ), v( c / d ), v( e / f ) )

Time of analysis: 79.870 µs

Layout table with attributes:

a

[0,0]
1x1

c

[1,0]
1x1

e

[2,0]
1x1

b

[0,1]
1x1

d

[1,1]
1x1

f

[2,1]
1x1

Time of matrix creation: 24.080 µs

Layout table with names only:

a c e
b d f

Time of job-list creation: 13.113 µ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:
a / b, c*2@w=2@h=2, d*2@w=2@h=2

Source as box model:

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

Time of analysis: 75.102 µs

Layout table with attributes:

a

[0,0]
1x1

c

[1,0]
2x2

d

[3,0]
2x2

b

[0,1]
1x1

Time of matrix creation: 21.935 µs

Layout table with names only:

a c d
b

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