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: 251.055 µ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: 40.054 µs

Layout table with names only:

a b c d e f

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

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: 94.891 µ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: 28.849 µs

Layout table with names only:

a
b
c
d
e
f

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

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: 87.023 µ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: 27.895 µ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.014 µs
The job-list creation is worthwhile with N>0.89

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

Layout table with names only:

a c e
b d f

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

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

Layout table with names only:

a c d
b

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