| Parallel | Elemente | Ergebnis throuhgput |
|---|---|---|
| x | 10 | 112280.661 |
| x | 1.000 | 8712.138 |
| x | 100.000 | 76.235 |
| 10 | 3978731.478 | |
| 1.000 | 26150.660 | |
| 100.000 | 115.023 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module RankingSpec(spec) where | |
| import Test.Hspec(describe, Spec) | |
| import Test.Hspec.QuickCheck(prop) | |
| import Test.QuickCheck(applyFun2, Fun) | |
| import qualified Data.List.NonEmpty as NE | |
| import Myocardio.Ranking(generateComplements) | |
| import Test.QuickCheck.Instances.Semigroup | |
| propType :: [a] -> Fun (a,NE.NonEmpty a) Int -> Bool |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| , vcEvents = foldMap (flip Map.singleton <*> ((,Nothing) . (uidValue . veUID))) (issueToEvent <$> issues) | |
| -- , vcEvents = foldMap (\issue -> Map.singleton ((,Nothing) . (uidValue . veUID) $ issue) issue) (issueToEvent <$> issues) | |
| -- , vcEvents = foldMap (\issue -> Map.singleton (uidValue . veUID $ issue,Nothing) issue) (issueToEvent <$> issues) | |
| -- , vcEvents = foldr (\issue map -> Map.insert ((uidValue . veUID $ issue,Nothing)) issue map) Map.empty (issueToEvent <$> issues) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| , vcEvents = foldMap (flip Map.singleton <*> ((,Nothing) . (uidValue . veUID))) (issueToEvent <$> issues) | |
| -- , vcEvents = foldMap (\issue -> Map.singleton ((,Nothing) . (uidValue . veUID) $ issue) issue) (issueToEvent <$> issues) | |
| -- , vcEvents = foldMap (\issue -> Map.singleton (uidValue . veUID $ issue,Nothing) issue) (issueToEvent <$> issues) | |
| -- , vcEvents = foldr (\issue map -> Map.insert ((uidValue . veUID $ issue,Nothing)) issue map) Map.empty (issueToEvent <$> issues) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public CompletableFuture<T> orTimeout(long timeout, TimeUnit unit) { | |
| if (unit == null) | |
| throw new NullPointerException(); | |
| if (result == null) | |
| whenComplete(new Canceller(Delayer.delay(new Timeout(this), | |
| timeout, unit))); | |
| return this; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ff_effect const effect{ | |
| FF_PERIODIC, | |
| effect_id, | |
| effect_direction, | |
| ff_trigger{ | |
| 0, | |
| 0 | |
| }, | |
| ff_replay{ | |
| 1000, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ff_effect const effect{ | |
| FF_PERIODIC, | |
| effect_id, | |
| effect_direction, | |
| ff_trigger{ | |
| 0, | |
| 0 | |
| }, | |
| ff_replay{ | |
| 1000, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lexer grammar TemplatesLexer; | |
| EXPANSION_BEGIN : '${' ; | |
| DOLLAR : '$' ; | |
| BRACE_OPEN : '{' ; | |
| BRACE_CLOSE : '}' ; | |
| PREFIX_REPLACE : '#' ; | |
| REST : ~[$\{\}#] ; | |
| parser grammar TemplatesParser; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| parser grammar TemplatesParser; | |
| options { tokenVocab=TemplatesLexer; } | |
| expr : (OPEN NAME CLOSE | TEXT)* ; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lexer grammar TemplatesLexer; | |
| TEXT : ~[$]+? ; | |
| OPEN : '${' -> mode(INSIDE) ; | |
| mode INSIDE; | |
| CLOSE : '}' -> mode(DEFAULT_MODE) ; | |
| NAME : ~[\}]+? ; |
NewerOlder