@@ -0,0 +1,109 @@
1+module Syntax.Records (benchmark) where
3+import Benchmark exposing (Benchmark, test, suite)
7+benchmark : Benchmark.Benchmark
11+ [ test "1 of 2 fields" (update1of2 record2)
12+ , test "2 of 2 fields" (update2of2 record2)
13+ , test "2 of 2 new" (new2of2 record2)
14+ , test "3 of 5 fields" (update3of5 record5)
15+ , test "5 of 5 fields" (update5of5 record5)
16+ , test "5 of 5 new" (new5of5 record5)
19+ [ test "2 of 2" (access2of2 record2)
20+ , test "4 of 10" (access4of10 record10)
25+-- RECORDS WITH 2 FIELDS
54+-- RECORDS WITH 5 FIELDS
57+ { product = "iPhone 6s"
67+ | product = "iPhone 6s Plus"
75+ | product = "iPhone 6"
76+ , storage = r.storage
84+ { product = "iPhone 6"
85+ , storage = r.storage
92+-- RECORDS WITH 10 FIELDS
109+ r.a + r.b + r.c + r.d