From 853bbb3752a5fa2f58ef456ffb6e3a552e13cb11 Mon Sep 17 00:00:00 2001 From: Aldrik Ramaekers Date: Sun, 3 Aug 2025 19:22:36 +0200 Subject: initial commit --- simclist-1.5/perftest/README-perftest.txt | 34 +++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 simclist-1.5/perftest/README-perftest.txt (limited to 'simclist-1.5/perftest/README-perftest.txt') diff --git a/simclist-1.5/perftest/README-perftest.txt b/simclist-1.5/perftest/README-perftest.txt new file mode 100644 index 0000000..127e51a --- /dev/null +++ b/simclist-1.5/perftest/README-perftest.txt @@ -0,0 +1,34 @@ +SimCList performance test cases + +===== ins.c +insert 10 000 000 (ten million) elements into a list, with element autocopy +disabled. +Compile: + gcc -O2 -I.. -std=c99 -o ins ins.c ../simclist.c +Use: + time ./ins + + +===== ext.c +insert 1 000 000 (one million) elements with element autocopy, then extracts 1 +000 elements at random position (from a Uniform(0, list_size) probability +density function). +Compile: + gcc -O2 -I.. -std=c99 -o ext ext.c ../simclist.c +Use: + time ./ext + + +===== sort.c +insert 1 000 000 elements with autocopy, then sorting. + +Compile: + # for testing the default setup + gcc -O2 -I.. -std=c99 -o sort sort.c ../simclist.c + # for testing with threading enabled + gcc -DSIMCLIST_WITH_THREADS -O2 -I.. -std=c99 -o sort sort.c ../simclist.c +Use: + # generate data to insert into the list + # e.g. for ((i = 0; i<1000000; i++)); do echo $RANDOM; done >randdata.txt + time ./sort < randdata.txt + -- cgit v1.2.3-70-g09d2