builder: run benchmarks
parent
6de8c722a5
commit
98060c4bc9
|
@ -11,6 +11,8 @@ IN: builder
|
||||||
|
|
||||||
: runtime ( quot -- time ) benchmark nip ;
|
: runtime ( quot -- time ) benchmark nip ;
|
||||||
|
|
||||||
|
: minutes>ms ( min -- ms ) 60 * 1000 * ;
|
||||||
|
|
||||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
SYMBOL: builder-recipients
|
SYMBOL: builder-recipients
|
||||||
|
@ -97,6 +99,7 @@ VAR: stamp
|
||||||
} }
|
} }
|
||||||
{ +stdout+ "../boot-log" }
|
{ +stdout+ "../boot-log" }
|
||||||
{ +stderr+ +stdout+ }
|
{ +stderr+ +stdout+ }
|
||||||
|
{ +timeout+ ,[ 20 minutes>ms ] }
|
||||||
} ;
|
} ;
|
||||||
|
|
||||||
: builder-test ( -- desc ) `{ ,[ factor-binary ] "-run=builder.test" } ;
|
: builder-test ( -- desc ) `{ ,[ factor-binary ] "-run=builder.test" } ;
|
||||||
|
@ -145,9 +148,21 @@ SYMBOL: build-status
|
||||||
|
|
||||||
! bootstrap [ "Bootstrap error" print "../boot-log" cat ] run-or-bail
|
! bootstrap [ "Bootstrap error" print "../boot-log" cat ] run-or-bail
|
||||||
|
|
||||||
bootstrap <process-stream> dup dispose process-stream-process wait-for-process zero? not
|
! bootstrap
|
||||||
[ "Bootstrap error" print "../boot-log" cat "bootstrap error" throw ]
|
! <process-stream> dup dispose process-stream-process wait-for-process
|
||||||
|
! zero? not
|
||||||
|
! [ "Bootstrap error" print "../boot-log" cat "bootstrap error" throw ]
|
||||||
|
! when
|
||||||
|
|
||||||
|
[
|
||||||
|
bootstrap
|
||||||
|
<process-stream> dup dispose process-stream-process wait-for-process
|
||||||
|
zero? not
|
||||||
|
[ "bootstrap non-zero" throw ]
|
||||||
when
|
when
|
||||||
|
]
|
||||||
|
[ "Bootstrap error" print "../boot-log" cat "bootstrap" throw ]
|
||||||
|
recover
|
||||||
|
|
||||||
[ builder-test try-process ]
|
[ builder-test try-process ]
|
||||||
[ "Builder test error" print throw ]
|
[ "Builder test error" print throw ]
|
||||||
|
@ -160,6 +175,9 @@ SYMBOL: build-status
|
||||||
"Did not pass load-everything: " print "../load-everything-vocabs" cat
|
"Did not pass load-everything: " print "../load-everything-vocabs" cat
|
||||||
"Did not pass test-all: " print "../test-all-vocabs" cat
|
"Did not pass test-all: " print "../test-all-vocabs" cat
|
||||||
|
|
||||||
|
"Benchmarks: " print
|
||||||
|
"../benchmarks" [ stdio get contents eval ] with-file-in .
|
||||||
|
|
||||||
] with-file-out ;
|
] with-file-out ;
|
||||||
|
|
||||||
: build ( -- )
|
: build ( -- )
|
||||||
|
@ -168,8 +186,6 @@ SYMBOL: build-status
|
||||||
|
|
||||||
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||||
|
|
||||||
: minutes>ms ( min -- ms ) 60 * 1000 * ;
|
|
||||||
|
|
||||||
: updates-available? ( -- ? )
|
: updates-available? ( -- ? )
|
||||||
git-id
|
git-id
|
||||||
git-pull run-process drop
|
git-pull run-process drop
|
||||||
|
|
|
@ -6,7 +6,7 @@ USING: kernel namespaces sequences assocs builder continuations
|
||||||
prettyprint
|
prettyprint
|
||||||
tools.browser
|
tools.browser
|
||||||
tools.test
|
tools.test
|
||||||
bootstrap.stage2 ;
|
bootstrap.stage2 benchmark ;
|
||||||
|
|
||||||
IN: builder.test
|
IN: builder.test
|
||||||
|
|
||||||
|
@ -16,9 +16,12 @@ IN: builder.test
|
||||||
: do-tests ( -- )
|
: do-tests ( -- )
|
||||||
run-all-tests keys "../test-all-vocabs" [ . ] with-file-out ;
|
run-all-tests keys "../test-all-vocabs" [ . ] with-file-out ;
|
||||||
|
|
||||||
|
: do-benchmarks ( -- ) run-benchmarks "../benchmarks" [ . ] with-file-out ;
|
||||||
|
|
||||||
: do-all ( -- )
|
: do-all ( -- )
|
||||||
bootstrap-time get "../boot-time" [ . ] with-file-out
|
bootstrap-time get "../boot-time" [ . ] with-file-out
|
||||||
[ do-load ] runtime "../load-time" [ . ] with-file-out
|
[ do-load ] runtime "../load-time" [ . ] with-file-out
|
||||||
[ do-tests ] runtime "../test-time" [ . ] with-file-out ;
|
[ do-tests ] runtime "../test-time" [ . ] with-file-out
|
||||||
|
do-benchmarks ;
|
||||||
|
|
||||||
MAIN: do-all
|
MAIN: do-all
|
Loading…
Reference in New Issue