mirror of
https://github.com/mdgriffith/elm-optimize-level-2.git
synced 2024-11-29 12:46:32 +03:00
rename 'bench' benchmark to 'core'
This commit is contained in:
parent
93114f2b08
commit
99ca49ab7d
1
testcases/bench/output/elm.opt.min.js
vendored
1
testcases/bench/output/elm.opt.min.js
vendored
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
Binary file not shown.
@ -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" <|
|
File diff suppressed because it is too large
Load Diff
1
testcases/core/output/elm.opt.min.js
vendored
Normal file
1
testcases/core/output/elm.opt.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
testcases/core/output/elm.opt.min.js.gz
Normal file
BIN
testcases/core/output/elm.opt.min.js.gz
Normal file
Binary file not shown.
File diff suppressed because it is too large
Load Diff
1
testcases/core/output/elm.opt.transformed.min.js
vendored
Normal file
1
testcases/core/output/elm.opt.transformed.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
BIN
testcases/core/output/elm.opt.transformed.min.js.gz
Normal file
BIN
testcases/core/output/elm.opt.transformed.min.js.gz
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user