home *** CD-ROM | disk | FTP | other *** search
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: Tape Archive
(archive/tar).
You can browse this item here: benchmrk.tar
Confidence | Program | Detection | Match Type | Support
|
---|
100%
| dexvert
| Tape Archive (archive/tar)
| magic
| Supported |
100%
| file
| tar archive
| default
| |
99%
| file
| tar archive (V7), file benchmarks/, mode 755 , uid 243 , gid 12 , size 0 , seconds 4402044403
| default
| |
98%
| file
| data
| default
| |
100%
| siegfried
| x-fmt/265 Tape Archive Format
| default
| |
100%
| lsar
| Tar
| default
| |
100%
| gt2
| TAR Archiv gefunden (Auflistung ist deaktiviert)
| default
| |
100%
| disktype
| Pre-POSIX tar archive
| default
|
|
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 00 00 00 00 00 |benchmar|ks/.....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000060| 00 00 00 00 20 20 20 37 | 35 35 20 00 20 20 20 32 |.... 7|55 . 2|
|00000070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000080| 20 20 20 20 20 20 30 20 | 20 34 34 30 32 30 34 34 | 0 | 4402044|
|00000090| 34 30 33 20 20 20 36 31 | 32 33 00 20 00 00 00 00 |403 61|23. ....|
|000000a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000000f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000001f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000200| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 6d 61 6b 65 66 |benchmar|ks/makef|
|00000210| 69 6c 65 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |ile.....|........|
|00000220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000280| 20 20 20 33 31 34 33 20 | 20 34 34 30 32 30 34 34 | 3143 | 4402044|
|00000290| 33 34 37 20 20 20 37 37 | 32 30 00 20 00 00 00 00 |347 77|20. ....|
|000002a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000002f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000003f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000400| 23 0a 23 09 54 68 69 73 | 20 6d 61 6b 65 66 69 6c |#.#.This| makefil|
|00000410| 65 20 62 75 69 6c 64 73 | 20 73 65 76 65 72 61 6c |e builds| several|
|00000420| 20 62 65 6e 63 68 6d 61 | 72 6b 73 20 66 6f 72 20 | benchma|rks for |
|00000430| 55 4e 49 58 0a 23 09 0a | 23 09 54 68 65 20 42 59 |UNIX.#..|#.The BY|
|00000440| 54 45 20 6d 61 67 61 7a | 69 6e 65 20 62 65 6e 63 |TE magaz|ine benc|
|00000450| 68 6d 61 72 6b 73 20 61 | 72 65 20 68 65 72 65 2c |hmarks a|re here,|
|00000460| 20 61 73 20 77 65 6c 6c | 20 61 73 20 69 6f 63 61 | as well| as ioca|
|00000470| 6c 6c 2c 0a 23 09 77 68 | 69 63 68 20 63 61 6d 65 |ll,.#.wh|ich came|
|00000480| 20 6f 66 66 20 55 73 65 | 6e 65 74 2c 20 61 6e 64 | off Use|net, and|
|00000490| 20 44 68 72 79 73 74 6f | 6e 65 2e 0a 23 0a 23 09 | Dhrysto|ne..#.#.|
|000004a0| 74 79 70 65 3a 09 6d 61 | 6b 65 09 09 23 74 6f 20 |type:.ma|ke..#to |
|000004b0| 62 75 69 6c 64 20 61 6c | 6c 20 74 68 65 20 70 72 |build al|l the pr|
|000004c0| 6f 67 72 61 6d 73 0a 23 | 09 09 6d 61 6b 65 20 72 |ograms.#|..make r|
|000004d0| 75 6e 09 23 74 6f 20 72 | 75 6e 20 61 6c 6c 20 6f |un.#to r|un all o|
|000004e0| 66 20 74 68 65 20 62 65 | 6e 63 68 6d 61 72 6b 73 |f the be|nchmarks|
|000004f0| 0a 23 0a 23 09 09 6d 61 | 6b 65 20 72 75 6e 20 3e |.#.#..ma|ke run >|
|00000500| 72 65 73 75 6c 74 73 20 | 32 3e 26 31 0a 23 09 09 |results |2>&1.#..|
|00000510| 6d 61 6b 65 20 72 65 70 | 6f 72 74 09 09 23 47 65 |make rep|ort..#Ge|
|00000520| 6e 65 72 61 74 65 73 20 | 68 61 6e 64 79 20 73 75 |nerates |handy su|
|00000530| 6d 6d 61 72 79 0a 23 0a | 23 09 63 6f 6c 6c 65 63 |mmary.#.|#.collec|
|00000540| 74 65 64 20 62 79 20 52 | 69 63 6b 20 52 69 63 68 |ted by R|ick Rich|
|00000550| 61 72 64 73 6f 6e 2c 20 | 50 43 20 52 65 73 65 61 |ardson, |PC Resea|
|00000560| 72 63 68 2c 20 49 6e 63 | 2e 20 28 32 30 31 29 20 |rch, Inc|. (201) |
|00000570| 39 32 32 2d 31 31 33 34 | 0a 23 09 09 2e 2e 21 69 |922-1134|.#....!i|
|00000580| 68 6e 70 34 21 68 6f 75 | 78 6d 21 63 61 73 74 6f |hnp4!hou|xm!casto|
|00000590| 72 21 70 63 72 61 74 21 | 72 65 72 0a 23 09 4e 4f |r!pcrat!|rer.#.NO|
|000005a0| 54 45 3a 09 73 65 6e 64 | 20 6d 65 20 74 68 65 20 |TE:.send| me the |
|000005b0| 44 68 72 79 73 74 6f 6e | 65 20 62 65 6e 63 68 6d |Dhryston|e benchm|
|000005c0| 61 72 6b 73 20 72 65 73 | 75 6c 74 73 20 66 6f 72 |arks res|ults for|
|000005d0| 20 61 6e 79 20 6e 65 77 | 20 6d 61 63 68 69 6e 65 | any new| machine|
|000005e0| 0a 23 09 09 49 27 6c 6c | 20 73 75 6d 6d 61 72 69 |.#..I'll| summari|
|000005f0| 7a 65 20 66 6f 72 20 74 | 68 65 20 6e 65 78 74 20 |ze for t|he next |
|00000600| 72 65 6c 65 61 73 65 20 | 6f 66 20 64 68 72 79 73 |release |of dhrys|
|00000610| 74 6f 6e 65 2e 0a 23 0a | 53 48 45 4c 4c 3d 2f 62 |tone..#.|SHELL=/b|
|00000620| 69 6e 2f 73 68 0a 46 49 | 4c 45 53 3d 09 6d 61 6b |in/sh.FI|LES=.mak|
|00000630| 65 66 69 6c 65 20 64 72 | 79 2e 52 45 41 44 4d 45 |efile dr|y.README|
|00000640| 5c 0a 09 64 72 65 61 64 | 2e 63 20 20 20 66 63 61 |\..dread|.c fca|
|00000650| 6c 6c 2e 63 20 20 20 66 | 6c 6f 61 74 2e 63 20 20 |ll.c f|loat.c |
|00000660| 20 69 6f 63 61 6c 6c 2e | 63 20 6c 6f 6f 70 2e 63 | iocall.|c loop.c|
|00000670| 20 20 20 20 70 69 70 65 | 73 2e 63 20 20 20 73 69 | pipe|s.c si|
|00000680| 65 76 65 2e 63 20 5c 0a | 09 74 73 74 2e 73 68 20 |eve.c \.|.tst.sh |
|00000690| 64 77 72 69 74 65 2e 63 | 20 66 69 62 6f 2e 63 20 |dwrite.c| fibo.c |
|000006a0| 20 20 20 69 6f 66 69 6c | 65 2e 63 20 20 6d 75 6c | iofil|e.c mul|
|000006b0| 74 69 2e 73 68 20 20 73 | 63 61 6c 6c 2e 63 20 20 |ti.sh s|call.c |
|000006c0| 20 62 79 74 65 73 6f 72 | 74 2e 63 20 5c 0a 09 64 | bytesor|t.c \..d|
|000006d0| 72 79 2e 63 20 64 72 79 | 72 65 73 75 6c 74 73 2e |ry.c dry|results.|
|000006e0| 73 68 20 67 65 6e 5f 72 | 70 74 0a 42 59 54 45 3d |sh gen_r|pt.BYTE=|
|000006f0| 09 64 77 72 69 74 65 20 | 64 72 65 61 64 20 66 63 |.dwrite |dread fc|
|00000700| 61 6c 6c 61 20 66 63 61 | 6c 6c 65 20 66 69 62 6f |alla fca|lle fibo|
|00000710| 20 66 6c 6f 61 74 20 69 | 6f 66 69 6c 65 20 6c 6f | float i|ofile lo|
|00000720| 6f 70 20 70 69 70 65 73 | 20 73 63 61 6c 6c 20 5c |op pipes| scall \|
|00000730| 0a 09 73 69 65 76 65 20 | 62 79 74 65 73 6f 72 74 |..sieve |bytesort|
|00000740| 0a 55 53 45 4e 45 54 3d | 09 69 6f 63 61 6c 6c 0a |.USENET=|.iocall.|
|00000750| 44 52 59 3d 09 64 72 79 | 72 20 64 72 79 6e 72 0a |DRY=.dry|r drynr.|
|00000760| 43 4d 44 53 3d 09 24 28 | 42 59 54 45 29 20 24 28 |CMDS=.$(|BYTE) $(|
|00000770| 55 53 45 4e 45 54 29 20 | 24 28 44 52 59 29 0a 23 |USENET) |$(DRY).#|
|00000780| 0a 23 09 2d 7a 2f 2d 69 | 20 66 6c 61 67 73 20 61 |.#.-z/-i| flags a|
|00000790| 72 65 20 72 65 63 6f 6d | 6d 65 6e 64 65 64 20 66 |re recom|mended f|
|000007a0| 6f 72 20 56 65 6e 69 78 | 0a 23 0a 43 46 4c 41 47 |or Venix|.#.CFLAG|
|000007b0| 53 3d 2d 4f 20 2d 73 0a | 23 43 46 4c 41 47 53 3d |S=-O -s.|#CFLAGS=|
|000007c0| 2d 4f 20 2d 73 20 2d 69 | 20 2d 7a 0a 0a 61 6c 6c |-O -s -i| -z..all|
|000007d0| 3a 09 24 28 42 59 54 45 | 29 20 24 28 55 53 45 4e |:.$(BYTE|) $(USEN|
|000007e0| 45 54 29 20 24 28 44 52 | 59 29 0a 0a 63 6c 6f 62 |ET) $(DR|Y)..clob|
|000007f0| 62 65 72 3a 0a 09 2d 72 | 6d 20 2d 66 20 24 28 42 |ber:..-r|m -f $(B|
|00000800| 59 54 45 29 20 24 28 55 | 53 45 4e 45 54 29 20 24 |YTE) $(U|SENET) $|
|00000810| 28 44 52 59 29 0a 0a 62 | 65 6e 63 68 2e 73 68 61 |(DRY)..b|ench.sha|
|00000820| 72 3a 09 24 28 46 49 4c | 45 53 29 0a 09 73 68 61 |r:.$(FIL|ES)..sha|
|00000830| 72 20 24 28 46 49 4c 45 | 53 29 20 3e 20 24 40 0a |r $(FILE|S) > $@.|
|00000840| 66 63 61 6c 6c 65 3a 20 | 66 63 61 6c 6c 2e 63 0a |fcalle: |fcall.c.|
|00000850| 09 63 63 20 24 28 43 46 | 4c 41 47 53 29 20 2d 44 |.cc $(CF|LAGS) -D|
|00000860| 45 4d 50 54 59 20 66 63 | 61 6c 6c 2e 63 20 2d 6f |EMPTY fc|all.c -o|
|00000870| 20 24 40 0a 66 63 61 6c | 6c 61 3a 20 66 63 61 6c | $@.fcal|la: fcal|
|00000880| 6c 2e 63 0a 09 63 63 20 | 24 28 43 46 4c 41 47 53 |l.c..cc |$(CFLAGS|
|00000890| 29 20 2d 44 41 53 53 49 | 47 4e 20 66 63 61 6c 6c |) -DASSI|GN fcall|
|000008a0| 2e 63 20 2d 6f 20 24 40 | 0a 62 79 74 65 73 6f 72 |.c -o $@|.bytesor|
|000008b0| 74 3a 09 62 79 74 65 73 | 6f 72 74 2e 63 0a 09 63 |t:.bytes|ort.c..c|
|000008c0| 63 20 2d 73 20 2d 4f 20 | 2d 69 20 62 79 74 65 73 |c -s -O |-i bytes|
|000008d0| 6f 72 74 2e 63 20 2d 6f | 20 24 40 0a 64 72 79 72 |ort.c -o| $@.dryr|
|000008e0| 3a 09 64 72 79 2e 63 0a | 09 63 63 20 24 28 43 46 |:.dry.c.|.cc $(CF|
|000008f0| 4c 41 47 53 29 20 2d 44 | 52 45 47 3d 72 65 67 69 |LAGS) -D|REG=regi|
|00000900| 73 74 65 72 20 64 72 79 | 2e 63 20 2d 6f 20 24 40 |ster dry|.c -o $@|
|00000910| 0a 64 72 79 6e 72 3a 09 | 64 72 79 2e 63 0a 09 63 |.drynr:.|dry.c..c|
|00000920| 63 20 24 28 43 46 4c 41 | 47 53 29 20 64 72 79 2e |c $(CFLA|GS) dry.|
|00000930| 63 20 2d 6f 20 24 40 0a | 0a 72 75 6e 3a 09 73 68 |c -o $@.|.run:.sh|
|00000940| 65 6c 6c 73 0a 09 66 6f | 72 20 69 20 69 6e 20 24 |ells..fo|r i in $|
|00000950| 28 43 4d 44 53 29 3b 20 | 64 6f 20 65 63 68 6f 20 |(CMDS); |do echo |
|00000960| 22 24 24 69 3a 22 3b 20 | 74 69 6d 65 20 24 24 69 |"$$i:"; |time $$i|
|00000970| 3b 20 64 6f 6e 65 0a 09 | 40 72 6d 20 2d 66 20 72 |; done..|@rm -f r|
|00000980| 66 69 6c 65 0a 0a 72 65 | 70 6f 72 74 3a 09 72 65 |file..re|port:.re|
|00000990| 73 75 6c 74 73 0a 09 67 | 65 6e 5f 72 70 74 20 72 |sults..g|en_rpt r|
|000009a0| 65 73 75 6c 74 73 20 72 | 65 70 6f 72 74 0a 0a 73 |esults r|eport..s|
|000009b0| 68 65 6c 6c 73 3a 0a 09 | 74 69 6d 65 20 24 28 53 |hells:..|time $(S|
|000009c0| 48 45 4c 4c 29 20 74 73 | 74 2e 73 68 0a 09 74 69 |HELL) ts|t.sh..ti|
|000009d0| 6d 65 20 24 28 53 48 45 | 4c 4c 29 20 6d 75 6c 74 |me $(SHE|LL) mult|
|000009e0| 69 2e 73 68 20 31 0a 09 | 74 69 6d 65 20 24 28 53 |i.sh 1..|time $(S|
|000009f0| 48 45 4c 4c 29 20 6d 75 | 6c 74 69 2e 73 68 20 31 |HELL) mu|lti.sh 1|
|00000a00| 20 32 0a 09 74 69 6d 65 | 20 24 28 53 48 45 4c 4c | 2..time| $(SHELL|
|00000a10| 29 20 6d 75 6c 74 69 2e | 73 68 20 31 20 32 20 33 |) multi.|sh 1 2 3|
|00000a20| 0a 09 74 69 6d 65 20 24 | 28 53 48 45 4c 4c 29 20 |..time $|(SHELL) |
|00000a30| 6d 75 6c 74 69 2e 73 68 | 20 31 20 32 20 33 20 34 |multi.sh| 1 2 3 4|
|00000a40| 0a 09 74 69 6d 65 20 24 | 28 53 48 45 4c 4c 29 20 |..time $|(SHELL) |
|00000a50| 6d 75 6c 74 69 2e 73 68 | 20 31 20 32 20 33 20 34 |multi.sh| 1 2 3 4|
|00000a60| 20 35 0a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 | 5......|........|
|00000a70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000a90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c00| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 64 72 79 2e 52 |benchmar|ks/dry.R|
|00000c10| 45 41 44 4d 45 00 00 00 | 00 00 00 00 00 00 00 00 |EADME...|........|
|00000c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00000c70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00000c80| 20 20 20 36 32 34 36 20 | 20 34 34 30 32 30 34 34 | 6246 | 4402044|
|00000c90| 33 35 32 20 20 20 37 37 | 30 30 00 20 00 00 00 00 |352 77|00. ....|
|00000ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000e00| 41 4e 4e 4f 55 4e 43 4d | 45 4e 54 0a 41 74 74 61 |ANNOUNCM|ENT.Atta|
|00000e10| 63 68 65 64 2c 20 70 6c | 65 61 73 65 20 66 69 6e |ched, pl|ease fin|
|00000e20| 64 20 74 68 65 20 31 31 | 2f 30 38 2f 38 35 20 6c |d the 11|/08/85 l|
|00000e30| 69 73 74 20 6f 66 20 44 | 48 52 59 53 54 4f 4e 45 |ist of D|HRYSTONE|
|00000e40| 20 62 65 6e 63 68 6d 61 | 72 6b 20 72 65 73 75 6c | benchma|rk resul|
|00000e50| 74 73 2e 0a 54 68 65 20 | 73 6f 75 72 63 65 20 63 |ts..The |source c|
|00000e60| 6f 64 65 20 66 6f 72 20 | 74 68 65 20 64 72 79 73 |ode for |the drys|
|00000e70| 74 6f 6e 65 20 62 65 6e | 63 68 6d 61 72 6b 20 63 |tone ben|chmark c|
|00000e80| 61 6e 20 62 65 20 66 6f | 75 6e 64 20 69 6e 20 6e |an be fo|und in n|
|00000e90| 65 74 2e 73 6f 75 72 63 | 65 73 2e 0a 0a 54 68 65 |et.sourc|es...The|
|00000ea0| 20 6c 61 74 65 73 74 20 | 6c 69 73 74 20 69 6e 63 | latest |list inc|
|00000eb0| 6c 75 64 65 73 20 6d 61 | 6e 79 20 6e 65 77 20 6d |ludes ma|ny new m|
|00000ec0| 61 63 68 69 6e 65 73 2f | 63 6f 6d 70 69 6c 65 72 |achines/|compiler|
|00000ed0| 20 63 6f 6d 62 69 6e 61 | 74 69 6f 6e 73 2e 20 20 | combina|tions. |
|00000ee0| 4d 61 6e 79 0a 6f 66 20 | 74 68 65 20 71 75 65 73 |Many.of |the ques|
|00000ef0| 74 69 6f 6e 61 62 6c 65 | 20 72 65 73 75 6c 74 73 |tionable| results|
|00000f00| 20 68 61 76 65 20 62 65 | 65 6e 20 63 6f 6e 66 69 | have be|en confi|
|00000f10| 72 6d 65 64 20 6f 72 20 | 63 6f 72 72 65 63 74 65 |rmed or |correcte|
|00000f20| 64 2e 20 20 49 20 61 6d | 20 73 74 69 6c 6c 0a 77 |d. I am| still.w|
|00000f30| 61 69 74 69 6e 67 20 66 | 6f 72 20 49 6e 74 65 6c |aiting f|or Intel|
|00000f40| 20 33 38 36 20 72 65 73 | 75 6c 74 73 3b 20 49 27 | 386 res|ults; I'|
|00000f50| 6d 20 73 75 72 65 20 6d | 61 6e 79 20 6f 74 68 65 |m sure m|any othe|
|00000f60| 72 73 20 61 72 65 2c 20 | 74 6f 6f 2e 0a 0a 43 4c |rs are, |too...CL|
|00000f70| 41 52 49 46 49 43 41 54 | 49 4f 4e 0a 54 68 65 72 |ARIFICAT|ION.Ther|
|00000f80| 65 20 73 65 65 6d 73 20 | 74 6f 20 68 61 76 65 20 |e seems |to have |
|00000f90| 62 65 65 6e 20 61 20 67 | 72 65 61 74 20 64 65 61 |been a g|reat dea|
|00000fa0| 6c 20 6f 66 20 63 6f 6e | 66 75 73 69 6f 6e 20 6f |l of con|fusion o|
|00000fb0| 76 65 72 20 77 68 61 74 | 20 74 68 69 73 0a 62 65 |ver what| this.be|
|00000fc0| 6e 63 68 6d 61 72 6b 20 | 6d 65 61 73 75 72 65 73 |nchmark |measures|
|00000fd0| 2c 20 61 6e 64 20 68 6f | 77 20 74 6f 20 75 73 65 |, and ho|w to use|
|00000fe0| 20 74 68 65 73 65 20 72 | 65 73 75 6c 74 73 2e 20 | these r|esults. |
|00000ff0| 20 4c 65 74 20 6d 65 20 | 74 72 79 20 74 6f 20 63 | Let me |try to c|
|00001000| 6c 61 72 69 66 79 0a 74 | 68 69 73 3a 0a 0a 09 31 |larify.t|his:...1|
|00001010| 29 20 44 48 52 59 53 54 | 4f 4e 45 20 69 73 20 61 |) DHRYST|ONE is a|
|00001020| 20 6d 65 61 73 75 72 65 | 20 6f 66 20 70 72 6f 63 | measure| of proc|
|00001030| 65 73 73 6f 72 2b 63 6f | 6d 70 69 6c 65 72 20 65 |essor+co|mpiler e|
|00001040| 66 66 69 63 69 65 6e 63 | 79 20 69 6e 0a 09 20 20 |fficienc|y in.. |
|00001050| 20 65 78 65 63 75 74 69 | 6e 67 20 61 20 27 74 79 | executi|ng a 'ty|
|00001060| 70 69 63 61 6c 27 20 70 | 72 6f 67 72 61 6d 2e 20 |pical' p|rogram. |
|00001070| 20 54 68 65 20 27 74 79 | 70 69 63 61 6c 27 20 70 | The 'ty|pical' p|
|00001080| 72 6f 67 72 61 6d 20 77 | 61 73 0a 09 20 20 20 64 |rogram w|as.. d|
|00001090| 65 73 69 67 6e 65 64 20 | 62 79 20 6d 65 61 73 75 |esigned |by measu|
|000010a0| 72 69 6e 67 20 73 74 61 | 74 69 73 74 69 63 73 20 |ring sta|tistics |
|000010b0| 6f 6e 20 61 20 67 72 65 | 61 74 20 6e 75 6d 62 65 |on a gre|at numbe|
|000010c0| 72 20 6f 66 0a 09 20 20 | 20 27 72 65 61 6c 27 20 |r of.. | 'real' |
|000010d0| 70 72 6f 67 72 61 6d 73 | 2e 20 20 54 68 65 20 27 |programs|. The '|
|000010e0| 74 79 70 69 63 61 6c 27 | 20 70 72 6f 67 72 61 6d |typical'| program|
|000010f0| 20 77 61 73 20 74 68 65 | 6e 20 77 72 69 74 74 65 | was the|n writte|
|00001100| 6e 0a 09 20 20 20 62 79 | 20 52 65 69 6e 68 6f 6c |n.. by| Reinhol|
|00001110| 64 20 50 2e 20 57 65 69 | 63 6b 65 72 20 75 73 69 |d P. Wei|cker usi|
|00001120| 6e 67 20 74 68 65 73 65 | 20 73 74 61 74 69 73 74 |ng these| statist|
|00001130| 69 63 73 2e 20 20 54 68 | 65 0a 09 20 20 20 70 72 |ics. Th|e.. pr|
|00001140| 6f 67 72 61 6d 20 69 73 | 20 62 61 6c 61 6e 63 65 |ogram is| balance|
|00001150| 64 20 61 63 63 6f 72 64 | 69 6e 67 20 74 6f 20 73 |d accord|ing to s|
|00001160| 74 61 74 65 6d 65 6e 74 | 20 74 79 70 65 2c 20 61 |tatement| type, a|
|00001170| 73 20 77 65 6c 6c 0a 09 | 20 20 20 61 73 20 64 61 |s well..| as da|
|00001180| 74 61 20 74 79 70 65 2e | 0a 0a 09 32 29 20 44 48 |ta type.|...2) DH|
|00001190| 52 59 53 54 4f 4e 45 20 | 64 6f 65 73 20 6e 6f 74 |RYSTONE |does not|
|000011a0| 20 75 73 65 20 66 6c 6f | 61 74 69 6e 67 20 70 6f | use flo|ating po|
|000011b0| 69 6e 74 2e 20 20 54 79 | 70 69 63 61 6c 20 70 72 |int. Ty|pical pr|
|000011c0| 6f 67 72 61 6d 73 20 64 | 6f 6e 27 74 2e 0a 0a 09 |ograms d|on't....|
|000011d0| 33 29 20 44 48 52 59 53 | 54 4f 4e 45 20 64 6f 65 |3) DHRYS|TONE doe|
|000011e0| 73 20 6e 6f 74 20 64 6f | 20 49 2f 4f 2e 20 20 54 |s not do| I/O. T|
|000011f0| 79 70 69 63 61 6c 20 70 | 72 6f 67 72 61 6d 73 20 |ypical p|rograms |
|00001200| 64 6f 2c 20 62 75 74 20 | 74 68 65 6e 0a 09 20 20 |do, but |then.. |
|00001210| 20 77 65 27 64 20 68 61 | 76 65 20 61 20 77 68 6f | we'd ha|ve a who|
|00001220| 6c 65 20 63 61 6e 20 6f | 66 20 77 6f 72 6d 73 20 |le can o|f worms |
|00001230| 6f 70 65 6e 65 64 20 75 | 70 2e 0a 0a 09 34 29 20 |opened u|p....4) |
|00001240| 44 48 52 59 53 54 4f 4e | 45 20 64 6f 65 73 20 6e |DHRYSTON|E does n|
|00001250| 6f 74 20 63 6f 6e 74 61 | 69 6e 20 6d 75 63 68 20 |ot conta|in much |
|00001260| 63 6f 64 65 20 74 68 61 | 74 20 63 61 6e 20 62 65 |code tha|t can be|
|00001270| 20 6f 70 74 69 6d 69 7a | 65 64 0a 09 20 20 20 62 | optimiz|ed.. b|
|00001280| 79 20 76 65 63 74 6f 72 | 20 70 72 6f 63 65 73 73 |y vector| process|
|00001290| 6f 72 73 2e 20 20 54 68 | 61 74 27 73 20 77 68 79 |ors. Th|at's why|
|000012a0| 20 61 20 43 52 41 59 20 | 64 6f 65 73 6e 27 74 20 | a CRAY |doesn't |
|000012b0| 6c 6f 6f 6b 20 72 65 61 | 6c 0a 09 20 20 20 66 61 |look rea|l.. fa|
|000012c0| 73 74 2c 20 74 68 65 79 | 20 77 65 72 65 6e 27 74 |st, they| weren't|
|000012d0| 20 62 75 69 6c 74 20 74 | 6f 20 64 6f 20 74 68 69 | built t|o do thi|
|000012e0| 73 20 73 6f 72 74 20 6f | 66 20 63 6f 6d 70 75 74 |s sort o|f comput|
|000012f0| 69 6e 67 2e 0a 0a 09 35 | 29 20 44 48 52 59 53 54 |ing....5|) DHRYST|
|00001300| 4f 4e 45 20 64 6f 65 73 | 20 6e 6f 74 20 6d 65 61 |ONE does| not mea|
|00001310| 73 75 72 65 20 4f 53 20 | 70 65 72 66 6f 72 6d 61 |sure OS |performa|
|00001320| 6e 63 65 2c 20 61 73 20 | 69 74 20 61 76 6f 69 64 |nce, as |it avoid|
|00001330| 73 0a 09 20 20 20 63 61 | 6c 6c 69 6e 67 20 74 68 |s.. ca|lling th|
|00001340| 65 20 4f 2e 53 2e 20 20 | 54 68 65 20 4f 2e 53 2e |e O.S. |The O.S.|
|00001350| 20 69 73 20 69 6e 64 69 | 63 61 74 65 64 20 69 6e | is indi|cated in|
|00001360| 20 74 68 65 20 72 65 73 | 75 6c 74 73 20 6f 6e 6c | the res|ults onl|
|00001370| 79 0a 09 20 20 20 74 6f | 20 68 65 6c 70 20 69 6e |y.. to| help in|
|00001380| 20 69 64 65 6e 74 69 66 | 79 69 6e 67 20 74 68 65 | identif|ying the|
|00001390| 20 63 6f 6d 70 69 6c 65 | 72 20 74 65 63 68 6e 6f | compile|r techno|
|000013a0| 6c 6f 67 79 2e 0a 0a 49 | 66 20 73 6f 6d 65 62 6f |logy...I|f somebo|
|000013b0| 64 79 20 61 73 6b 65 64 | 20 6d 65 20 74 6f 20 70 |dy asked| me to p|
|000013c0| 69 63 6b 20 6f 75 74 20 | 74 68 65 20 62 65 73 74 |ick out |the best|
|000013d0| 20 6d 61 63 68 69 6e 65 | 20 66 6f 72 20 74 68 65 | machine| for the|
|000013e0| 20 6d 6f 6e 65 79 2c 20 | 49 0a 77 6f 75 6c 64 6e | money, |I.wouldn|
|000013f0| 27 74 20 6c 6f 6f 6b 20 | 61 74 20 6a 75 73 74 20 |'t look |at just |
|00001400| 74 68 65 20 72 65 73 75 | 6c 74 73 20 6f 66 20 44 |the resu|lts of D|
|00001410| 48 52 59 53 54 4f 4e 45 | 2e 20 20 49 27 64 20 70 |HRYSTONE|. I'd p|
|00001420| 72 6f 62 61 62 6c 79 3a | 0a 0a 09 31 29 20 52 75 |robably:|...1) Ru|
|00001430| 6e 20 44 48 52 59 53 54 | 4f 4e 45 20 74 6f 20 67 |n DHRYST|ONE to g|
|00001440| 65 74 20 61 20 66 65 65 | 6c 20 66 6f 72 20 74 68 |et a fee|l for th|
|00001450| 65 20 63 6f 6d 70 69 6c | 65 72 2b 70 72 6f 63 65 |e compil|er+proce|
|00001460| 73 73 6f 72 0a 09 20 20 | 20 73 70 65 65 64 2e 0a |ssor.. | speed..|
|00001470| 09 32 29 20 52 75 6e 20 | 61 6e 79 20 6e 75 6d 62 |.2) Run |any numb|
|00001480| 65 72 20 6f 66 20 62 65 | 6e 63 68 6d 61 72 6b 73 |er of be|nchmarks|
|00001490| 20 74 6f 20 63 68 65 63 | 6b 20 64 69 73 6b 20 49 | to chec|k disk I|
|000014a0| 2f 4f 20 62 61 6e 64 77 | 69 64 74 68 2c 0a 09 20 |/O bandw|idth,.. |
|000014b0| 20 20 75 73 69 6e 67 20 | 62 6f 74 68 20 73 65 71 | using |both seq|
|000014c0| 75 65 6e 74 69 61 6c 20 | 61 6e 64 20 72 61 6e 64 |uential |and rand|
|000014d0| 6f 6d 20 72 65 61 64 2f | 77 72 69 74 65 73 2e 0a |om read/|writes..|
|000014e0| 09 33 29 20 52 75 6e 20 | 61 20 6d 75 6c 74 69 74 |.3) Run |a multit|
|000014f0| 61 73 6b 69 6e 67 20 62 | 65 6e 63 68 6d 61 72 6b |asking b|enchmark|
|00001500| 20 74 6f 20 63 68 65 63 | 6b 20 6d 75 6c 74 69 2d | to chec|k multi-|
|00001510| 75 73 65 72 20 72 65 73 | 70 6f 6e 73 65 0a 09 20 |user res|ponse.. |
|00001520| 20 20 74 69 6d 65 2e 20 | 20 54 79 70 69 63 61 6c | time. | Typical|
|00001530| 6c 79 2c 20 74 68 65 73 | 65 20 62 65 6e 63 68 6d |ly, thes|e benchm|
|00001540| 61 72 6b 73 20 72 75 6e | 20 73 65 76 65 72 61 6c |arks run| several|
|00001550| 20 74 79 70 65 73 20 6f | 66 0a 09 20 20 20 70 72 | types o|f.. pr|
|00001560| 6f 67 72 61 6d 73 20 73 | 75 63 68 20 61 73 20 65 |ograms s|uch as e|
|00001570| 64 69 74 6f 72 73 2c 20 | 73 68 65 6c 6c 20 73 63 |ditors, |shell sc|
|00001580| 72 69 70 74 73 2c 20 73 | 6f 72 74 73 2c 20 63 6f |ripts, s|orts, co|
|00001590| 6d 70 69 6c 65 73 2c 0a | 09 20 20 20 61 6e 64 20 |mpiles,.|. and |
|000015a0| 70 6c 6f 74 20 74 68 65 | 20 72 65 73 75 6c 74 73 |plot the| results|
|000015b0| 20 61 67 61 69 6e 73 74 | 20 74 68 65 20 6e 75 6d | against| the num|
|000015c0| 62 65 72 20 6f 66 20 73 | 69 6d 75 6c 61 74 65 64 |ber of s|imulated|
|000015d0| 20 75 73 65 72 73 2e 0a | 09 34 29 20 49 66 20 61 | users..|.4) If a|
|000015e0| 70 70 72 6f 70 72 69 61 | 74 65 20 66 6f 72 20 74 |ppropria|te for t|
|000015f0| 68 65 20 69 6e 74 65 6e | 64 65 64 20 75 73 65 2c |he inten|ded use,|
|00001600| 20 72 75 6e 20 57 48 45 | 54 53 54 4f 4e 45 2c 20 | run WHE|TSTONE, |
|00001610| 74 6f 20 64 65 74 65 72 | 6d 69 6e 65 0a 09 20 20 |to deter|mine.. |
|00001620| 20 66 6c 6f 61 74 69 6e | 67 20 70 6f 69 6e 74 20 | floatin|g point |
|00001630| 70 65 72 66 6f 72 6d 61 | 6e 63 65 2e 0a 09 35 29 |performa|nce...5)|
|00001640| 20 49 66 20 61 70 70 72 | 6f 70 72 69 61 74 65 20 | If appr|opriate |
|00001650| 66 6f 72 20 69 6e 74 65 | 6e 64 65 64 20 75 73 65 |for inte|nded use|
|00001660| 2c 20 72 75 6e 20 73 6f | 6d 65 20 70 72 6f 67 72 |, run so|me progr|
|00001670| 61 6d 73 20 77 68 69 63 | 68 20 64 6f 0a 09 20 20 |ams whic|h do.. |
|00001680| 20 76 65 63 74 6f 72 20 | 61 6e 64 20 6d 61 74 72 | vector |and matr|
|00001690| 69 78 20 63 6f 6d 70 75 | 74 61 74 69 6f 6e 73 2e |ix compu|tations.|
|000016a0| 0a 09 36 29 20 46 69 67 | 75 72 65 20 6f 75 74 20 |..6) Fig|ure out |
|000016b0| 77 68 61 74 20 74 68 65 | 20 62 6f 78 20 77 69 6c |what the| box wil|
|000016c0| 6c 3a 0a 09 09 2d 20 63 | 6f 73 74 20 74 6f 20 62 |l:...- c|ost to b|
|000016d0| 75 79 0a 09 09 2d 20 63 | 6f 73 74 20 74 6f 20 6f |uy...- c|ost to o|
|000016e0| 70 65 72 61 74 65 20 61 | 6e 64 20 6d 61 69 6e 74 |perate a|nd maint|
|000016f0| 61 69 6e 0a 09 09 2d 20 | 62 65 20 77 6f 72 74 68 |ain...- |be worth|
|00001700| 20 77 68 65 6e 20 69 74 | 20 69 73 20 73 6f 6c 64 | when it| is sold|
|00001710| 0a 09 09 2d 20 62 65 20 | 77 6f 72 74 68 20 69 66 |...- be |worth if|
|00001720| 20 74 68 65 20 6d 61 6e | 75 66 61 63 74 75 72 65 | the man|ufacture|
|00001730| 72 20 67 6f 65 73 20 6f | 75 74 20 6f 66 20 62 75 |r goes o|ut of bu|
|00001740| 73 69 6e 65 73 73 0a 09 | 37 29 20 48 61 76 69 6e |siness..|7) Havin|
|00001750| 67 20 64 6f 6e 65 20 74 | 68 65 20 61 62 6f 76 65 |g done t|he above|
|00001760| 2c 20 49 20 70 72 6f 62 | 61 62 6c 79 20 68 61 76 |, I prob|ably hav|
|00001770| 65 20 61 20 68 61 6e 64 | 2d 66 75 6c 6c 20 6f 66 |e a hand|-full of|
|00001780| 0a 09 20 20 20 6d 61 63 | 68 69 6e 65 73 20 77 68 |.. mac|hines wh|
|00001790| 69 63 68 20 6d 65 65 74 | 20 6d 79 20 70 72 69 63 |ich meet| my pric|
|000017a0| 65 2f 70 65 72 66 6f 72 | 6d 61 6e 63 65 20 72 65 |e/perfor|mance re|
|000017b0| 71 75 69 72 65 6d 65 6e | 74 73 2e 0a 09 20 20 20 |quiremen|ts... |
|000017c0| 4e 6f 77 2c 20 49 20 66 | 69 6e 64 20 6f 75 74 20 |Now, I f|ind out |
|000017d0| 69 66 20 74 68 65 20 61 | 70 70 6c 69 63 61 74 69 |if the a|pplicati|
|000017e0| 6f 6e 73 20 70 72 6f 67 | 72 61 6d 73 20 49 27 64 |ons prog|rams I'd|
|000017f0| 20 6c 69 6b 65 0a 09 20 | 20 20 74 6f 20 75 73 65 | like.. | to use|
|00001800| 20 77 69 6c 6c 20 72 75 | 6e 20 6f 6e 20 61 6e 79 | will ru|n on any|
|00001810| 20 6f 66 20 74 68 65 73 | 65 20 6d 61 63 68 69 6e | of thes|e machin|
|00001820| 65 73 2e 20 20 49 20 61 | 6c 73 6f 20 66 69 6e 64 |es. I a|lso find|
|00001830| 0a 09 20 20 20 6f 75 74 | 20 68 6f 77 20 6d 75 63 |.. out| how muc|
|00001840| 68 20 69 6e 74 65 72 65 | 73 74 20 70 65 6f 70 6c |h intere|st peopl|
|00001850| 65 20 68 61 76 65 20 69 | 6e 20 77 72 69 74 69 6e |e have i|n writin|
|00001860| 67 20 6e 65 77 20 73 6f | 66 74 77 61 72 65 0a 09 |g new so|ftware..|
|00001870| 20 20 20 66 6f 72 20 74 | 68 65 20 6d 61 63 68 69 | for t|he machi|
|00001880| 6e 65 2c 20 61 6e 64 20 | 6c 6f 6f 6b 20 63 61 72 |ne, and |look car|
|00001890| 65 66 75 6c 6c 79 20 61 | 74 20 74 68 65 20 6d 69 |efully a|t the mi|
|000018a0| 67 72 61 74 69 6f 6e 20 | 70 61 74 68 0a 09 20 20 |gration |path.. |
|000018b0| 20 49 20 77 69 6c 6c 20 | 68 61 76 65 20 74 6f 20 | I will |have to |
|000018c0| 74 61 6b 65 20 77 68 65 | 6e 20 49 20 72 65 61 63 |take whe|n I reac|
|000018d0| 68 20 74 68 65 20 6c 69 | 6d 69 74 73 20 6f 66 20 |h the li|mits of |
|000018e0| 74 68 65 20 6d 61 63 68 | 69 6e 65 2e 0a 0a 54 6f |the mach|ine...To|
|000018f0| 20 73 75 6d 6d 61 72 69 | 7a 65 2c 20 44 48 52 59 | summari|ze, DHRY|
|00001900| 53 54 4f 4e 45 53 20 62 | 79 20 74 68 65 6d 73 65 |STONES b|y themse|
|00001910| 6c 76 65 73 20 61 72 65 | 20 6e 6f 74 20 61 6e 79 |lves are| not any|
|00001920| 74 68 69 6e 67 20 6d 6f | 72 65 20 74 68 61 6e 0a |thing mo|re than.|
|00001930| 61 20 77 61 79 20 74 6f | 20 77 69 6e 20 66 72 65 |a way to| win fre|
|00001940| 65 20 62 65 65 72 73 20 | 77 68 65 6e 20 61 72 67 |e beers |when arg|
|00001950| 75 69 6e 67 20 27 42 6f | 78 2d 41 20 76 65 72 73 |uing 'Bo|x-A vers|
|00001960| 75 73 20 42 6f 78 2d 42 | 27 20 72 65 6c 69 67 69 |us Box-B|' religi|
|00001970| 6f 6e 2e 0a 54 68 65 79 | 20 64 6f 20 70 72 6f 76 |on..They| do prov|
|00001980| 69 64 65 20 69 6e 73 69 | 67 68 74 20 69 6e 74 6f |ide insi|ght into|
|00001990| 20 42 6f 78 2d 41 2f 43 | 6f 6d 70 69 6c 65 72 2d | Box-A/C|ompiler-|
|000019a0| 41 20 76 65 72 73 75 73 | 20 42 6f 78 2d 41 2f 43 |A versus| Box-A/C|
|000019b0| 6f 6d 70 69 6c 65 72 2d | 42 0a 63 6f 6d 70 61 72 |ompiler-|B.compar|
|000019c0| 69 73 6f 6e 73 2e 0a 0a | 41 73 20 75 73 75 61 6c |isons...|As usual|
|000019d0| 2c 20 61 6c 6c 20 63 6f | 6d 6d 65 6e 74 73 20 61 |, all co|mments a|
|000019e0| 6e 64 20 6e 65 77 20 72 | 65 73 75 6c 74 73 20 73 |nd new r|esults s|
|000019f0| 68 6f 75 6c 64 20 62 65 | 20 6d 61 69 6c 65 64 20 |hould be| mailed |
|00001a00| 64 69 72 65 63 74 6c 79 | 0a 74 6f 20 6d 65 20 61 |directly|.to me a|
|00001a10| 74 20 2e 2e 7b 69 68 6e | 70 34 2c 2e 2e 6f 74 68 |t ..{ihn|p4,..oth|
|00001a20| 65 72 73 2e 2e 7d 21 68 | 6f 75 78 6d 21 63 61 73 |ers..}!h|ouxm!cas|
|00001a30| 74 6f 72 21 72 65 72 2e | 20 20 49 20 77 69 6c 6c |tor!rer.| I will|
|00001a40| 20 73 75 6d 6d 61 72 69 | 7a 65 0a 61 6e 64 20 70 | summari|ze.and p|
|00001a50| 6f 73 74 20 74 6f 20 74 | 68 65 20 6e 65 74 2e 0a |ost to t|he net..|
|00001a60| 0a 52 69 63 6b 20 52 69 | 63 68 61 72 64 73 6f 6e |.Rick Ri|chardson|
|00001a70| 0a 50 43 20 52 65 73 65 | 61 72 63 68 2c 20 49 6e |.PC Rese|arch, In|
|00001a80| 63 2e 0a 28 32 30 31 29 | 20 38 33 34 2d 31 33 37 |c..(201)| 834-137|
|00001a90| 38 0a 2e 2e 21 68 6f 75 | 78 6d 21 63 61 73 74 6f |8...!hou|xm!casto|
|00001aa0| 72 21 72 65 72 0a 00 00 | 00 00 00 00 00 00 00 00 |r!rer...|........|
|00001ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c00| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 64 72 65 61 64 |benchmar|ks/dread|
|00001c10| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00001c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00001c70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00001c80| 20 20 20 31 32 34 37 20 | 20 34 34 30 32 30 34 34 | 1247 | 4402044|
|00001c90| 33 35 34 20 20 20 37 34 | 34 34 00 20 00 00 00 00 |354 74|44. ....|
|00001ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e00| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|00001e10| 68 3e 0a 23 64 65 66 69 | 6e 65 20 42 4c 4f 43 4b |h>.#defi|ne BLOCK|
|00001e20| 53 20 32 35 36 0a 6c 6f | 6e 67 20 6c 73 65 65 6b |S 256.lo|ng lseek|
|00001e30| 28 29 3b 0a 0a 6d 61 69 | 6e 28 29 0a 7b 0a 09 63 |();..mai|n().{..c|
|00001e40| 68 61 72 20 62 75 66 66 | 65 72 5b 35 31 32 5d 3b |har buff|er[512];|
|00001e50| 0a 09 63 68 61 72 09 2a | 66 69 6c 65 6e 61 6d 65 |..char.*|filename|
|00001e60| 20 3d 20 22 61 5f 6c 61 | 72 67 65 5f 66 69 6c 65 | = "a_la|rge_file|
|00001e70| 22 3b 0a 09 72 65 67 69 | 73 74 65 72 20 69 6e 74 |";..regi|ster int|
|00001e80| 20 69 3b 0a 09 69 6e 74 | 09 66 69 6c 64 65 73 3b | i;..int|.fildes;|
|00001e90| 0a 09 6c 6f 6e 67 09 69 | 6e 74 20 6f 66 66 73 65 |..long.i|nt offse|
|00001ea0| 74 3b 0a 09 69 66 20 28 | 28 66 69 6c 64 65 73 20 |t;..if (|(fildes |
|00001eb0| 3d 20 6f 70 65 6e 28 66 | 69 6c 65 6e 61 6d 65 2c |= open(f|ilename,|
|00001ec0| 20 30 29 29 20 3c 20 30 | 29 20 7b 0a 09 09 70 72 | 0)) < 0|) {...pr|
|00001ed0| 69 6e 74 66 28 22 43 61 | 6e 6e 6f 74 20 66 69 6e |intf("Ca|nnot fin|
|00001ee0| 64 20 27 25 73 27 2e 20 | 52 75 6e 20 27 64 77 72 |d '%s'. |Run 'dwr|
|00001ef0| 69 74 65 27 20 66 69 72 | 73 74 2e 5c 6e 22 2c 20 |ite' fir|st.\n", |
|00001f00| 66 69 6c 65 6e 61 6d 65 | 29 3b 0a 09 09 65 78 69 |filename|);...exi|
|00001f10| 74 28 31 29 3b 0a 09 7d | 0a 09 66 6f 72 20 28 69 |t(1);..}|..for (i|
|00001f20| 20 3d 20 30 3b 20 69 20 | 3c 20 42 4c 4f 43 4b 53 | = 0; i |< BLOCKS|
|00001f30| 3b 20 2b 2b 69 29 0a 09 | 7b 0a 23 69 66 64 65 66 |; ++i)..|{.#ifdef|
|00001f40| 20 53 49 58 54 45 45 4e | 0a 09 09 6f 66 66 73 65 | SIXTEEN|...offse|
|00001f50| 74 20 3d 20 28 6c 6f 6e | 67 29 20 72 61 6e 64 28 |t = (lon|g) rand(|
|00001f60| 29 20 2a 20 34 4c 3b 0a | 23 65 6e 64 69 66 0a 23 |) * 4L;.|#endif.#|
|00001f70| 69 66 64 65 66 20 54 48 | 49 52 54 59 54 57 4f 0a |ifdef TH|IRTYTWO.|
|00001f80| 09 09 6f 66 66 73 65 74 | 20 3d 20 28 6c 6f 6e 67 |..offset| = (long|
|00001f90| 29 20 72 61 6e 64 28 29 | 20 2f 20 31 36 33 38 34 |) rand()| / 16384|
|00001fa0| 4c 3b 0a 23 65 6e 64 69 | 66 0a 09 09 69 66 20 28 |L;.#endi|f...if (|
|00001fb0| 6c 73 65 65 6b 28 66 69 | 6c 64 65 73 2c 20 6f 66 |lseek(fi|ldes, of|
|00001fc0| 66 73 65 74 2c 20 30 29 | 20 3c 20 30 29 20 7b 0a |fset, 0)| < 0) {.|
|00001fd0| 09 09 09 70 72 69 6e 74 | 66 28 22 4c 73 65 65 6b |...print|f("Lseek|
|00001fe0| 20 74 6f 20 25 6c 64 20 | 66 61 69 6c 65 64 20 69 | to %ld |failed i|
|00001ff0| 3d 25 64 5c 6e 22 2c 20 | 6f 66 66 73 65 74 2c 20 |=%d\n", |offset, |
|00002000| 69 29 3b 0a 09 09 09 65 | 78 69 74 20 28 31 29 3b |i);....e|xit (1);|
|00002010| 0a 09 09 7d 0a 09 09 69 | 66 20 28 72 65 61 64 28 |...}...i|f (read(|
|00002020| 66 69 6c 64 65 73 2c 20 | 62 75 66 66 65 72 2c 20 |fildes, |buffer, |
|00002030| 35 31 32 29 20 3c 20 30 | 29 20 7b 0a 09 09 09 70 |512) < 0|) {....p|
|00002040| 72 69 6e 74 66 28 22 45 | 72 72 6f 72 20 72 65 61 |rintf("E|rror rea|
|00002050| 64 69 6e 67 20 62 6c 6f | 63 6b 20 61 74 20 62 79 |ding blo|ck at by|
|00002060| 74 65 20 25 6c 64 5c 6e | 22 2c 20 6f 66 66 73 65 |te %ld\n|", offse|
|00002070| 74 29 3b 0a 09 09 09 65 | 78 69 74 20 28 31 29 3b |t);....e|xit (1);|
|00002080| 0a 09 09 7d 0a 09 7d 0a | 09 75 6e 6c 69 6e 6b 28 |...}..}.|.unlink(|
|00002090| 66 69 6c 65 6e 61 6d 65 | 29 3b 0a 09 65 78 69 74 |filename|);..exit|
|000020a0| 28 30 29 3b 0a 7d 0a 28 | 28 66 69 6c 64 65 73 20 |(0);.}.(|(fildes |
|000020b0| 3d 20 6f 70 65 6e 28 66 | 69 6c 65 6e 61 6d 65 2c |= open(f|ilename,|
|000020c0| 20 30 29 29 20 3c 20 30 | 29 20 7b 0a 09 09 70 72 | 0)) < 0|) {...pr|
|000020d0| 69 6e 74 66 28 22 43 61 | 6e 6e 6f 74 20 66 69 6e |intf("Ca|nnot fin|
|000020e0| 64 20 27 25 73 27 2e 20 | 52 75 6e 20 27 64 77 72 |d '%s'. |Run 'dwr|
|000020f0| 69 74 65 27 20 66 69 72 | 73 74 2e 5c 6e 22 2c 20 |ite' fir|st.\n", |
|00002100| 66 69 6c 65 6e 61 6d 65 | 29 3b 0a 09 09 65 78 69 |filename|);...exi|
|00002110| 74 28 31 29 3b 0a 09 7d | 0a 09 66 6f 72 20 28 69 |t(1);..}|..for (i|
|00002120| 20 3d 20 30 3b 20 69 20 | 3c 20 42 4c 4f 43 4b 53 | = 0; i |< BLOCKS|
|00002130| 3b 20 2b 2b 69 29 0a 09 | 7b 0a 23 69 66 64 65 66 |; ++i)..|{.#ifdef|
|00002140| 20 53 49 58 54 45 45 4e | 0a 09 09 6f 66 66 73 65 | SIXTEEN|...offse|
|00002150| 74 20 3d 20 28 6c 6f 6e | 67 29 20 72 61 6e 64 28 |t = (lon|g) rand(|
|00002160| 29 20 2a 20 34 4c 3b 0a | 23 65 6e 64 69 66 0a 23 |) * 4L;.|#endif.#|
|00002170| 69 66 64 65 66 20 54 48 | 49 52 54 59 54 57 4f 0a |ifdef TH|IRTYTWO.|
|00002180| 09 09 6f 66 66 73 65 74 | 20 3d 20 28 6c 6f 6e 67 |..offset| = (long|
|00002190| 29 20 72 61 6e 64 28 29 | 20 2f 20 31 36 33 38 34 |) rand()| / 16384|
|000021a0| 4c 3b 0a 23 65 6e 64 69 | 66 0a 09 09 69 66 20 28 |L;.#endi|f...if (|
|000021b0| 6c 73 65 65 6b 28 66 69 | 6c 64 65 73 2c 20 6f 66 |lseek(fi|ldes, of|
|000021c0| 66 73 65 74 2c 20 30 29 | 20 3c 20 30 29 20 7b 0a |fset, 0)| < 0) {.|
|000021d0| 09 09 09 70 72 69 6e 74 | 66 28 22 4c 73 65 65 6b |...print|f("Lseek|
|000021e0| 20 74 6f 20 25 6c 64 20 | 66 61 69 6c 65 64 20 69 | to %ld |failed i|
|000021f0| 3d 25 64 5c 6e 22 2c 20 | 6f 66 66 73 65 74 2c 20 |=%d\n", |offset, |
|00002200| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 66 63 61 6c 6c |benchmar|ks/fcall|
|00002210| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00002220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00002270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00002280| 20 20 20 20 34 33 36 20 | 20 34 34 30 32 30 34 34 | 436 | 4402044|
|00002290| 33 35 35 20 20 20 37 34 | 32 36 00 20 00 00 00 00 |355 74|26. ....|
|000022a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000022f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000023f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002400| 23 64 65 66 69 6e 65 20 | 54 49 4d 45 53 20 35 30 |#define |TIMES 50|
|00002410| 30 30 30 0a 6d 61 69 6e | 28 29 0a 23 69 66 64 65 |000.main|().#ifde|
|00002420| 66 20 45 4d 50 54 59 0a | 7b 0a 09 72 65 67 69 73 |f EMPTY.|{..regis|
|00002430| 74 65 72 20 75 6e 73 69 | 67 6e 65 64 20 69 6e 74 |ter unsi|gned int|
|00002440| 20 69 2c 6a 3b 0a 09 66 | 6f 72 20 28 69 20 3d 20 | i,j;..f|or (i = |
|00002450| 30 3b 20 69 20 3c 20 54 | 49 4d 45 53 3b 20 2b 2b |0; i < T|IMES; ++|
|00002460| 69 29 0a 09 09 6a 20 3d | 20 65 6d 70 74 79 28 69 |i)...j =| empty(i|
|00002470| 29 3b 0a 09 65 78 69 74 | 28 30 29 3b 0a 7d 0a 65 |);..exit|(0);.}.e|
|00002480| 6d 70 74 79 28 6b 29 0a | 72 65 67 69 73 74 65 72 |mpty(k).|register|
|00002490| 20 75 6e 73 69 67 6e 65 | 64 20 69 6e 74 20 6b 3b | unsigne|d int k;|
|000024a0| 0a 7b 0a 09 72 65 74 75 | 72 6e 20 28 6b 29 3b 0a |.{..retu|rn (k);.|
|000024b0| 7d 0a 23 65 6e 64 69 66 | 0a 23 69 66 64 65 66 20 |}.#endif|.#ifdef |
|000024c0| 41 53 53 49 47 4e 0a 7b | 0a 09 72 65 67 69 73 74 |ASSIGN.{|..regist|
|000024d0| 65 72 20 75 6e 73 69 67 | 6e 65 64 20 69 6e 74 20 |er unsig|ned int |
|000024e0| 69 2c 6a 3b 0a 09 66 6f | 72 20 28 69 20 3d 20 30 |i,j;..fo|r (i = 0|
|000024f0| 3b 20 69 20 3c 20 54 49 | 4d 45 53 3b 20 2b 2b 69 |; i < TI|MES; ++i|
|00002500| 29 0a 09 09 6a 20 3d 20 | 69 3b 0a 09 65 78 69 74 |)...j = |i;..exit|
|00002510| 28 30 29 3b 0a 7d 0a 23 | 65 6e 64 69 66 0a 63 00 |(0);.}.#|endif.c.|
|00002520| 12 18 00 00 14 00 0a 00 | 62 79 74 65 73 6f 72 74 |........|bytesort|
|00002530| 2e 63 00 00 13 18 00 00 | 10 00 05 00 64 72 79 2e |.c......|....dry.|
|00002540| 63 00 00 00 14 18 00 00 | 18 00 0d 00 64 72 79 72 |c.......|....dryr|
|00002550| 65 73 75 6c 74 73 2e 73 | 68 00 00 00 15 18 00 00 |esults.s|h.......|
|00002560| a4 00 07 00 67 65 6e 5f | 72 70 74 00 00 00 00 00 |....gen_|rpt.....|
|00002570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000025f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002600| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 66 6c 6f 61 74 |benchmar|ks/float|
|00002610| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00002620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002660| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00002670| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00002680| 20 20 20 20 36 32 30 20 | 20 34 34 30 32 30 34 34 | 620 | 4402044|
|00002690| 33 35 36 20 20 20 37 34 | 34 36 00 20 00 00 00 00 |356 74|46. ....|
|000026a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000026f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000027f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002800| 23 64 65 66 69 6e 65 20 | 43 4f 4e 53 54 31 09 33 |#define |CONST1.3|
|00002810| 2e 31 34 31 35 39 37 45 | 30 0a 23 64 65 66 69 6e |.141597E|0.#defin|
|00002820| 65 20 43 4f 4e 53 54 32 | 09 31 2e 37 38 33 39 30 |e CONST2|.1.78390|
|00002830| 33 32 45 34 0a 23 64 65 | 66 69 6e 65 09 43 4f 55 |32E4.#de|fine.COU|
|00002840| 4e 54 09 31 30 30 30 30 | 0a 23 64 65 66 69 6e 65 |NT.10000|.#define|
|00002850| 20 52 45 47 09 0a 0a 6d | 61 69 6e 28 29 0a 7b 0a | REG...m|ain().{.|
|00002860| 09 64 6f 75 62 6c 65 09 | 61 2c 20 62 2c 20 63 3b |.double.|a, b, c;|
|00002870| 0a 09 52 45 47 20 69 6e | 74 09 69 3b 0a 0a 09 61 |..REG in|t.i;...a|
|00002880| 20 3d 20 43 4f 4e 53 54 | 31 3b 0a 09 62 20 3d 20 | = CONST|1;..b = |
|00002890| 43 4f 4e 53 54 32 3b 0a | 09 66 6f 72 20 28 69 20 |CONST2;.|.for (i |
|000028a0| 3d 20 30 3b 20 69 20 3c | 20 43 4f 55 4e 54 3b 20 |= 0; i <| COUNT; |
|000028b0| 2b 2b 69 29 0a 09 7b 0a | 09 09 63 20 3d 20 61 20 |++i)..{.|..c = a |
|000028c0| 2a 20 62 3b 0a 09 09 63 | 20 3d 20 63 20 2f 20 61 |* b;...c| = c / a|
|000028d0| 3b 0a 09 09 63 20 3d 20 | 61 20 2a 20 62 3b 0a 09 |;...c = |a * b;..|
|000028e0| 09 63 20 3d 20 63 20 2f | 20 61 3b 0a 09 09 63 20 |.c = c /| a;...c |
|000028f0| 3d 20 61 20 2a 20 62 3b | 0a 09 09 63 20 3d 20 63 |= a * b;|...c = c|
|00002900| 20 2f 20 61 3b 0a 09 09 | 63 20 3d 20 61 20 2a 20 | / a;...|c = a * |
|00002910| 62 3b 0a 09 09 63 20 3d | 20 63 20 2f 20 61 3b 0a |b;...c =| c / a;.|
|00002920| 09 09 63 20 3d 20 61 20 | 2a 20 62 3b 0a 09 09 63 |..c = a |* b;...c|
|00002930| 20 3d 20 63 20 2f 20 61 | 3b 0a 09 09 63 20 3d 20 | = c / a|;...c = |
|00002940| 61 20 2a 20 62 3b 0a 09 | 09 63 20 3d 20 63 20 2f |a * b;..|.c = c /|
|00002950| 20 61 3b 0a 09 09 63 20 | 3d 20 61 20 2a 20 62 3b | a;...c |= a * b;|
|00002960| 0a 09 09 63 20 3d 20 63 | 20 2f 20 61 3b 0a 09 7d |...c = c| / a;..}|
|00002970| 0a 09 70 72 69 6e 74 66 | 28 22 44 6f 6e 65 5c 6e |..printf|("Done\n|
|00002980| 22 29 3b 0a 09 65 78 69 | 74 28 30 29 3b 0a 7d 0a |");..exi|t(0);.}.|
|00002990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000029f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a00| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 69 6f 63 61 6c |benchmar|ks/iocal|
|00002a10| 6c 2e 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |l.c.....|........|
|00002a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002a60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00002a70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00002a80| 20 20 20 31 33 34 36 20 | 20 34 34 30 32 30 34 34 | 1346 | 4402044|
|00002a90| 33 36 30 20 20 20 37 36 | 32 35 00 20 00 00 00 00 |360 76|25. ....|
|00002aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00002c00| 2f 2a 20 69 6f 63 61 6c | 6c 2e 63 3a 0a 20 2a 0a |/* iocal|l.c:. *.|
|00002c10| 20 2a 09 41 75 74 68 6f | 72 3a 20 09 4a 61 6e 20 | *.Autho|r: .Jan |
|00002c20| 53 74 75 62 62 73 2c 20 | 4e 43 52 2c 20 2e 2e 21 |Stubbs, |NCR, ..!|
|00002c30| 73 64 63 73 76 61 78 21 | 6e 63 72 2d 73 64 21 73 |sdcsvax!|ncr-sd!s|
|00002c40| 74 75 62 62 73 0a 20 2a | 09 52 65 73 75 6c 74 73 |tubbs. *|.Results|
|00002c50| 3a 09 53 65 6e 64 20 72 | 65 73 75 6c 74 73 20 74 |:.Send r|esults t|
|00002c60| 6f 20 74 68 65 20 61 62 | 6f 76 65 20 61 75 74 68 |o the ab|ove auth|
|00002c70| 6f 72 2e 0a 20 2a 09 56 | 65 72 73 69 6f 6e 3a 09 |or.. *.V|ersion:.|
|00002c80| 69 6d 70 72 6f 76 65 64 | 20 74 6f 20 65 6c 69 6d |improved| to elim|
|00002c90| 69 6e 61 74 65 20 72 65 | 61 6c 20 64 69 73 6b 20 |inate re|al disk |
|00002ca0| 77 72 69 74 65 73 0a 20 | 2a 0a 20 2a 20 54 68 69 |writes. |*. * Thi|
|00002cb0| 73 20 62 65 6e 63 68 6d | 61 72 6b 20 74 65 73 74 |s benchm|ark test|
|00002cc0| 73 20 73 70 65 65 64 20 | 6f 66 20 55 6e 69 78 20 |s speed |of Unix |
|00002cd0| 73 79 73 74 65 6d 20 63 | 61 6c 6c 20 69 6e 74 65 |system c|all inte|
|00002ce0| 72 66 61 63 65 0a 20 2a | 20 61 6e 64 20 73 70 65 |rface. *| and spe|
|00002cf0| 65 64 20 6f 66 20 63 70 | 75 20 64 6f 69 6e 67 20 |ed of cp|u doing |
|00002d00| 63 6f 6d 6d 6f 6e 20 55 | 6e 69 78 20 69 6f 20 73 |common U|nix io s|
|00002d10| 79 73 74 65 6d 20 63 61 | 6c 6c 73 2e 0a 20 2a 0a |ystem ca|lls.. *.|
|00002d20| 20 2a 20 55 6e 64 65 72 | 20 6e 6f 72 6d 61 6c 20 | * Under| normal |
|00002d30| 63 69 72 63 75 6d 73 74 | 61 6e 63 65 73 2c 20 74 |circumst|ances, t|
|00002d40| 68 69 73 20 62 65 6e 63 | 68 6d 61 72 6b 20 77 69 |his benc|hmark wi|
|00002d50| 6c 6c 20 6e 6f 74 20 61 | 63 74 75 61 6c 6c 79 0a |ll not a|ctually.|
|00002d60| 20 2a 20 63 61 75 73 65 | 20 61 6e 79 20 70 68 79 | * cause| any phy|
|00002d70| 73 69 63 61 6c 20 64 69 | 73 6b 20 61 63 74 69 76 |sical di|sk activ|
|00002d80| 69 74 79 2c 20 62 75 74 | 20 77 69 6c 6c 20 6a 75 |ity, but| will ju|
|00002d90| 73 74 20 63 61 75 73 65 | 20 73 79 73 74 65 6d 0a |st cause| system.|
|00002da0| 20 2a 20 62 75 66 66 65 | 72 20 61 63 74 69 76 69 | * buffe|r activi|
|00002db0| 74 79 2e 0a 20 2a 2f 0a | 0a 63 68 61 72 20 62 75 |ty.. */.|.char bu|
|00002dc0| 66 5b 35 31 32 5d 3b 0a | 69 6e 74 20 66 64 2c 63 |f[512];.|int fd,c|
|00002dd0| 6f 75 6e 74 2c 69 2c 6a | 3b 0a 0a 6d 61 69 6e 28 |ount,i,j|;..main(|
|00002de0| 29 0a 7b 0a 09 66 64 20 | 3d 20 63 72 65 61 74 28 |).{..fd |= creat(|
|00002df0| 22 2f 74 6d 70 2f 74 65 | 73 74 66 69 6c 65 22 2c |"/tmp/te|stfile",|
|00002e00| 30 37 37 37 29 3b 0a 09 | 63 6c 6f 73 65 28 66 64 |0777);..|close(fd|
|00002e10| 29 3b 0a 09 66 64 20 3d | 20 6f 70 65 6e 28 22 2f |);..fd =| open("/|
|00002e20| 74 6d 70 2f 74 65 73 74 | 66 69 6c 65 22 2c 32 29 |tmp/test|file",2)|
|00002e30| 3b 0a 09 75 6e 6c 69 6e | 6b 28 22 2f 74 6d 70 2f |;..unlin|k("/tmp/|
|00002e40| 74 65 73 74 66 69 6c 65 | 22 29 3b 0a 09 66 6f 72 |testfile|");..for|
|00002e50| 20 28 69 3d 30 3b 69 3c | 3d 31 30 30 30 3b 69 2b | (i=0;i<|=1000;i+|
|00002e60| 2b 29 20 7b 0a 09 09 6c | 73 65 65 6b 28 66 64 2c |+) {...l|seek(fd,|
|00002e70| 30 2c 30 29 3b 0a 09 09 | 63 6f 75 6e 74 20 3d 20 |0,0);...|count = |
|00002e80| 77 72 69 74 65 28 66 64 | 2c 62 75 66 2c 35 30 30 |write(fd|,buf,500|
|00002e90| 29 3b 0a 09 09 6c 73 65 | 65 6b 28 66 64 2c 30 2c |);...lse|ek(fd,0,|
|00002ea0| 30 29 3b 0a 09 09 66 6f | 72 20 28 6a 3d 30 3b 6a |0);...fo|r (j=0;j|
|00002eb0| 3c 3d 33 3b 6a 2b 2b 29 | 20 0a 09 09 09 63 6f 75 |<=3;j++)| ....cou|
|00002ec0| 6e 74 20 3d 20 72 65 61 | 64 28 66 64 2c 62 75 66 |nt = rea|d(fd,buf|
|00002ed0| 2c 31 30 30 29 3b 0a 09 | 7d 0a 09 65 78 69 74 28 |,100);..|}..exit(|
|00002ee0| 30 29 3b 0a 7d 0a 6c 27 | 20 70 72 6f 67 72 61 6d |0);.}.l'| program|
|00002ef0| 20 77 61 73 20 74 68 65 | 6e 20 77 72 69 74 74 65 | was the|n writte|
|00002f00| 6e 0a 09 20 20 20 62 79 | 20 52 65 69 6e 68 6f 6c |n.. by| Reinhol|
|00002f10| 64 20 50 2e 20 57 65 69 | 63 6b 65 72 20 75 73 69 |d P. Wei|cker usi|
|00002f20| 6e 67 20 74 68 65 73 65 | 20 73 74 61 74 69 73 74 |ng these| statist|
|00002f30| 69 63 73 2e 20 20 54 68 | 65 0a 09 20 20 20 70 72 |ics. Th|e.. pr|
|00002f40| 6f 67 72 61 6d 20 69 73 | 20 62 61 6c 61 6e 63 65 |ogram is| balance|
|00002f50| 64 20 61 63 63 6f 72 64 | 69 6e 67 20 74 6f 20 73 |d accord|ing to s|
|00002f60| 74 61 74 65 6d 65 6e 74 | 20 74 79 70 65 2c 20 61 |tatement| type, a|
|00002f70| 73 20 77 65 6c 6c 0a 09 | 20 20 20 61 73 20 64 61 |s well..| as da|
|00002f80| 74 61 20 74 79 70 65 2e | 0a 0a 09 32 29 20 44 48 |ta type.|...2) DH|
|00002f90| 52 59 53 54 4f 4e 45 20 | 64 6f 65 73 20 6e 6f 74 |RYSTONE |does not|
|00002fa0| 20 75 73 65 20 66 6c 6f | 61 74 69 6e 67 20 70 6f | use flo|ating po|
|00002fb0| 69 6e 74 2e 20 20 54 79 | 70 69 63 61 6c 20 70 72 |int. Ty|pical pr|
|00002fc0| 6f 67 72 61 6d 73 20 64 | 6f 6e 27 74 2e 0a 0a 09 |ograms d|on't....|
|00002fd0| 33 29 20 44 48 52 59 53 | 54 4f 4e 45 20 64 6f 65 |3) DHRYS|TONE doe|
|00002fe0| 73 20 6e 6f 74 20 64 6f | 20 49 2f 4f 2e 20 20 54 |s not do| I/O. T|
|00002ff0| 79 70 69 63 61 6c 20 70 | 72 6f 67 72 61 6d 73 20 |ypical p|rograms |
|00003000| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 6c 6f 6f 70 2e |benchmar|ks/loop.|
|00003010| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00003020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00003080| 20 20 20 20 20 37 37 20 | 20 34 34 30 32 30 34 34 | 77 | 4402044|
|00003090| 33 36 30 20 20 20 37 32 | 37 33 00 20 00 00 00 00 |360 72|73. ....|
|000030a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000030f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000031f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003200| 6d 61 69 6e 28 29 0a 7b | 0a 09 6c 6f 6e 67 20 69 |main().{|..long i|
|00003210| 3b 0a 09 66 6f 72 20 28 | 69 3d 30 3b 20 69 20 3c |;..for (|i=0; i <|
|00003220| 31 30 30 30 30 30 30 4c | 3b 20 2b 2b 69 29 0a 09 |1000000L|; ++i)..|
|00003230| 09 3b 0a 09 65 78 69 74 | 28 30 29 3b 0a 7d 0a 00 |.;..exit|(0);.}..|
|00003240| 05 18 00 00 10 00 07 00 | 64 72 65 61 64 2e 63 00 |........|dread.c.|
|00003250| 06 18 00 00 10 00 07 00 | 66 63 61 6c 6c 2e 63 00 |........|fcall.c.|
|00003260| 07 18 00 00 10 00 07 00 | 66 6c 6f 61 74 2e 63 00 |........|float.c.|
|00003270| 08 18 00 00 14 00 08 00 | 69 6f 63 61 6c 6c 2e 63 |........|iocall.c|
|00003280| 00 00 00 00 09 18 00 00 | 10 00 06 00 6c 6f 6f 70 |........|....loop|
|00003290| 2e 63 00 00 0a 18 00 00 | 10 00 07 00 70 69 70 65 |.c......|....pipe|
|000032a0| 73 2e 63 00 0b 18 00 00 | 10 00 07 00 73 69 65 76 |s.c.....|....siev|
|000032b0| 65 2e 63 00 0c 18 00 00 | 10 00 06 00 74 73 74 2e |e.c.....|....tst.|
|000032c0| 73 68 00 00 0d 18 00 00 | 14 00 08 00 64 77 72 69 |sh......|....dwri|
|000032d0| 74 65 2e 63 00 00 00 00 | 0e 18 00 00 10 00 06 00 |te.c....|........|
|000032e0| 66 69 62 6f 2e 63 00 00 | 0f 18 00 00 14 00 08 00 |fibo.c..|........|
|000032f0| 69 6f 66 69 6c 65 2e 63 | 00 00 00 00 10 18 00 00 |iofile.c|........|
|00003300| 14 00 08 00 6d 75 6c 74 | 69 2e 73 68 00 00 00 00 |....mult|i.sh....|
|00003310| 11 18 00 00 10 00 07 00 | 73 63 61 6c 6c 2e 63 00 |........|scall.c.|
|00003320| 12 18 00 00 14 00 0a 00 | 62 79 74 65 73 6f 72 74 |........|bytesort|
|00003330| 2e 63 00 00 13 18 00 00 | 10 00 05 00 64 72 79 2e |.c......|....dry.|
|00003340| 63 00 00 00 14 18 00 00 | 18 00 0d 00 64 72 79 72 |c.......|....dryr|
|00003350| 65 73 75 6c 74 73 2e 73 | 68 00 00 00 15 18 00 00 |esults.s|h.......|
|00003360| a4 00 07 00 67 65 6e 5f | 72 70 74 00 00 00 00 00 |....gen_|rpt.....|
|00003370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000033f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003400| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 70 69 70 65 73 |benchmar|ks/pipes|
|00003410| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00003420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003460| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003470| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00003480| 20 20 20 20 36 36 37 20 | 20 34 34 30 32 30 34 34 | 667 | 4402044|
|00003490| 33 36 32 20 20 20 37 34 | 37 31 00 20 00 00 00 00 |362 74|71. ....|
|000034a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000034f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000035f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003600| 23 64 65 66 69 6e 65 20 | 42 4c 4f 43 4b 53 20 31 |#define |BLOCKS 1|
|00003610| 30 32 34 0a 63 68 61 72 | 20 62 75 66 66 65 72 5b |024.char| buffer[|
|00003620| 35 31 32 5d 3b 0a 69 6e | 74 09 66 69 64 5b 32 5d |512];.in|t.fid[2]|
|00003630| 3b 0a 6d 61 69 6e 28 29 | 0a 7b 0a 09 72 65 67 69 |;.main()|.{..regi|
|00003640| 73 74 65 72 20 69 6e 74 | 20 69 3b 0a 09 70 69 70 |ster int| i;..pip|
|00003650| 65 28 66 69 64 29 3b 0a | 09 69 66 20 28 66 6f 72 |e(fid);.|.if (for|
|00003660| 6b 28 29 29 7b 0a 09 09 | 66 6f 72 20 28 69 20 3d |k()){...|for (i =|
|00003670| 20 30 3b 20 69 20 3c 20 | 42 4c 4f 43 4b 53 3b 20 | 0; i < |BLOCKS; |
|00003680| 2b 2b 69 29 0a 09 09 09 | 69 66 20 28 77 72 69 74 |++i)....|if (writ|
|00003690| 65 28 66 69 64 5b 31 5d | 2c 20 62 75 66 66 65 72 |e(fid[1]|, buffer|
|000036a0| 2c 20 35 31 32 29 20 3c | 20 30 29 0a 09 09 09 09 |, 512) <| 0).....|
|000036b0| 70 72 69 6e 74 66 28 22 | 45 72 72 6f 72 20 69 6e |printf("|Error in|
|000036c0| 20 77 72 69 74 69 6e 67 | 3b 20 69 3d 25 64 5c 6e | writing|; i=%d\n|
|000036d0| 22 2c 20 69 29 3b 0a 09 | 09 69 66 20 28 63 6c 6f |", i);..|.if (clo|
|000036e0| 73 65 28 66 69 64 5b 31 | 5d 29 20 21 3d 20 30 29 |se(fid[1|]) != 0)|
|000036f0| 0a 09 09 09 70 72 69 6e | 74 66 28 22 45 72 72 6f |....prin|tf("Erro|
|00003700| 72 20 69 6e 20 70 61 72 | 65 6e 74 20 63 6c 6f 73 |r in par|ent clos|
|00003710| 69 6e 67 5c 6e 22 29 3b | 0a 09 7d 0a 09 65 6c 73 |ing\n");|..}..els|
|00003720| 65 20 7b 0a 09 09 69 66 | 20 28 63 6c 6f 73 65 28 |e {...if| (close(|
|00003730| 66 69 64 5b 31 5d 29 20 | 21 3d 20 30 29 0a 09 09 |fid[1]) |!= 0)...|
|00003740| 09 70 72 69 6e 74 66 28 | 22 45 72 72 6f 72 20 69 |.printf(|"Error i|
|00003750| 6e 20 63 68 69 6c 64 20 | 63 6c 6f 73 69 6e 67 5c |n child |closing\|
|00003760| 6e 22 29 3b 0a 09 09 66 | 6f 72 28 3b 3b 29 0a 09 |n");...f|or(;;)..|
|00003770| 09 09 69 66 20 28 72 65 | 61 64 28 66 69 64 5b 30 |..if (re|ad(fid[0|
|00003780| 5d 2c 20 62 75 66 66 65 | 72 2c 20 35 31 32 29 20 |], buffe|r, 512) |
|00003790| 3d 3d 20 30 29 20 7b 0a | 09 09 09 09 62 72 65 61 |== 0) {.|....brea|
|000037a0| 6b 3b 0a 09 09 09 7d 0a | 09 7d 0a 09 65 78 69 74 |k;....}.|.}..exit|
|000037b0| 28 30 29 3b 0a 7d 0a 00 | 00 00 00 00 00 00 00 00 |(0);.}..|........|
|000037c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003800| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 73 69 65 76 65 |benchmar|ks/sieve|
|00003810| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00003820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003870| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00003880| 20 20 20 20 37 35 34 20 | 20 34 34 30 32 30 34 34 | 754 | 4402044|
|00003890| 33 36 33 20 20 20 37 34 | 36 32 00 20 00 00 00 00 |363 74|62. ....|
|000038a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003a00| 23 64 65 66 69 6e 65 20 | 54 52 55 45 20 31 0a 23 |#define |TRUE 1.#|
|00003a10| 64 65 66 69 6e 65 20 46 | 41 4c 53 45 20 30 0a 23 |define F|ALSE 0.#|
|00003a20| 64 65 66 69 6e 65 20 53 | 49 5a 45 20 38 31 39 30 |define S|IZE 8190|
|00003a30| 0a 23 64 65 66 69 6e 65 | 20 52 45 47 09 72 65 67 |.#define| REG.reg|
|00003a40| 69 73 74 65 72 0a 0a 63 | 68 61 72 09 66 6c 61 67 |ister..c|har.flag|
|00003a50| 73 5b 53 49 5a 45 2b 31 | 5d 3b 0a 0a 6d 61 69 6e |s[SIZE+1|];..main|
|00003a60| 28 29 0a 7b 0a 09 52 45 | 47 20 69 6e 74 09 09 69 |().{..RE|G int..i|
|00003a70| 2c 20 70 72 69 6d 65 2c | 20 6b 2c 20 63 6f 75 6e |, prime,| k, coun|
|00003a80| 74 2c 20 69 74 65 72 3b | 0a 0a 2f 2a 09 70 72 69 |t, iter;|../*.pri|
|00003a90| 6e 74 66 28 22 31 30 20 | 69 74 65 72 61 74 69 6f |ntf("10 |iteratio|
|00003aa0| 6e 73 5c 6e 22 29 3b 2a | 2f 0a 09 66 6f 72 20 28 |ns\n");*|/..for (|
|00003ab0| 69 74 65 72 20 3d 20 31 | 3b 20 69 74 65 72 20 3c |iter = 1|; iter <|
|00003ac0| 3d 20 31 30 3b 20 2b 2b | 69 74 65 72 29 0a 09 7b |= 10; ++|iter)..{|
|00003ad0| 0a 09 09 63 6f 75 6e 74 | 20 3d 20 30 3b 0a 09 09 |...count| = 0;...|
|00003ae0| 66 6f 72 20 28 69 20 3d | 20 30 3b 20 69 20 3c 3d |for (i =| 0; i <=|
|00003af0| 20 53 49 5a 45 3b 20 2b | 2b 69 29 0a 09 09 09 66 | SIZE; +|+i)....f|
|00003b00| 6c 61 67 73 5b 69 5d 20 | 3d 20 54 52 55 45 3b 0a |lags[i] |= TRUE;.|
|00003b10| 09 09 66 6f 72 20 28 69 | 20 3d 20 30 3b 20 69 20 |..for (i| = 0; i |
|00003b20| 3c 3d 20 53 49 5a 45 3b | 20 2b 2b 69 29 0a 09 09 |<= SIZE;| ++i)...|
|00003b30| 7b 0a 09 09 09 69 66 20 | 28 66 6c 61 67 73 5b 69 |{....if |(flags[i|
|00003b40| 5d 29 0a 09 09 09 7b 0a | 09 09 09 09 70 72 69 6d |])....{.|....prim|
|00003b50| 65 20 3d 20 69 20 2b 20 | 69 20 2b 20 33 3b 0a 09 |e = i + |i + 3;..|
|00003b60| 09 09 09 66 6f 72 20 28 | 6b 20 3d 20 69 20 2b 20 |...for (|k = i + |
|00003b70| 70 72 69 6d 65 3b 20 6b | 20 3c 3d 20 53 49 5a 45 |prime; k| <= SIZE|
|00003b80| 3b 20 6b 2b 3d 20 70 72 | 69 6d 65 29 0a 09 09 09 |; k+= pr|ime)....|
|00003b90| 09 09 66 6c 61 67 73 5b | 6b 5d 20 3d 20 46 41 4c |..flags[|k] = FAL|
|00003ba0| 53 45 3b 0a 09 09 09 09 | 2b 2b 63 6f 75 6e 74 3b |SE;.....|++count;|
|00003bb0| 0a 09 09 09 7d 0a 09 09 | 7d 0a 09 7d 0a 2f 2a 09 |....}...|}..}./*.|
|00003bc0| 70 72 69 6e 74 66 28 22 | 25 64 20 70 72 69 6d 65 |printf("|%d prime|
|00003bd0| 73 5c 6e 22 2c 20 63 6f | 75 6e 74 29 3b 2a 2f 0a |s\n", co|unt);*/.|
|00003be0| 09 65 78 69 74 28 30 29 | 3b 0a 7d 0a 00 00 00 00 |.exit(0)|;.}.....|
|00003bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c00| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 74 73 74 2e 73 |benchmar|ks/tst.s|
|00003c10| 68 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|00003c20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003c60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00003c70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00003c80| 20 20 20 20 33 31 30 20 | 20 34 34 30 32 30 34 34 | 310 | 4402044|
|00003c90| 33 36 34 20 20 20 37 33 | 33 36 00 20 00 00 00 00 |364 73|36. ....|
|00003ca0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ce0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003cf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003d90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003da0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003db0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003dd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003de0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003df0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003e00| 73 6f 72 74 20 3e 73 6f | 72 74 2e 24 24 20 3c 3c |sort >so|rt.$$ <<|
|00003e10| 45 4f 46 0a 4e 6f 77 0a | 69 73 0a 74 68 65 0a 74 |EOF.Now.|is.the.t|
|00003e20| 69 6d 65 0a 66 6f 72 0a | 61 6c 6c 0a 67 6f 6f 64 |ime.for.|all.good|
|00003e30| 0a 6d 65 6e 0a 74 6f 0a | 63 6f 6d 65 0a 74 6f 0a |.men.to.|come.to.|
|00003e40| 74 68 65 0a 61 69 64 0a | 6f 66 0a 74 68 65 69 72 |the.aid.|of.their|
|00003e50| 0a 63 6f 75 6e 74 72 79 | 0a 45 4f 46 0a 6f 64 20 |.country|.EOF.od |
|00003e60| 73 6f 72 74 2e 24 24 20 | 7c 20 73 6f 72 74 20 2d |sort.$$ || sort -|
|00003e70| 6e 20 2b 31 20 3e 20 6f | 64 2e 24 24 0a 67 72 65 |n +1 > o|d.$$.gre|
|00003e80| 70 20 74 68 65 20 73 6f | 72 74 2e 24 24 20 7c 20 |p the so|rt.$$ | |
|00003e90| 74 65 65 20 67 72 65 70 | 2e 24 24 20 7c 20 77 63 |tee grep|.$$ | wc|
|00003ea0| 20 3e 20 77 63 2e 24 24 | 0a 72 6d 20 73 6f 72 74 | > wc.$$|.rm sort|
|00003eb0| 2e 24 24 20 67 72 65 70 | 2e 24 24 20 6f 64 2e 24 |.$$ grep|.$$ od.$|
|00003ec0| 24 20 77 63 2e 24 24 0a | 14 00 08 00 64 77 72 69 |$ wc.$$.|....dwri|
|00003ed0| 74 65 2e 63 00 00 00 00 | 0e 18 00 00 10 00 06 00 |te.c....|........|
|00003ee0| 66 69 62 6f 2e 63 00 00 | 0f 18 00 00 14 00 08 00 |fibo.c..|........|
|00003ef0| 69 6f 66 69 6c 65 2e 63 | 00 00 00 00 10 18 00 00 |iofile.c|........|
|00003f00| 14 00 08 00 6d 75 6c 74 | 69 2e 73 68 00 00 00 00 |....mult|i.sh....|
|00003f10| 11 18 00 00 10 00 07 00 | 73 63 61 6c 6c 2e 63 00 |........|scall.c.|
|00003f20| 12 18 00 00 14 00 0a 00 | 62 79 74 65 73 6f 72 74 |........|bytesort|
|00003f30| 2e 63 00 00 13 18 00 00 | 10 00 05 00 64 72 79 2e |.c......|....dry.|
|00003f40| 63 00 00 00 14 18 00 00 | 18 00 0d 00 64 72 79 72 |c.......|....dryr|
|00003f50| 65 73 75 6c 74 73 2e 73 | 68 00 00 00 15 18 00 00 |esults.s|h.......|
|00003f60| a4 00 07 00 67 65 6e 5f | 72 70 74 00 00 00 00 00 |....gen_|rpt.....|
|00003f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003fe0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003ff0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004000| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 64 77 72 69 74 |benchmar|ks/dwrit|
|00004010| 65 2e 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |e.c.....|........|
|00004020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004040| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004060| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00004070| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00004080| 20 20 20 20 37 36 32 20 | 20 34 34 30 32 30 34 34 | 762 | 4402044|
|00004090| 33 36 35 20 20 20 37 36 | 34 36 00 20 00 00 00 00 |365 76|46. ....|
|000040a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000040f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004100| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004110| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004120| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004130| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004140| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004150| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004160| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004170| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004180| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004190| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000041f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004200| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|00004210| 68 3e 0a 23 64 65 66 69 | 6e 65 20 42 4c 4f 43 4b |h>.#defi|ne BLOCK|
|00004220| 53 20 32 35 36 0a 6d 61 | 69 6e 28 29 0a 7b 0a 09 |S 256.ma|in().{..|
|00004230| 63 68 61 72 20 62 75 66 | 66 65 72 5b 35 31 32 5d |char buf|fer[512]|
|00004240| 3b 0a 09 63 68 61 72 09 | 2a 66 69 6c 65 6e 61 6d |;..char.|*filenam|
|00004250| 65 20 3d 20 22 61 5f 6c | 61 72 67 65 5f 66 69 6c |e = "a_l|arge_fil|
|00004260| 65 22 3b 0a 09 72 65 67 | 69 73 74 65 72 20 69 6e |e";..reg|ister in|
|00004270| 74 20 69 3b 0a 09 69 6e | 74 09 66 69 6c 64 65 73 |t i;..in|t.fildes|
|00004280| 3b 0a 09 69 66 20 28 28 | 66 69 6c 64 65 73 20 3d |;..if ((|fildes =|
|00004290| 20 63 72 65 61 74 28 66 | 69 6c 65 6e 61 6d 65 2c | creat(f|ilename,|
|000042a0| 20 30 36 34 30 29 29 20 | 3c 20 30 29 20 7b 0a 09 | 0640)) |< 0) {..|
|000042b0| 09 70 72 69 6e 74 66 28 | 22 43 61 6e 6e 6f 74 20 |.printf(|"Cannot |
|000042c0| 63 72 65 61 74 65 20 66 | 69 6c 65 5c 6e 22 29 3b |create f|ile\n");|
|000042d0| 0a 09 09 65 78 69 74 28 | 31 29 3b 0a 09 7d 20 65 |...exit(|1);..} e|
|000042e0| 6c 73 65 20 7b 0a 09 09 | 63 6c 6f 73 65 28 66 69 |lse {...|close(fi|
|000042f0| 6c 64 65 73 29 3b 0a 09 | 09 69 66 20 28 28 66 69 |ldes);..|.if ((fi|
|00004300| 6c 64 65 73 20 3d 20 6f | 70 65 6e 28 66 69 6c 65 |ldes = o|pen(file|
|00004310| 6e 61 6d 65 2c 20 31 29 | 29 20 3c 20 30 29 20 7b |name, 1)|) < 0) {|
|00004320| 0a 09 09 09 70 72 69 6e | 74 66 28 22 43 61 6e 6e |....prin|tf("Cann|
|00004330| 6f 74 20 6f 70 65 6e 20 | 66 69 6c 65 5c 6e 22 29 |ot open |file\n")|
|00004340| 3b 0a 09 09 09 65 78 69 | 74 28 31 29 3b 0a 09 09 |;....exi|t(1);...|
|00004350| 7d 0a 09 7d 0a 09 66 6f | 72 20 28 69 20 3d 20 30 |}..}..fo|r (i = 0|
|00004360| 3b 20 69 20 3c 20 42 4c | 4f 43 4b 53 3b 20 2b 2b |; i < BL|OCKS; ++|
|00004370| 69 29 0a 09 09 69 66 20 | 28 77 72 69 74 65 28 66 |i)...if |(write(f|
|00004380| 69 6c 64 65 73 2c 20 62 | 75 66 66 65 72 2c 20 35 |ildes, b|uffer, 5|
|00004390| 31 32 29 20 3c 20 30 29 | 20 7b 0a 09 09 09 70 72 |12) < 0)| {....pr|
|000043a0| 69 6e 74 66 28 22 45 72 | 72 6f 72 20 77 72 69 74 |intf("Er|ror writ|
|000043b0| 69 6e 67 20 62 6c 6f 63 | 6b 20 25 64 5c 6e 22 2c |ing bloc|k %d\n",|
|000043c0| 20 69 29 3b 0a 09 09 09 | 65 78 69 74 20 28 31 29 | i);....|exit (1)|
|000043d0| 3b 0a 09 09 7d 0a 09 63 | 6c 6f 73 65 28 66 69 6c |;...}..c|lose(fil|
|000043e0| 64 65 73 29 3b 0a 09 65 | 78 69 74 28 30 29 3b 0a |des);..e|xit(0);.|
|000043f0| 7d 0a 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |}.......|........|
|00004400| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 66 69 62 6f 2e |benchmar|ks/fibo.|
|00004410| 63 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |c.......|........|
|00004420| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004430| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004440| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004450| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004460| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00004470| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00004480| 20 20 20 20 35 35 34 20 | 20 34 34 30 32 30 34 34 | 554 | 4402044|
|00004490| 33 36 36 20 20 20 37 32 | 36 37 00 20 00 00 00 00 |366 72|67. ....|
|000044a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000044f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004500| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004510| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004520| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004530| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004540| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004550| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004560| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000045f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004600| 23 64 65 66 69 6e 65 20 | 4e 54 49 4d 45 53 09 31 |#define |NTIMES.1|
|00004610| 30 0a 23 64 65 66 69 6e | 65 09 4e 55 4d 42 45 52 |0.#defin|e.NUMBER|
|00004620| 09 32 34 0a 23 64 65 66 | 69 6e 65 09 52 45 47 09 |.24.#def|ine.REG.|
|00004630| 72 65 67 69 73 74 65 72 | 0a 0a 6d 61 69 6e 28 29 |register|..main()|
|00004640| 0a 7b 0a 09 52 45 47 20 | 69 6e 74 09 09 69 3b 0a |.{..REG |int..i;.|
|00004650| 09 52 45 47 20 75 6e 73 | 69 67 6e 65 64 09 76 61 |.REG uns|igned.va|
|00004660| 6c 75 65 3b 0a 09 75 6e | 73 69 67 6e 65 64 09 66 |lue;..un|signed.f|
|00004670| 69 62 28 29 3b 0a 0a 09 | 70 72 69 6e 74 66 28 22 |ib();...|printf("|
|00004680| 25 64 20 69 74 65 72 61 | 74 69 6f 6e 73 3a 20 22 |%d itera|tions: "|
|00004690| 2c 20 4e 54 49 4d 45 53 | 29 3b 0a 0a 09 66 6f 72 |, NTIMES|);...for|
|000046a0| 20 28 69 20 3d 20 31 3b | 20 69 20 3c 3d 20 4e 54 | (i = 1;| i <= NT|
|000046b0| 49 4d 45 53 3b 20 2b 2b | 69 29 0a 09 09 76 61 6c |IMES; ++|i)...val|
|000046c0| 75 65 20 3d 20 66 69 62 | 28 4e 55 4d 42 45 52 29 |ue = fib|(NUMBER)|
|000046d0| 3b 0a 0a 09 70 72 69 6e | 74 66 28 22 66 69 62 6f |;...prin|tf("fibo|
|000046e0| 6e 61 63 63 69 28 25 64 | 29 20 3d 20 25 75 2e 5c |nacci(%d|) = %u.\|
|000046f0| 6e 22 2c 20 4e 55 4d 42 | 45 52 2c 20 76 61 6c 75 |n", NUMB|ER, valu|
|00004700| 65 29 3b 0a 09 65 78 69 | 74 28 30 29 3b 0a 7d 0a |e);..exi|t(0);.}.|
|00004710| 0a 75 6e 73 69 67 6e 65 | 64 20 66 69 62 28 78 29 |.unsigne|d fib(x)|
|00004720| 0a 69 6e 74 09 78 3b 0a | 7b 0a 09 69 66 20 28 78 |.int.x;.|{..if (x|
|00004730| 20 3e 20 32 29 0a 09 09 | 72 65 74 75 72 6e 20 28 | > 2)...|return (|
|00004740| 66 69 62 28 78 2d 31 29 | 20 2b 20 66 69 62 28 78 |fib(x-1)| + fib(x|
|00004750| 2d 32 29 29 3b 0a 09 65 | 6c 73 65 0a 09 09 72 65 |-2));..e|lse...re|
|00004760| 74 75 72 6e 20 28 31 29 | 3b 0a 7d 0a 00 00 00 00 |turn (1)|;.}.....|
|00004770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000047f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004800| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 69 6f 66 69 6c |benchmar|ks/iofil|
|00004810| 65 2e 63 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |e.c.....|........|
|00004820| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004830| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004840| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004850| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004860| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00004870| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00004880| 20 20 20 33 36 32 30 20 | 20 34 34 30 32 30 34 34 | 3620 | 4402044|
|00004890| 33 37 30 20 20 20 37 36 | 32 37 00 20 00 00 00 00 |370 76|27. ....|
|000048a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000048f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004900| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004920| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004930| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004940| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004950| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004960| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000049f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00004a00| 23 64 65 66 69 6e 65 20 | 45 52 52 4f 52 09 2d 31 |#define |ERROR.-1|
|00004a10| 0a 23 64 65 66 69 6e 65 | 20 52 45 41 44 45 52 52 |.#define| READERR|
|00004a20| 09 30 0a 0a 23 64 65 66 | 69 6e 65 09 42 45 47 09 |.0..#def|ine.BEG.|
|00004a30| 30 0a 23 64 65 66 69 6e | 65 09 43 55 52 52 09 31 |0.#defin|e.CURR.1|
|00004a40| 0a 23 64 65 66 69 6e 65 | 09 45 4e 44 09 32 0a 23 |.#define|.END.2.#|
|00004a50| 64 65 66 69 6e 65 09 52 | 45 41 44 09 30 0a 23 64 |define.R|EAD.0.#d|
|00004a60| 65 66 69 6e 65 09 57 52 | 49 54 45 09 31 0a 23 64 |efine.WR|ITE.1.#d|
|00004a70| 65 66 69 6e 65 09 55 50 | 44 41 54 45 09 32 0a 0a |efine.UP|DATE.2..|
|00004a80| 23 64 65 66 69 6e 65 09 | 4f 4b 43 4c 4f 53 45 09 |#define.|OKCLOSE.|
|00004a90| 30 0a 23 64 65 66 69 6e | 65 09 46 49 4c 45 53 49 |0.#defin|e.FILESI|
|00004aa0| 5a 45 09 36 35 30 30 30 | 4c 0a 23 64 65 66 69 6e |ZE.65000|L.#defin|
|00004ab0| 65 09 43 4f 55 4e 54 09 | 35 30 30 0a 0a 23 64 65 |e.COUNT.|500..#de|
|00004ac0| 66 69 6e 65 09 43 09 31 | 33 38 34 39 4c 0a 23 64 |fine.C.1|3849L.#d|
|00004ad0| 65 66 69 6e 65 09 41 09 | 32 35 31 37 33 4c 0a 23 |efine.A.|25173L.#|
|00004ae0| 64 65 66 69 6e 65 09 4f | 44 44 4e 55 4d 09 32 33 |define.O|DDNUM.23|
|00004af0| 0a 23 64 65 66 69 6e 65 | 09 52 45 47 0a 6c 6f 6e |.#define|.REG.lon|
|00004b00| 67 09 73 65 65 64 20 3d | 20 37 4c 3b 0a 0a 6c 6f |g.seed =| 7L;..lo|
|00004b10| 6e 67 09 72 61 6e 64 6f | 6d 28 29 2c 20 6c 73 65 |ng.rando|m(), lse|
|00004b20| 65 6b 28 29 3b 0a 0a 6d | 61 69 6e 28 61 72 67 63 |ek();..m|ain(argc|
|00004b30| 2c 20 61 72 67 76 29 0a | 69 6e 74 09 61 72 67 63 |, argv).|int.argc|
|00004b40| 3b 0a 63 68 61 72 09 2a | 61 72 67 76 5b 5d 3b 0a |;.char.*|argv[];.|
|00004b50| 7b 0a 09 69 6e 74 09 69 | 3b 0a 09 52 45 47 20 6c |{..int.i|;..REG l|
|00004b60| 6f 6e 67 09 6a 3b 0a 09 | 6c 6f 6e 67 09 09 70 6f |ong.j;..|long..po|
|00004b70| 73 3b 0a 09 69 6e 74 09 | 66 64 3b 0a 09 63 68 61 |s;..int.|fd;..cha|
|00004b80| 72 09 62 75 66 66 65 72 | 5b 35 31 32 5d 3b 0a 0a |r.buffer|[512];..|
|00004b90| 09 69 66 20 28 61 72 67 | 63 20 3d 3d 20 31 29 20 |.if (arg|c == 1) |
|00004ba0| 61 72 67 76 5b 31 5d 20 | 3d 20 22 72 66 69 6c 65 |argv[1] |= "rfile|
|00004bb0| 22 3b 0a 09 69 66 20 28 | 28 66 64 20 3d 20 63 72 |";..if (|(fd = cr|
|00004bc0| 65 61 74 28 61 72 67 76 | 5b 31 5d 2c 20 30 36 36 |eat(argv|[1], 066|
|00004bd0| 36 29 29 20 3d 3d 20 45 | 52 52 4f 52 29 0a 09 09 |6)) == E|RROR)...|
|00004be0| 61 62 6f 72 74 28 22 43 | 61 6e 27 74 20 63 72 65 |abort("C|an't cre|
|00004bf0| 61 74 65 20 64 61 74 61 | 20 66 69 6c 65 5c 6e 22 |ate data| file\n"|
|00004c00| 29 3b 0a 09 65 6c 73 65 | 09 70 72 69 6e 74 66 28 |);..else|.printf(|
|00004c10| 22 46 69 6c 65 20 6f 70 | 65 6e 65 64 20 66 6f 72 |"File op|ened for|
|00004c20| 20 73 65 71 75 65 6e 74 | 69 61 6c 20 77 72 69 74 | sequent|ial writ|
|00004c30| 69 6e 67 5c 6e 22 29 3b | 0a 09 66 6f 72 20 28 6a |ing\n");|..for (j|
|00004c40| 20 3d 20 30 3b 20 6a 20 | 3c 20 73 69 7a 65 6f 66 | = 0; j |< sizeof|
|00004c50| 28 62 75 66 66 65 72 29 | 3b 20 2b 2b 6a 29 20 62 |(buffer)|; ++j) b|
|00004c60| 75 66 66 65 72 5b 6a 5d | 20 3d 20 27 78 27 3b 0a |uffer[j]| = 'x';.|
|00004c70| 09 66 6f 72 20 28 6a 20 | 3d 20 46 49 4c 45 53 49 |.for (j |= FILESI|
|00004c80| 5a 45 3b 20 6a 20 3e 20 | 30 3b 20 6a 20 2d 3d 20 |ZE; j > |0; j -= |
|00004c90| 73 69 7a 65 6f 66 28 62 | 75 66 66 65 72 29 29 0a |sizeof(b|uffer)).|
|00004ca0| 09 09 69 66 20 28 77 72 | 69 74 65 28 66 64 2c 20 |..if (wr|ite(fd, |
|00004cb0| 62 75 66 66 65 72 2c 20 | 20 28 6a 20 3e 20 35 31 |buffer, | (j > 51|
|00004cc0| 32 29 20 3f 20 35 31 32 | 20 3a 20 6a 29 20 3d 3d |2) ? 512| : j) ==|
|00004cd0| 20 45 52 52 4f 52 29 0a | 09 09 09 61 62 6f 72 74 | ERROR).|...abort|
|00004ce0| 28 22 55 6e 65 78 70 65 | 63 74 65 64 20 45 4f 46 |("Unexpe|cted EOF|
|00004cf0| 20 69 6e 20 77 72 69 74 | 69 6e 67 20 64 61 74 61 | in writ|ing data|
|00004d00| 20 66 69 6c 65 5c 6e 22 | 29 3b 0a 09 69 66 20 28 | file\n"|);..if (|
|00004d10| 63 6c 6f 73 65 28 66 64 | 29 20 21 3d 20 4f 4b 43 |close(fd|) != OKC|
|00004d20| 4c 4f 53 45 29 0a 09 09 | 61 62 6f 72 74 28 22 45 |LOSE)...|abort("E|
|00004d30| 72 72 6f 72 20 63 6c 6f | 73 69 6e 67 20 64 61 74 |rror clo|sing dat|
|00004d40| 61 20 66 69 6c 65 5c 6e | 22 29 3b 0a 09 65 6c 73 |a file\n|");..els|
|00004d50| 65 0a 09 09 70 72 69 6e | 74 66 28 22 4e 6f 72 6d |e...prin|tf("Norm|
|00004d60| 61 6c 20 74 65 72 6d 69 | 6e 61 74 69 6f 6e 20 77 |al termi|nation w|
|00004d70| 72 69 74 69 6e 67 20 64 | 61 74 61 20 66 69 6c 65 |riting d|ata file|
|00004d80| 5c 6e 22 29 3b 0a 09 69 | 66 20 28 28 66 64 20 3d |\n");..i|f ((fd =|
|00004d90| 20 6f 70 65 6e 28 61 72 | 67 76 5b 31 5d 2c 20 55 | open(ar|gv[1], U|
|00004da0| 50 44 41 54 45 29 29 20 | 3d 3d 20 45 52 52 4f 52 |PDATE)) |== ERROR|
|00004db0| 29 0a 09 09 61 62 6f 72 | 74 28 22 43 61 6e 27 74 |)...abor|t("Can't|
|00004dc0| 20 6f 70 65 6e 20 64 61 | 74 61 20 66 69 6c 65 20 | open da|ta file |
|00004dd0| 66 6f 72 20 72 61 6e 64 | 6f 6d 20 72 65 61 64 69 |for rand|om readi|
|00004de0| 6e 67 20 61 6e 64 20 77 | 72 69 74 69 6e 67 5c 6e |ng and w|riting\n|
|00004df0| 22 29 3b 0a 09 65 6c 73 | 65 09 70 72 69 6e 74 66 |");..els|e.printf|
|00004e00| 28 22 46 69 6c 65 20 6f | 70 65 6e 65 64 20 66 6f |("File o|pened fo|
|00004e10| 72 20 72 61 6e 64 6f 6d | 20 72 65 61 64 69 6e 67 |r random| reading|
|00004e20| 20 61 6e 64 20 77 72 69 | 74 69 6e 67 5c 6e 22 29 | and wri|ting\n")|
|00004e30| 3b 0a 09 66 6f 72 20 28 | 69 20 3d 20 30 3b 20 69 |;..for (|i = 0; i|
|00004e40| 20 3c 20 43 4f 55 4e 54 | 3b 20 2b 2b 69 29 0a 09 | < COUNT|; ++i)..|
|00004e50| 7b 0a 09 09 6a 20 3d 20 | 72 61 6e 64 6f 6d 28 46 |{...j = |random(F|
|00004e60| 49 4c 45 53 49 5a 45 29 | 3b 0a 09 09 69 66 20 28 |ILESIZE)|;...if (|
|00004e70| 6a 20 3c 20 30 4c 29 0a | 09 09 09 6a 20 3d 20 2d |j < 0L).|...j = -|
|00004e80| 6a 3b 0a 09 09 69 66 20 | 28 46 49 4c 45 53 49 5a |j;...if |(FILESIZ|
|00004e90| 45 20 2d 20 6a 20 3c 20 | 4f 44 44 4e 55 4d 29 0a |E - j < |ODDNUM).|
|00004ea0| 09 09 09 63 6f 6e 74 69 | 6e 75 65 3b 0a 09 09 69 |...conti|nue;...i|
|00004eb0| 66 20 28 28 70 6f 73 20 | 3d 20 6c 73 65 65 6b 28 |f ((pos |= lseek(|
|00004ec0| 66 64 2c 20 6a 2c 20 42 | 45 47 29 29 20 3d 3d 20 |fd, j, B|EG)) == |
|00004ed0| 2d 31 4c 29 0a 09 09 09 | 61 62 6f 72 74 28 22 45 |-1L)....|abort("E|
|00004ee0| 72 72 6f 72 20 73 65 65 | 6b 69 6e 67 20 74 6f 20 |rror see|king to |
|00004ef0| 72 61 6e 64 6f 6d 20 6f | 66 66 73 65 74 5c 6e 22 |random o|ffset\n"|
|00004f00| 29 3b 0a 09 09 69 66 20 | 28 72 65 61 64 28 66 64 |);...if |(read(fd|
|00004f10| 2c 20 62 75 66 66 65 72 | 2c 20 4f 44 44 4e 55 4d |, buffer|, ODDNUM|
|00004f20| 29 20 3d 3d 20 52 45 41 | 44 45 52 52 29 0a 09 09 |) == REA|DERR)...|
|00004f30| 09 61 62 6f 72 74 28 22 | 45 72 72 6f 72 20 72 65 |.abort("|Error re|
|00004f40| 61 64 69 6e 67 20 61 74 | 20 72 61 6e 64 6f 6d 20 |ading at| random |
|00004f50| 6f 66 66 73 65 74 5c 6e | 22 29 3b 0a 09 09 6a 20 |offset\n|");...j |
|00004f60| 3d 20 72 61 6e 64 6f 6d | 28 46 49 4c 45 53 49 5a |= random|(FILESIZ|
|00004f70| 45 29 3b 0a 09 09 69 66 | 20 28 6a 20 3c 20 30 4c |E);...if| (j < 0L|
|00004f80| 29 0a 09 09 09 6a 20 3d | 20 2d 6a 3b 0a 09 09 69 |)....j =| -j;...i|
|00004f90| 66 20 28 46 49 4c 45 53 | 49 5a 45 20 2d 20 6a 20 |f (FILES|IZE - j |
|00004fa0| 3c 20 4f 44 44 4e 55 4d | 29 0a 09 09 09 63 6f 6e |< ODDNUM|)....con|
|00004fb0| 74 69 6e 75 65 3b 0a 09 | 09 69 66 20 28 28 70 6f |tinue;..|.if ((po|
|00004fc0| 73 20 3d 20 6c 73 65 65 | 6b 28 66 64 2c 20 6a 2c |s = lsee|k(fd, j,|
|00004fd0| 20 42 45 47 29 29 20 3d | 3d 20 2d 31 4c 29 0a 09 | BEG)) =|= -1L)..|
|00004fe0| 09 09 61 62 6f 72 74 28 | 22 45 72 72 6f 72 20 73 |..abort(|"Error s|
|00004ff0| 65 65 6b 69 6e 67 20 74 | 6f 20 72 61 6e 64 6f 6d |eeking t|o random|
|00005000| 20 6f 66 66 73 65 74 5c | 6e 22 29 3b 0a 09 09 69 | offset\|n");...i|
|00005010| 66 20 28 77 72 69 74 65 | 28 66 64 2c 20 62 75 66 |f (write|(fd, buf|
|00005020| 66 65 72 2c 20 4f 44 44 | 4e 55 4d 29 20 3d 3d 20 |fer, ODD|NUM) == |
|00005030| 52 45 41 44 45 52 52 29 | 0a 09 09 09 61 62 6f 72 |READERR)|....abor|
|00005040| 74 28 22 45 72 72 6f 72 | 20 77 72 69 74 69 6e 67 |t("Error| writing|
|00005050| 20 61 74 20 72 61 6e 64 | 6f 6d 20 6f 66 66 73 65 | at rand|om offse|
|00005060| 74 5c 6e 22 29 3b 0a 09 | 7d 0a 09 69 66 20 28 63 |t\n");..|}..if (c|
|00005070| 6c 6f 73 65 28 66 64 29 | 20 21 3d 20 4f 4b 43 4c |lose(fd)| != OKCL|
|00005080| 4f 53 45 29 0a 09 09 61 | 62 6f 72 74 28 22 45 72 |OSE)...a|bort("Er|
|00005090| 72 6f 72 20 63 6c 6f 73 | 69 6e 67 20 64 61 74 61 |ror clos|ing data|
|000050a0| 20 66 69 6c 65 5c 6e 22 | 29 3b 0a 09 65 6c 73 65 | file\n"|);..else|
|000050b0| 0a 09 09 70 72 69 6e 74 | 66 28 22 4e 6f 72 6d 61 |...print|f("Norma|
|000050c0| 6c 20 74 65 72 6d 69 6e | 61 74 69 6f 6e 20 66 72 |l termin|ation fr|
|000050d0| 6f 6d 20 72 61 6e 64 6f | 6d 20 72 65 61 64 69 6e |om rando|m readin|
|000050e0| 67 20 61 6e 64 20 77 72 | 69 74 69 6e 67 5c 6e 22 |g and wr|iting\n"|
|000050f0| 29 3b 0a 09 65 78 69 74 | 28 30 29 3b 0a 7d 0a 0a |);..exit|(0);.}..|
|00005100| 6c 6f 6e 67 09 72 61 6e | 64 6f 6d 28 73 69 7a 65 |long.ran|dom(size|
|00005110| 29 0a 6c 6f 6e 67 09 73 | 69 7a 65 3b 0a 7b 0a 09 |).long.s|ize;.{..|
|00005120| 73 65 65 64 20 3d 20 73 | 65 65 64 20 2a 20 41 20 |seed = s|eed * A |
|00005130| 2b 20 43 3b 0a 09 72 65 | 74 75 72 6e 20 28 73 65 |+ C;..re|turn (se|
|00005140| 65 64 20 25 20 73 69 7a | 65 29 3b 0a 7d 0a 61 62 |ed % siz|e);.}.ab|
|00005150| 6f 72 74 28 6d 65 73 73 | 61 67 65 29 0a 63 68 61 |ort(mess|age).cha|
|00005160| 72 09 2a 6d 65 73 73 61 | 67 65 3b 0a 7b 0a 09 70 |r.*messa|ge;.{..p|
|00005170| 72 69 6e 74 66 28 6d 65 | 73 73 61 67 65 29 3b 0a |rintf(me|ssage);.|
|00005180| 09 65 78 69 74 28 45 52 | 52 4f 52 29 3b 0a 7d 0a |.exit(ER|ROR);.}.|
|00005190| 6d 70 69 6c 65 73 2c 0a | 09 20 20 20 61 6e 64 20 |mpiles,.|. and |
|000051a0| 70 6c 6f 74 20 74 68 65 | 20 72 65 73 75 6c 74 73 |plot the| results|
|000051b0| 20 61 67 61 69 6e 73 74 | 20 74 68 65 20 6e 75 6d | against| the num|
|000051c0| 62 65 72 20 6f 66 20 73 | 69 6d 75 6c 61 74 65 64 |ber of s|imulated|
|000051d0| 20 75 73 65 72 73 2e 0a | 09 34 29 20 49 66 20 61 | users..|.4) If a|
|000051e0| 70 70 72 6f 70 72 69 61 | 74 65 20 66 6f 72 20 74 |ppropria|te for t|
|000051f0| 68 65 20 69 6e 74 65 6e | 64 65 64 20 75 73 65 2c |he inten|ded use,|
|00005200| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 6d 75 6c 74 69 |benchmar|ks/multi|
|00005210| 2e 73 68 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.sh.....|........|
|00005220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00005270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00005280| 20 20 20 20 20 35 36 20 | 20 34 34 30 32 30 34 34 | 56 | 4402044|
|00005290| 33 37 31 20 20 20 37 36 | 34 33 00 20 00 00 00 00 |371 76|43. ....|
|000052a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000052f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000053f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005400| 66 6f 72 20 69 0a 64 6f | 0a 09 65 63 68 6f 20 24 |for i.do|..echo $|
|00005410| 69 0a 09 2f 62 69 6e 2f | 73 68 20 74 73 74 2e 73 |i../bin/|sh tst.s|
|00005420| 68 20 26 0a 64 6f 6e 65 | 0a 77 61 69 74 0a 00 00 |h &.done|.wait...|
|00005430| 14 00 0a 00 64 72 79 2e | 52 45 41 44 4d 45 00 00 |....dry.|README..|
|00005440| 05 18 00 00 10 00 07 00 | 64 72 65 61 64 2e 63 00 |........|dread.c.|
|00005450| 06 18 00 00 10 00 07 00 | 66 63 61 6c 6c 2e 63 00 |........|fcall.c.|
|00005460| 07 18 00 00 10 00 07 00 | 66 6c 6f 61 74 2e 63 00 |........|float.c.|
|00005470| 08 18 00 00 14 00 08 00 | 69 6f 63 61 6c 6c 2e 63 |........|iocall.c|
|00005480| 00 00 00 00 09 18 00 00 | 10 00 06 00 6c 6f 6f 70 |........|....loop|
|00005490| 2e 63 00 00 0a 18 00 00 | 10 00 07 00 70 69 70 65 |.c......|....pipe|
|000054a0| 73 2e 63 00 0b 18 00 00 | 10 00 07 00 73 69 65 76 |s.c.....|....siev|
|000054b0| 65 2e 63 00 0c 18 00 00 | 10 00 06 00 74 73 74 2e |e.c.....|....tst.|
|000054c0| 73 68 00 00 0d 18 00 00 | 14 00 08 00 64 77 72 69 |sh......|....dwri|
|000054d0| 74 65 2e 63 00 00 00 00 | 0e 18 00 00 10 00 06 00 |te.c....|........|
|000054e0| 66 69 62 6f 2e 63 00 00 | 0f 18 00 00 14 00 08 00 |fibo.c..|........|
|000054f0| 69 6f 66 69 6c 65 2e 63 | 00 00 00 00 10 18 00 00 |iofile.c|........|
|00005500| 14 00 08 00 6d 75 6c 74 | 69 2e 73 68 00 00 00 00 |....mult|i.sh....|
|00005510| 11 18 00 00 10 00 07 00 | 73 63 61 6c 6c 2e 63 00 |........|scall.c.|
|00005520| 12 18 00 00 14 00 0a 00 | 62 79 74 65 73 6f 72 74 |........|bytesort|
|00005530| 2e 63 00 00 13 18 00 00 | 10 00 05 00 64 72 79 2e |.c......|....dry.|
|00005540| 63 00 00 00 14 18 00 00 | 18 00 0d 00 64 72 79 72 |c.......|....dryr|
|00005550| 65 73 75 6c 74 73 2e 73 | 68 00 00 00 15 18 00 00 |esults.s|h.......|
|00005560| a4 00 07 00 67 65 6e 5f | 72 70 74 00 00 00 00 00 |....gen_|rpt.....|
|00005570| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005580| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005590| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000055f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005600| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 73 63 61 6c 6c |benchmar|ks/scall|
|00005610| 2e 63 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.c......|........|
|00005620| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005630| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005640| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005650| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005660| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00005670| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00005680| 20 20 20 20 31 34 34 20 | 20 34 34 30 32 30 34 34 | 144 | 4402044|
|00005690| 33 37 32 20 20 20 37 34 | 33 36 00 20 00 00 00 00 |372 74|36. ....|
|000056a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000056f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005700| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005710| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005720| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005730| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005740| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005750| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005770| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005780| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005790| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000057f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005800| 23 64 65 66 69 6e 65 20 | 54 49 4d 45 53 20 32 35 |#define |TIMES 25|
|00005810| 30 30 30 0a 0a 6d 61 69 | 6e 28 29 0a 7b 0a 09 72 |000..mai|n().{..r|
|00005820| 65 67 69 73 74 65 72 20 | 69 6e 74 20 69 3b 0a 09 |egister |int i;..|
|00005830| 66 6f 72 20 28 69 20 3d | 20 30 3b 20 69 20 3c 20 |for (i =| 0; i < |
|00005840| 54 49 4d 45 53 3b 20 2b | 2b 69 29 0a 09 09 67 65 |TIMES; +|+i)...ge|
|00005850| 74 70 69 64 28 29 3b 0a | 09 65 78 69 74 28 30 29 |tpid();.|.exit(0)|
|00005860| 3b 0a 7d 0a 10 00 07 00 | 66 6c 6f 61 74 2e 63 00 |;.}.....|float.c.|
|00005870| 08 18 00 00 14 00 08 00 | 69 6f 63 61 6c 6c 2e 63 |........|iocall.c|
|00005880| 00 00 00 00 09 18 00 00 | 10 00 06 00 6c 6f 6f 70 |........|....loop|
|00005890| 2e 63 00 00 0a 18 00 00 | 10 00 07 00 70 69 70 65 |.c......|....pipe|
|000058a0| 73 2e 63 00 0b 18 00 00 | 10 00 07 00 73 69 65 76 |s.c.....|....siev|
|000058b0| 65 2e 63 00 0c 18 00 00 | 10 00 06 00 74 73 74 2e |e.c.....|....tst.|
|000058c0| 73 68 00 00 0d 18 00 00 | 14 00 08 00 64 77 72 69 |sh......|....dwri|
|000058d0| 74 65 2e 63 00 00 00 00 | 0e 18 00 00 10 00 06 00 |te.c....|........|
|000058e0| 66 69 62 6f 2e 63 00 00 | 0f 18 00 00 14 00 08 00 |fibo.c..|........|
|000058f0| 69 6f 66 69 6c 65 2e 63 | 00 00 00 00 10 18 00 00 |iofile.c|........|
|00005900| 14 00 08 00 6d 75 6c 74 | 69 2e 73 68 00 00 00 00 |....mult|i.sh....|
|00005910| 11 18 00 00 10 00 07 00 | 73 63 61 6c 6c 2e 63 00 |........|scall.c.|
|00005920| 12 18 00 00 14 00 0a 00 | 62 79 74 65 73 6f 72 74 |........|bytesort|
|00005930| 2e 63 00 00 13 18 00 00 | 10 00 05 00 64 72 79 2e |.c......|....dry.|
|00005940| 63 00 00 00 14 18 00 00 | 18 00 0d 00 64 72 79 72 |c.......|....dryr|
|00005950| 65 73 75 6c 74 73 2e 73 | 68 00 00 00 15 18 00 00 |esults.s|h.......|
|00005960| a4 00 07 00 67 65 6e 5f | 72 70 74 00 00 00 00 00 |....gen_|rpt.....|
|00005970| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005980| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005990| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000059f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a00| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 62 79 74 65 73 |benchmar|ks/bytes|
|00005a10| 6f 72 74 2e 63 00 00 00 | 00 00 00 00 00 00 00 00 |ort.c...|........|
|00005a20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005a60| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00005a70| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00005a80| 20 20 20 32 30 36 33 20 | 20 34 34 30 32 30 34 34 | 2063 | 4402044|
|00005a90| 33 37 33 20 20 31 30 32 | 33 36 00 20 00 00 00 00 |373 102|36. ....|
|00005aa0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ab0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ac0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ad0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b00| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b30| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b80| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005b90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005ba0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bb0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bc0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bd0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005be0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005bf0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00005c00| 23 64 65 66 69 6e 65 09 | 52 45 47 09 72 65 67 69 |#define.|REG.regi|
|00005c10| 73 74 65 72 0a 23 64 65 | 66 69 6e 65 20 4d 41 58 |ster.#de|fine MAX|
|00005c20| 4e 55 4d 09 31 30 30 30 | 0a 23 64 65 66 69 6e 65 |NUM.1000|.#define|
|00005c30| 09 43 4f 55 4e 54 09 31 | 30 0a 23 64 65 66 69 6e |.COUNT.1|0.#defin|
|00005c40| 65 09 4d 4f 44 55 4c 55 | 53 09 28 28 6c 6f 6e 67 |e.MODULU|S.((long|
|00005c50| 29 20 30 78 32 30 30 30 | 30 29 0a 0a 23 64 65 66 |) 0x2000|0)..#def|
|00005c60| 69 6e 65 09 43 09 31 33 | 38 34 39 4c 0a 23 64 65 |ine.C.13|849L.#de|
|00005c70| 66 69 6e 65 09 41 09 32 | 35 31 37 33 4c 0a 0a 6c |fine.A.2|5173L..l|
|00005c80| 6f 6e 67 09 73 65 65 64 | 20 3d 20 37 4c 3b 0a 0a |ong.seed| = 7L;..|
|00005c90| 6c 6f 6e 67 09 72 61 6e | 64 6f 6d 28 29 3b 0a 0a |long.ran|dom();..|
|00005ca0| 6c 6f 6e 67 09 62 75 66 | 66 65 72 5b 4d 41 58 4e |long.buf|fer[MAXN|
|00005cb0| 55 4d 5d 20 3d 20 7b 30 | 7d 3b 0a 0a 6d 61 69 6e |UM] = {0|};..main|
|00005cc0| 28 29 0a 7b 0a 09 52 45 | 47 20 69 6e 74 09 09 69 |().{..RE|G int..i|
|00005cd0| 2c 20 6a 3b 0a 09 6c 6f | 6e 67 09 74 65 6d 70 3b |, j;..lo|ng.temp;|
|00005ce0| 0a 0a 09 70 72 69 6e 74 | 66 28 22 46 69 6c 6c 69 |...print|f("Filli|
|00005cf0| 6e 67 20 61 72 72 61 79 | 20 61 6e 64 20 73 6f 72 |ng array| and sor|
|00005d00| 74 69 6e 67 20 25 64 20 | 74 69 6d 65 73 5c 6e 22 |ting %d |times\n"|
|00005d10| 2c 20 43 4f 55 4e 54 29 | 3b 0a 09 66 6f 72 20 28 |, COUNT)|;..for (|
|00005d20| 69 20 3d 20 30 3b 20 69 | 20 3c 20 43 4f 55 4e 54 |i = 0; i| < COUNT|
|00005d30| 3b 20 2b 2b 69 29 0a 09 | 7b 0a 09 09 66 6f 72 20 |; ++i)..|{...for |
|00005d40| 28 6a 20 3d 20 30 3b 20 | 6a 20 3c 20 4d 41 58 4e |(j = 0; |j < MAXN|
|00005d50| 55 4d 3b 20 2b 2b 6a 29 | 0a 09 09 7b 0a 09 09 09 |UM; ++j)|...{....|
|00005d60| 74 65 6d 70 20 3d 20 72 | 61 6e 64 6f 6d 28 4d 4f |temp = r|andom(MO|
|00005d70| 44 55 4c 55 53 29 3b 0a | 09 09 09 69 66 20 28 74 |DULUS);.|...if (t|
|00005d80| 65 6d 70 20 3c 20 30 4c | 29 0a 09 09 09 09 74 65 |emp < 0L|).....te|
|00005d90| 6d 70 20 3d 20 2d 74 65 | 6d 70 3b 0a 09 09 09 62 |mp = -te|mp;....b|
|00005da0| 75 66 66 65 72 5b 6a 5d | 20 3d 20 74 65 6d 70 3b |uffer[j]| = temp;|
|00005db0| 0a 09 09 7d 0a 09 09 70 | 72 69 6e 74 66 28 22 42 |...}...p|rintf("B|
|00005dc0| 75 66 66 65 72 20 66 75 | 6c 6c 2c 20 69 74 65 72 |uffer fu|ll, iter|
|00005dd0| 61 74 69 6f 6e 20 25 64 | 5c 6e 22 2c 20 69 29 3b |ation %d|\n", i);|
|00005de0| 0a 09 09 71 75 69 63 6b | 28 30 2c 20 4d 41 58 4e |...quick|(0, MAXN|
|00005df0| 55 4d 2c 20 62 75 66 66 | 65 72 29 3b 0a 09 7d 0a |UM, buff|er);..}.|
|00005e00| 09 70 72 69 6e 74 66 28 | 22 44 6f 6e 65 5c 6e 22 |.printf(|"Done\n"|
|00005e10| 29 3b 0a 09 65 78 69 74 | 28 30 29 3b 0a 7d 0a 0a |);..exit|(0);.}..|
|00005e20| 71 75 69 63 6b 28 6c 6f | 2c 20 68 69 2c 20 62 61 |quick(lo|, hi, ba|
|00005e30| 73 65 29 0a 69 6e 74 09 | 6c 6f 2c 20 68 69 3b 0a |se).int.|lo, hi;.|
|00005e40| 6c 6f 6e 67 09 62 61 73 | 65 5b 5d 3b 0a 7b 0a 09 |long.bas|e[];.{..|
|00005e50| 52 45 47 20 69 6e 74 09 | 09 69 2c 20 6a 3b 0a 09 |REG int.|.i, j;..|
|00005e60| 6c 6f 6e 67 09 09 70 69 | 76 6f 74 2c 20 74 65 6d |long..pi|vot, tem|
|00005e70| 70 3b 0a 0a 09 69 66 20 | 28 6c 6f 20 3c 20 68 69 |p;...if |(lo < hi|
|00005e80| 29 0a 09 7b 0a 09 09 66 | 6f 72 20 28 69 20 3d 20 |)..{...f|or (i = |
|00005e90| 6c 6f 2c 20 6a 20 3d 20 | 68 69 2c 20 70 69 76 6f |lo, j = |hi, pivo|
|00005ea0| 74 20 3d 20 62 61 73 65 | 5b 68 69 5d 3b 20 69 20 |t = base|[hi]; i |
|00005eb0| 3c 20 6a 3b 20 29 0a 09 | 09 7b 0a 09 09 09 77 68 |< j; )..|.{....wh|
|00005ec0| 69 6c 65 20 28 69 20 3c | 20 6a 20 26 26 20 62 61 |ile (i <| j && ba|
|00005ed0| 73 65 5b 69 5d 20 3c 20 | 70 69 76 6f 74 29 0a 09 |se[i] < |pivot)..|
|00005ee0| 09 09 09 2b 2b 69 3b 0a | 09 09 09 77 68 69 6c 65 |...++i;.|...while|
|00005ef0| 20 28 6a 20 3e 20 69 20 | 26 26 20 62 61 73 65 5b | (j > i |&& base[|
|00005f00| 6a 5d 20 3e 20 70 69 76 | 6f 74 29 0a 09 09 09 09 |j] > piv|ot).....|
|00005f10| 2d 2d 6a 3b 0a 09 09 09 | 69 66 20 28 69 20 3c 20 |--j;....|if (i < |
|00005f20| 6a 29 0a 09 09 09 7b 0a | 09 09 09 09 74 65 6d 70 |j)....{.|....temp|
|00005f30| 20 3d 20 62 61 73 65 5b | 69 5d 3b 0a 09 09 09 09 | = base[|i];.....|
|00005f40| 62 61 73 65 5b 69 5d 20 | 3d 20 62 61 73 65 5b 6a |base[i] |= base[j|
|00005f50| 5d 3b 0a 09 09 09 09 62 | 61 73 65 5b 6a 5d 20 3d |];.....b|ase[j] =|
|00005f60| 20 74 65 6d 70 3b 0a 09 | 09 09 7d 0a 09 09 7d 0a | temp;..|..}...}.|
|00005f70| 09 09 74 65 6d 70 20 3d | 20 62 61 73 65 5b 69 5d |..temp =| base[i]|
|00005f80| 3b 0a 09 09 62 61 73 65 | 5b 69 5d 20 3d 20 62 61 |;...base|[i] = ba|
|00005f90| 73 65 5b 68 69 5d 3b 0a | 09 09 62 61 73 65 5b 68 |se[hi];.|..base[h|
|00005fa0| 69 5d 20 3d 20 74 65 6d | 70 3b 0a 09 09 71 75 69 |i] = tem|p;...qui|
|00005fb0| 63 6b 28 6c 6f 2c 20 69 | 20 2d 20 31 2c 20 62 61 |ck(lo, i| - 1, ba|
|00005fc0| 73 65 29 3b 0a 09 09 71 | 75 69 63 6b 28 69 20 2b |se);...q|uick(i +|
|00005fd0| 20 31 2c 20 68 69 2c 20 | 62 61 73 65 29 3b 0a 09 | 1, hi, |base);..|
|00005fe0| 7d 0a 7d 0a 0a 6c 6f 6e | 67 20 72 61 6e 64 6f 6d |}.}..lon|g random|
|00005ff0| 28 73 69 7a 65 29 0a 6c | 6f 6e 67 09 73 69 7a 65 |(size).l|ong.size|
|00006000| 3b 0a 7b 0a 09 73 65 65 | 64 20 3d 20 73 65 65 64 |;.{..see|d = seed|
|00006010| 20 2a 20 41 20 2b 20 43 | 3b 0a 09 72 65 74 75 72 | * A + C|;..retur|
|00006020| 6e 20 28 73 65 65 64 20 | 25 20 73 69 7a 65 29 3b |n (seed |% size);|
|00006030| 0a 7d 0a 55 4e 54 09 31 | 30 0a 23 64 65 66 69 6e |.}.UNT.1|0.#defin|
|00006040| 65 09 4d 4f 44 55 4c 55 | 53 09 28 28 6c 6f 6e 67 |e.MODULU|S.((long|
|00006050| 29 20 30 78 32 30 30 30 | 30 29 0a 0a 23 64 65 66 |) 0x2000|0)..#def|
|00006060| 69 6e 65 09 43 09 31 33 | 38 34 39 4c 0a 23 64 65 |ine.C.13|849L.#de|
|00006070| 66 69 6e 65 09 41 09 32 | 35 31 37 33 4c 0a 0a 6c |fine.A.2|5173L..l|
|00006080| 6f 6e 67 09 73 65 65 64 | 20 3d 20 37 4c 3b 0a 0a |ong.seed| = 7L;..|
|00006090| 6c 6f 6e 67 09 72 61 6e | 64 6f 6d 28 29 3b 0a 0a |long.ran|dom();..|
|000060a0| 6c 6f 6e 67 09 62 75 66 | 66 65 72 5b 4d 41 58 4e |long.buf|fer[MAXN|
|000060b0| 55 4d 5d 20 3d 20 7b 30 | 7d 3b 0a 0a 6d 61 69 6e |UM] = {0|};..main|
|000060c0| 28 29 0a 7b 0a 09 52 45 | 47 20 69 6e 74 09 09 69 |().{..RE|G int..i|
|000060d0| 2c 20 6a 3b 0a 09 6c 6f | 6e 67 09 74 65 6d 70 3b |, j;..lo|ng.temp;|
|000060e0| 0a 0a 09 70 72 69 6e 74 | 66 28 22 46 69 6c 6c 69 |...print|f("Filli|
|000060f0| 6e 67 20 61 72 72 61 79 | 20 61 6e 64 20 73 6f 72 |ng array| and sor|
|00006100| 74 69 6e 67 20 25 64 20 | 74 69 6d 65 73 5c 6e 22 |ting %d |times\n"|
|00006110| 2c 20 43 4f 55 4e 54 29 | 3b 0a 09 66 6f 72 20 28 |, COUNT)|;..for (|
|00006120| 69 20 3d 20 30 3b 20 69 | 20 3c 20 43 4f 55 4e 54 |i = 0; i| < COUNT|
|00006130| 3b 20 2b 2b 69 29 0a 09 | 7b 0a 09 09 66 6f 72 20 |; ++i)..|{...for |
|00006140| 28 6a 20 3d 20 30 3b 20 | 6a 20 3c 20 4d 41 58 4e |(j = 0; |j < MAXN|
|00006150| 55 4d 3b 20 2b 2b 6a 29 | 0a 09 09 7b 0a 09 09 09 |UM; ++j)|...{....|
|00006160| 74 65 6d 70 20 3d 20 72 | 61 6e 64 6f 6d 28 4d 4f |temp = r|andom(MO|
|00006170| 44 55 4c 55 53 29 3b 0a | 09 09 09 69 66 20 28 74 |DULUS);.|...if (t|
|00006180| 65 6d 70 20 3c 20 30 4c | 29 0a 09 09 09 09 74 65 |emp < 0L|).....te|
|00006190| 6d 70 20 3d 20 2d 74 65 | 6d 70 3b 0a 09 09 09 62 |mp = -te|mp;....b|
|000061a0| 75 66 66 65 72 5b 6a 5d | 20 3d 20 74 65 6d 70 3b |uffer[j]| = temp;|
|000061b0| 0a 09 09 7d 0a 09 09 70 | 72 69 6e 74 66 28 22 42 |...}...p|rintf("B|
|000061c0| 75 66 66 65 72 20 66 75 | 6c 6c 2c 20 69 74 65 72 |uffer fu|ll, iter|
|000061d0| 61 74 69 6f 6e 20 25 64 | 5c 6e 22 2c 20 69 29 3b |ation %d|\n", i);|
|000061e0| 0a 09 09 71 75 69 63 6b | 28 30 2c 20 4d 41 58 4e |...quick|(0, MAXN|
|000061f0| 55 4d 2c 20 62 75 66 66 | 65 72 29 3b 0a 09 7d 0a |UM, buff|er);..}.|
|00006200| 62 65 6e 63 68 6d 61 72 | 6b 73 2f 64 72 79 2e 63 |benchmar|ks/dry.c|
|00006210| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006220| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006230| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006240| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006250| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006260| 00 00 00 00 20 20 20 36 | 34 34 20 00 20 20 20 32 |.... 6|44 . 2|
|00006270| 34 33 20 00 20 20 20 20 | 31 32 20 00 20 20 20 20 |43 . |12 . |
|00006280| 20 20 35 30 30 34 33 20 | 20 34 34 30 32 30 34 34 | 50043 | 4402044|
|00006290| 34 30 31 20 20 20 37 31 | 37 32 00 20 00 00 00 00 |401 71|72. ....|
|000062a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000062f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006300| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006310| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006320| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006330| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006340| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006350| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006360| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006370| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006380| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00006390| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000063f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.