home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / mach / doc / netmemory / bcopy3.c.Z / bcopy3.c
Encoding:
C/C++ Source or Header  |  1992-09-02  |  700 b   |  42 lines

  1. /* 
  2.  * Mach Operating System
  3.  * Copyright (c) 1989 Carnegie-Mellon University
  4.  * All rights reserved.  The CMU software License Agreement specifies
  5.  * the terms and conditions for use and redistribution.
  6.  */
  7. /*
  8.  * HISTORY
  9.  * $Log$
  10.  */
  11. /*
  12.  *    File:    bcopy.c
  13.  *    Author:    Joseph S. Barrera III
  14.  *
  15.  *    Copyright (C) 1989, Joseph S. Barrera III
  16.  *
  17.  *    Test of byte-copying speed.
  18.  *
  19.  */
  20.  
  21. struct xxx {
  22.     char xxx[102400];
  23. };
  24.  
  25. struct xxx src;
  26. struct xxx dst;
  27.  
  28. /*
  29.  *   Does 1000 copies of 100 KB each.
  30.  *   Divide running time in seconds by 100 to get msec/KB.
  31.  */
  32. main()
  33. {
  34.     register unsigned long *l1;
  35.     register unsigned long *l2;
  36.     register i, j;
  37.  
  38.     for (i = 0; i < 1000; i++) {
  39.     dst = src;
  40.     }
  41. }
  42.