Advertisement
logicmoo

QLF Timings on 6million records

Jul 25th, 2015
388
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. root@c3po:/opt/PrologMUD/pack/pldata_larkc/prolog/el_holds# swipl
  2. Welcome TO SWI-Prolog (Multi-threaded, 64 bits, Version 7.3.4)
  3. Copyright (c) 1990-2015 University of Amsterdam, VU Amsterdam
  4. SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software,
  5. AND you are welcome TO redistribute it under certain conditions.
  6. Please visit http://www.swi-prolog.org FOR details.
  7.  
  8. FOR help, use ?- help(Topic). OR ?- apropos(Word).
  9.  
  10. ?- time(['el_assertions.qlf']).
  11. % 3,648 inferences, 6.205 CPU in 6.213 seconds (100% CPU, 588 Lips)
  12. true.
  13.  
  14. ?- time(qsave_program(compatQLF0,[autoload(false),goal((statistics(cputime,Time),writeln(user_output,Time)))])).
  15. % 22,514,037 inferences, 36.441 CPU in 36.511 seconds (100% CPU, 617815 Lips)
  16. true.
  17.  
  18. ?-
  19. % halt
  20. root@c3po:/opt/PrologMUD/pack/pldata_larkc/prolog/el_holds# ./compatQLF0
  21. 7.112799221
  22.  
  23.  
  24. root@c3po:/opt/PrologMUD/pack/pldata_larkc/prolog/el_holds# ls -l
  25. total 2263188
  26. -rwxr-xr-x 1 root root  563042175 Jul 25 18:07 compatQLF0
  27. -rwxr-xr-x 1 root root       2911 Jul  3 03:03 el_assertions.pl
  28. -rwxr-xr-x 1 root root   69078779 Jun 19 02:55 el_assertions.pl.rar
  29. -rwxr-xr-x 1 root root  560782725 Jul  3 03:13 el_assertions.qlf
  30. -rwxr-xr-x 1 root root 1124578930 Jun 18 20:41 el_holds.pl
  31.  
  32.  
  33.  
  34. root@c3po:/opt/PrologMUD/pack/pldata_larkc/prolog/el_holds# cat el_assertions.pl
  35.  
  36. :-module(el_assertions,[]).
  37.  
  38.  
  39. :- style_check(-discontiguous).
  40. :- style_check(-singleton).
  41. % :- style_check(-atom).
  42.  
  43. :- dynamic el_holds_pred/1.
  44.  
  45. el_holds_pred_impl(el_holds_implies_plist_upred).
  46. el_holds_pred_impl(el_holds_unary_implies_plist_upred).
  47. el_holds_pred_impl(el_holds_unary_implies_upred).
  48. el_holds_pred_impl(el_holds_implies_plist_varg).
  49. el_holds_pred_impl(el_holds_implies_upred).
  50. el_holds_pred_impl(el_holds_implies_varg).
  51. el_holds_pred_impl(el_holds_implies_plist).
  52. el_holds_pred_impl(el_holds_implies).
  53.  
  54. el_holds_pred_isa(el_holds_isa_varg).
  55. el_holds_pred_isa(el_holds_isa).
  56.  
  57. el_holds_pred(el_holds_varg).
  58. el_holds_pred(el_holds).
  59.  
  60. exportAll(Pred):- forall(between(4,16,X),
  61.   (dynamic(Pred/X),
  62.    export(Pred/X))).
  63.  
  64. :-  exportAll(el_holds_t),
  65.     exportAll(el_holds_implies_t),
  66.     forall(el_holds_pred_impl(Pred),exportAll(Pred)),
  67.     forall(el_holds_pred_isa(Pred),exportAll(Pred)),
  68.     forall(el_holds_pred(Pred),exportAll(Pred)),!.
  69.  
  70.  
  71. :- ignore(((between(4,16,X),
  72.        el_holds_pred_impl(Pred),length(PLIST,X),
  73.        A =.. [el_holds_implies_t|PLIST],
  74.        B =.. [Pred|PLIST],
  75.        asserta((A:-B))),fail)).
  76.  
  77. :- ignore(((between(4,16,X),
  78.        el_holds_pred(Pred),length(PLIST,X),
  79.        A =.. [el_holds_t|PLIST],
  80.        B =.. [Pred|PLIST],
  81.        asserta((A:-B))),fail)).
  82.  
  83.  
  84. el_holds_t(isa,E,C,MT,PROPS):-el_holds_isa_var(C,E,MT,PROPS).
  85. el_holds(isa,E,C,MT,PROPS):-el_holds_isa(C,E,MT,PROPS).
  86.  
  87. :- include(el_holds).
  88.  
  89. end_of_file.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement