Created
December 3, 2009 01:41
-
-
Save jkern/247821 to your computer and use it in GitHub Desktop.
Revisions
-
jkern revised this gist
Dec 3, 2009 . 1 changed file with 1 addition and 2 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -7,8 +7,7 @@ :if-exists :supersede :if-does-not-exist :create :element-type 'unsigned-byte) (loop repeat (* (expt 2 20) 100) ;100MB do (write-byte 102 s)))) (time (filer "temp-bytes")) -
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,14 @@ ; Writing bytes to a file, and timing the execution (defun filer (path) (with-open-file (s path :direction :output :if-exists :supersede :if-does-not-exist :create :element-type 'unsigned-byte) (loop for i from 1 to (* (expt 2 20) 100) ; 100MB do (write-byte 102 s)))) (time (filer "temp-bytes"))