mirror of
https://github.com/mdgriffith/elm-optimize-level-2.git
synced 2024-09-11 12:15:24 +03:00
update Elm UI benchmark
This commit is contained in:
parent
aeaa27c2a4
commit
f1e76cfcd2
@ -115,6 +115,7 @@ const reportAnalysis = function(fns: string[]) {
|
||||
let fns_string = "";
|
||||
|
||||
for (const fn_name of fns) {
|
||||
if (fn_name == "html" || fn_name == "createNode"|| fn_name.startsWith("$author$project$V8")){ continue }
|
||||
fns_string = fns_string + "{ name: \"" + fn_name + "\", ref:" + fn_name + "}"
|
||||
}
|
||||
|
||||
|
@ -2,11 +2,11 @@ module Suite exposing (suite)
|
||||
|
||||
{-| -}
|
||||
|
||||
import Benchmark exposing (..)
|
||||
import V8.Benchmark.Runner.Json exposing (..)
|
||||
import Element exposing (..)
|
||||
import Element.Background as Background
|
||||
import Element.Font as Font
|
||||
|
||||
import V8.Debug
|
||||
|
||||
three =
|
||||
List.repeat 3 0
|
||||
@ -32,7 +32,7 @@ viewLevels level _ =
|
||||
|
||||
else
|
||||
Element.row
|
||||
[ Font.size 16
|
||||
, Background.color blue
|
||||
[ V8.Debug.memory "font size" (Font.size 16)
|
||||
, V8.Debug.memory "bg:blue" (Background.color blue)
|
||||
]
|
||||
(List.map (viewLevels (level - 1)) three)
|
||||
|
@ -1,8 +1,7 @@
|
||||
{
|
||||
"type": "application",
|
||||
"source-directories": [
|
||||
".",
|
||||
"../benchmark-utilities"
|
||||
"."
|
||||
],
|
||||
"elm-version": "0.19.1",
|
||||
"dependencies": {
|
||||
|
Loading…
Reference in New Issue
Block a user