diff options
| author | Andrea Corallo | 2020-09-14 22:59:41 +0200 |
|---|---|---|
| committer | Andrea Corallo | 2020-09-14 23:06:42 +0200 |
| commit | 5f37c18581ea1a36e9dcb5d4ac741aafb0398ebe (patch) | |
| tree | 2df8b566ae7bcb50eb0d236b7753b82b412bd485 | |
| parent | e9728375763c61e3b890530b202b856d28c44646 (diff) | |
| download | emacs-5f37c18581ea1a36e9dcb5d4ac741aafb0398ebe.tar.gz emacs-5f37c18581ea1a36e9dcb5d4ac741aafb0398ebe.zip | |
* test/src/comp-tests.el (comp-tests-bootstrap): Print compilation time.
| -rw-r--r-- | test/src/comp-tests.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el index b147bd6789c..220bf1c7736 100644 --- a/test/src/comp-tests.el +++ b/test/src/comp-tests.el | |||
| @@ -58,11 +58,15 @@ Check that the resulting binaries do not differ." | |||
| 58 | (load (concat comp-src "c") nil nil t t)) | 58 | (load (concat comp-src "c") nil nil t t)) |
| 59 | (should-not (subr-native-elisp-p (symbol-function #'native-compile))) | 59 | (should-not (subr-native-elisp-p (symbol-function #'native-compile))) |
| 60 | (message "Compiling stage1...") | 60 | (message "Compiling stage1...") |
| 61 | (let ((comp1-eln (native-compile comp1-src))) | 61 | (let* ((t0 (current-time)) |
| 62 | (comp1-eln (native-compile comp1-src))) | ||
| 63 | (message "Done in %d secs" (float-time (time-since t0))) | ||
| 62 | (load comp1-eln nil nil t t) | 64 | (load comp1-eln nil nil t t) |
| 63 | (should (subr-native-elisp-p (symbol-function 'native-compile))) | 65 | (should (subr-native-elisp-p (symbol-function 'native-compile))) |
| 64 | (message "Compiling stage2...") | 66 | (message "Compiling stage2...") |
| 65 | (let ((comp2-eln (native-compile comp2-src))) | 67 | (let ((t0 (current-time)) |
| 68 | (comp2-eln (native-compile comp2-src))) | ||
| 69 | (message "Done in %d secs" (float-time (time-since t0))) | ||
| 66 | (message "Comparing %s %s" comp1-eln comp2-eln) | 70 | (message "Comparing %s %s" comp1-eln comp2-eln) |
| 67 | (should (= (call-process "cmp" nil nil nil comp1-eln comp2-eln) 0)))))) | 71 | (should (= (call-process "cmp" nil nil nil comp1-eln comp2-eln) 0)))))) |
| 68 | 72 | ||