rename 'bench' benchmark to 'core'

This commit is contained in:
Matthew Griffith 2020-08-16 16:40:02 -04:00
parent 93114f2b08
commit 99ca49ab7d
18 changed files with 1472 additions and 10348 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -108,27 +108,31 @@ listLiteral _ =
suite : Benchmark
suite =
describe "Basics"
[ benchmark "sum 300 list of custom types" <|
\_ -> List.foldl addMyType 0 many
, benchmark "Update single record" <|
\_ ->
updateSingleRecord
{ one = 1
, two = 2
, three = 3
}
, benchmark "Update single record via inlining creation in elm" <|
\_ ->
updateSingleRecordManually
{ one = 1
, two = 2
, three = 3
}
, benchmark "Return list literal"
listLiteral
, dictBenchmarks
, functionCalling
, jsonEncoding
[
-- benchmark "sum 300 list of custom types" <|
-- \_ -> List.foldl addMyType 0 many
-- , benchmark "Update single record" <|
-- \_ ->
-- updateSingleRecord
-- { one = 1
-- , two = 2
-- , three = 3
-- }
-- , benchmark "Update single record via inlining creation in elm" <|
-- \_ ->
-- updateSingleRecordManually
-- { one = 1
-- , two = 2
-- , three = 3
-- }
-- , benchmark "Return list literal"
-- listLiteral
-- , dictBenchmarks
-- , functionCalling
-- , jsonEncoding
-- , equality
-- ,
stringifyingNumbers
]
@ -156,6 +160,34 @@ dictBenchmarks =
]
expression x y z =
x + y * z
randomConstant =
39
equality =
describe "Equality"
[ benchmark "Equals literal int" <|
\_ ->
expression 2 9 8 == 25
, benchmark "Equals, no literal" <|
\_ ->
expression 2 9 8 == randomConstant
]
stringifyingNumbers =
describe "String.from*"
[ benchmark "String.fromInt" <|
\_ ->
String.fromInt randomConstant
]
jsonEncoding =
describe "JSON Encoding"
[ benchmark "Encode string" <|

1
testcases/core/output/elm.opt.min.js vendored Normal file

File diff suppressed because one or more lines are too long

Binary file not shown.

File diff suppressed because one or more lines are too long

Binary file not shown.