DataMuseum.dk

Presents historical artifacts from the history of:

Rational R1000/400

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about Rational R1000/400

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - download

⟦670fa2d24⟧ Ada Source

    Length: 4096 (0x1000)
    Types: Ada Source
    Notes: 03_class, FILE, R1k_Segment, e3_tag, procedure Bench_Lex, seg_011eda

Derivation

└─⟦8527c1e9b⟧ Bits:30000544 8mm tape, Rational 1000, Arrival backup of disks in PAM's R1000
    └─ ⟦cfc2e13cd⟧ »Space Info Vol 2« 
        └─⟦this⟧ 

E3 Source Code



with Context;
with Engine_Lex_Mea;
with Instance;

with Calendar;
with Text_Io;

with Bench_Actions_D, Bench_Conditions_D, Bench_Facts_D;
use Bench_Actions_D, Bench_Conditions_D;

procedure Bench_Lex is

    package Fio is new Text_Io.Fixed_Io (Num => Duration);

    Result : Boolean;
    T1, T2 : Calendar.Time;
    S      : Duration;

    package Search_Bench is
       new Engine_Lex_Mea (Context_Name => "BENCH",
                           Resolution   => Context.Lex,
                           Used_Rules   => 4,
                           Name_1       => "Creation des objets",
                           Condition_1  => Creation_Objets_Condition,
                           Action_1     => Creation_Objets_Action,
                           Name_2       => "Fin de creation",
                           Condition_2  => Fin_Creation_Condition,
                           Action_2     => Fin_Creation_Action,
                           Name_3       => "Recherche d'un objet",
                           Condition_3  => Recherche_Objet_Condition,
                           Action_3     => Recherche_Objet_Action,
                           Name_4       => "Iteration",
                           Condition_4  => Iteration_Condition,
                           Action_4     => Iteration_Action);


begin

    Text_Io.Put_Line ("*********************************************");
    Text_Io.Put_Line ("        TEST DE PERFORMANCE STRATEGIE LEX        ");
    Text_Io.Put_Line ("*********************************************");

    T1 := Calendar.Clock;
    Bench_Facts_D.Create;
    Result := Search_Bench.Inference (Instance.Any);
    T2     := Calendar.Clock;
    S      := Calendar."-" (T2, T1);
    Text_Io.Put ("FIN DU TEST : temps passe (en secondes) = ");
    Fio.Put (S);
    Bench_Facts_D.Delete;

end Bench_Lex;

pragma Main;

E3 Meta Data

    nblk1=3
    nid=3
    hdr6=4
        [0x00] rec0=1e rec1=00 rec2=01 rec3=054
        [0x01] rec0=1a rec1=00 rec2=02 rec3=000
        [0x02] rec0=40 rec1=10 rec2=43 rec3=575
    tail 0x2170df2e682466ebf722e 0x42a00088462063c03
Free Block Chain:
  0x3: 0000  00 00 00 03 00 00 00 bf f2 00 00 00 00 00 00 00  ┆                ┆