summaryrefslogtreecommitdiff
path: root/libs/simclist-1.5/perftest/README-perftest.txt
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2025-08-09 08:35:03 +0200
committerAldrik Ramaekers <aldrikboy@gmail.com>2025-08-09 08:35:03 +0200
commit432f24319319fe040e142059eb83279c53f90ab8 (patch)
tree5631eb0eb3a46d086070e8398d9080ff681133ac /libs/simclist-1.5/perftest/README-perftest.txt
parent5d34aff5888d3f0c624251f15bedb96c347978d6 (diff)
refactor 2
Diffstat (limited to 'libs/simclist-1.5/perftest/README-perftest.txt')
-rw-r--r--libs/simclist-1.5/perftest/README-perftest.txt34
1 files changed, 34 insertions, 0 deletions
diff --git a/libs/simclist-1.5/perftest/README-perftest.txt b/libs/simclist-1.5/perftest/README-perftest.txt
new file mode 100644
index 0000000..127e51a
--- /dev/null
+++ b/libs/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
+