• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

PolyMathOrg / PolyMath / 4385132063

pending completion
4385132063

push

github

GitHub
Merge pull request #316 from jecisc/divers-cleanings

2977 of 2977 new or added lines in 214 files covered. (100.0%)

19725 of 24212 relevant lines covered (81.47%)

2.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/Math-Benchmarks-ODE/PMODEBenchmark.class.st
1
Class {
2
        #name : #PMODEBenchmark,
3
        #superclass : #SMarkSuite,
4
        #instVars : [
5
                'dt',
6
                'function',
7
                'startState',
8
                'startTime',
9
                'endTime'
10
        ],
11
        #category : #'Math-Benchmarks-ODE'
12
}
13

14
{ #category : #defaults }
15
PMODEBenchmark class >> defaultProblemSize [
×
16
        ^200
×
17
]
×
18

19
{ #category : #'as yet unclassified' }
20
PMODEBenchmark class >> runAll: numOfIterations [
×
21
        ^ ((self withAllSubclasses collect: [ :suite |
×
22
                suite run: numOfIterations]) do: [ :suiteResult |
×
23
                        suiteResult  results removeKey: #baseBenchmark ]) reject: [ :runner |
×
24
                                runner results isEmpty ]
×
25
]
×
26

27
{ #category : #'as yet unclassified' }
28
PMODEBenchmark class >> runAllToString: numOfIterations [
×
29
        ^ (self runAll: numOfIterations) joinUsing: Character cr
×
30
]
×
31

32
{ #category : #'as yet unclassified' }
33
PMODEBenchmark class >> runAllToXML: numOfIterations [
×
34
        | writer |
×
35
        writer := XMLWriter new.
×
36
        writer
×
37
                enablePrettyPrinting;
×
38
                xml.
×
39
        writer tag: 'smark' with: [
×
40
                (self runAll: numOfIterations) do: [ :runner |
×
41
                        writer tag: 'suite' attributes: (Dictionary with: #name -> runner suite class name asString) with: [
×
42
                                runner results keysAndValuesDo: [ :key :value |
×
43
                                        writer tag: key with: ((value inject: 0 into: [ :subTotal :result |
×
44
                                                                subTotal + result total ]) / value size) asFloat asString] ] ] ].
×
45

×
46
        ^ writer
×
47
]
×
48

49
{ #category : #running }
50
PMODEBenchmark >> baseBenchmark [
×
51
        1 to: self problemSize do: [ :i |
×
52
                self nil ]
×
53
]
×
54

55
{ #category : #running }
56
PMODEBenchmark >> nil [
×
57
]
×
58

59
{ #category : #running }
60
PMODEBenchmark >> setUp [
×
61
        dt := 0.09.
×
62
        function :=  [:x :t | (t ** 4) * (t sin ** (2 * t cos)) * ( (2 * t negated) * (2 * t sin) * (t sin log) +
×
63
                t * (2 * t cos) * (t tan reciprocal) + 5)].
×
64
        startState := 0.
×
65
        startTime := 0.3 .
×
66
        endTime := Float halfPi
×
67
]
×
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc