Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/GAP/hpcgap/demo/   (Algebra von RWTH Aachen Version 4.15.1©)  Datei vom 18.9.2025 mit Größe 2 kB image not shown  

Quelle  intersection.g   Sprache: unbekannt

 
Spracherkennung für: .g vermutete Sprache: Unknown {[0] [0] [0]} [Methode: Schwerpunktbildung, einfache Gewichte, sechs Dimensionen]

#
# This is a test that Chris Jefferson <caj21@st-andrews.ac.uk> ran to benchmark
# HPC-GAP against legacy GAP
#
# This file can be read in HPC-GAP and legacy GAP
#
# All runtimes are in seconds, time taken by gettimeofday syscall
#
# On: Intel(R) Core(TM) i5-3320M CPU @ 2.60GHz 12GB RAM
#     DragonFly v4.3.1.522.geab4ae-DEVELOPMENT
#
#     GAP
#     v4.7.8-405-gd56a79a
#     [ 1.3987710.5475690.5864790.5434940.5516660.608868,
#       0.5388310.5508740.5906470.533375 ]
#
#     HPC-GAP
#     v4.7.8-1937-g27f9adb
#     ./make.hpc GC=boehm-par GCBLKSIZE=32768 ZMQ=no
#
#     ./gap
#     [ 1.8638091.0593021.0292121.0167741.0258281.002134
#     , 1.0119060.9903091.0093150.975533 ] 
#
#     ./gap -m 2g
#     [ 1.1391571.1402611.1311341.1410771.1462361.154671
#     , 1.0909850.9183370.9090920.914071 ]  
#
#     export GC_DONT_GC=1
#     ./gap -m 3g
#
#     [ 1.2004191.1886181.195371.273881.1997071.2004
#     , 1.1891361.1902231.1978861.194482 ]
#
#     ./make.hpc ZMQ=no
#     ./gap
#     [ 1.1779971.2044051.1481411.1997331.152361.155158
#     , 1.1552911.2002961.1492031.173227 ]
#
#     ./gap -m 2g
#     [ 1.2101711.2035081.2102131.1979071.2003021.274284
#     , 0.9865070.9126610.9242530.913704 ]
#
#     export GC_DONT_GC=1
#     ./gap -m 3g
#     [ 1.9913881.1669751.1925221.1831641.2090471.199393,
#       1.2051051.2137221.2118791.215503 ]
#     

# (ZMQ=no is necessary because zeromq as bundled with hpcgap does not work
#  on DragonFly)

ReadGapRoot("demo/bench.g");

p := (1,39,45,82,28,37,23,36,31,83,77,93,29,58,87,91,63,71,70,56,89,74,3,9,
16,54,97,60,96,26,84,40,79,13,73,48,86,72,34,22,35,57,2,10,65,59,66)(4,
92,81,12,21,64,42,25,88,85,33,100,49,24,20,76,8)(5,94,27,18,14,38)(6,53,
98,51,67,99,17,78,68,19,11,52,32,75,47,41,7,95,46,62,43,50,44,55)(15,69,
30,61,90);

res := [];

for i in [1..10] do
    Print("run ", i, "...");
    Add(res, Bench( do
       local g, h;
       g := DirectProduct(List([1..10], x -> AlternatingGroup(10)));
       h := g^p;
       Intersection(g,h);
    od) );
    Print(" completed.\n");
od;
Print(res);

[Dauer der Verarbeitung: 0.36 Sekunden]