DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T i

⟦a4b1d268a⟧ TextFile

    Length: 744 (0x2e8)
    Types: TextFile
    Names: »iocall.c«

Derivation

└─⟦db229ac7e⟧ Bits:30007240 EUUGD20: SSBA 1.2 / AFW Benchmarks
    └─⟦this⟧ »EUUGD20/AFUU-ssba1.21/ssba1.21E/utah/iocall.c« 
    └─⟦this⟧ »EUUGD20/AFUU-ssba1.21/ssba1.21F/utah/iocall.c« 

TextFile

/* iocall.c:
 *
 *	Author: 	Jan Stubbs, NCR, ..!sdcsvax!ncr-sd!stubbs
 *	Results:	Send results to the above author.
 *	Version:	improved to eliminate real disk writes
 *
 * This benchmark tests speed of Unix system call interface
 * and speed of cpu doing common Unix io system calls.
 *
 * Under normal circumstances, this benchmark will not actually
 * cause any physical disk activity, but will just cause system
 * buffer activity.
 */

char buf[512];
int fd,count,i,j;

main()
{
	fd = creat("/tmp/testfile",0777);
	close(fd);
	fd = open("/tmp/testfile",2);
	unlink("/tmp/testfile");
	for (i=0;i<=1000;i++) {
		lseek(fd,0L,0);
		count = write(fd,buf,500);
		lseek(fd,0L,0);
		for (j=0;j<=3;j++) 
			count = read(fd,buf,100);
	}
	exit(0);
}