OSH Runtime Performance

Source code: benchmarks/osh-runtime.sh

Raw files

Elapsed Time by Shell (milliseconds)

Some benchmarks call many external tools, while some exercise the shell interpreter itself.

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 19 10 460 23 21 23.76 1.19
bin-true no-host 677 538 2,241 823 839 3.31 1.22
configure.cpython no-host 15,350 15,218 28,847 15,734 15,649 1.88 1.03
configure.ocaml no-host 3,970 3,817 4,765 3,948 3,863 1.20 0.99
configure.tcc no-host 48 42 199 51 49 4.11 1.05
configure.util-linux no-host 14,233 15,049 31,558 14,880 14,501 2.22 1.05
configure.yash no-host 1,865 1,792 2,526 1,909 1,884 1.35 1.02
hello-world no-host 1 1 50 3 3 34.73 2.19

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,531 1,114 23,558 3,186 3,108 9.31 1.26
bin-true no-host 107,333 65,472 753,925 125,154 126,181 7.02 1.17
configure.cpython no-host 2,225,143 2,239,018 6,158,812 2,233,786 2,224,607 2.77 1.00
configure.ocaml no-host 410,369 391,236 644,249 412,818 413,755 1.57 1.01
configure.tcc no-host 6,559 5,485 23,508 7,018 6,939 3.58 1.07
configure.util-linux no-host 2,104,701 2,258,264 5,328,367 1,993,700 1,999,565 2.53 0.95
configure.yash no-host 255,911 244,046 385,819 258,493 257,592 1.51 1.01
hello-world no-host 151 80 3,731 348 346 24.71 2.30

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.4 21.8 8.9 8.7 4.88 2.00
bin-true no-host 2.9 1.6 17.6 8.1 7.7 6.09 2.82
configure.cpython no-host 27.4 27.3 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.4 1.00 1.00
configure.tcc no-host 19.4 19.3 19.4 19.4 19.1 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.2 24.2 24.4 24.2 24.2 1.01 1.00
hello-world no-host 2.8 1.3 17.6 6.2 5.9 6.38 2.24

GC Stats

workload host name elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num live max survived num in heap num in pool 1 num in pool 2 num gc points num gc done gc threshold num growths
hello-world no-host 3 0 0 0.2 6.2 3,714 3,714 0 691 1,835 1,188 2 0 50,000 0
bin-true no-host 823 1 2 2.6 8.1 154,679 13,063 2,815 9,741 78,304 66,634 3,008 3 50,000 0
configure.cpython no-host 15,734 3 67 14.9 27.4 1,772,661 49,105 28,525 86,394 908,056 778,211 22,694 60 50,000 0
configure.util-linux no-host 14,880 3 66 21.3 30.3 2,703,397 42,742 65,809 109,656 1,320,554 1,273,187 27,391 41 131,618 1
configure.ocaml no-host 3,948 1 2 2.6 20.6 150,031 10,990 5,160 7,526 71,588 70,917 1,448 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.4 30,520 30,520 0 1,517 14,759 14,244 226 0 50,000 0
configure.yash no-host 1,909 1 2 2.6 24.2 139,688 7,958 6,617 6,333 70,264 63,091 1,803 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 8.9 116,263 64,468 42,678 4,568 54,504 57,191 270 3 85,356 1
hello-world no-host 3 0 0 0.2 5.9 3,713 3,713 0 692 1,835 1,186 2 0 50,000 0
bin-true no-host 839 1 2 2.6 7.7 154,678 12,928 2,753 9,742 78,304 66,632 3,008 3 50,000 0
configure.cpython no-host 15,649 1 66 15.0 27.4 1,772,660 44,557 28,463 86,395 908,056 778,209 22,694 60 50,000 0
configure.util-linux no-host 14,501 3 63 21.3 30.1 2,703,397 44,643 65,766 109,658 1,320,554 1,273,185 27,391 41 131,532 1
configure.ocaml no-host 3,863 1 2 2.6 20.4 150,031 10,927 5,097 7,528 71,588 70,915 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.1 30,520 30,520 0 1,519 14,759 14,242 226 0 50,000 0
configure.yash no-host 1,884 1 2 2.6 24.2 139,688 7,896 6,555 6,335 70,264 63,089 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,262 64,406 42,616 4,569 54,504 57,189 270 3 85,232 1

rusage Details

task id host name workload elapsed ms user ms sys ms max rss MB shell label
7 no-host abuild-print-help 19 11 9 4.5 bash
15 no-host abuild-print-help 10 7 3 3.4 dash
23 no-host abuild-print-help 460 406 57 21.8 osh-cpython
31 no-host abuild-print-help 23 18 6 8.9 osh-native
39 no-host abuild-print-help 21 16 5 8.7 osh-native-souffle
1 no-host bin-true 677 508 200 2.9 bash
9 no-host bin-true 538 421 126 1.6 dash
17 no-host bin-true 2,241 1,456 1,046 17.6 osh-cpython
25 no-host bin-true 823 584 246 8.1 osh-native
33 no-host bin-true 839 602 250 7.7 osh-native-souffle
2 no-host configure.cpython 15,350 9,187 6,571 27.4 bash
10 no-host configure.cpython 15,218 9,110 6,530 27.3 dash
18 no-host configure.cpython 28,847 17,601 13,118 27.4 osh-cpython
26 no-host configure.cpython 15,734 9,310 6,695 27.4 osh-native
34 no-host configure.cpython 15,649 9,128 6,707 27.4 osh-native-souffle
4 no-host configure.ocaml 3,970 1,670 1,330 20.6 bash
12 no-host configure.ocaml 3,817 1,606 1,232 20.6 dash
20 no-host configure.ocaml 4,765 2,229 1,752 20.6 osh-cpython
28 no-host configure.ocaml 3,948 1,681 1,305 20.6 osh-native
36 no-host configure.ocaml 3,863 1,672 1,228 20.4 osh-native-souffle
5 no-host configure.tcc 48 16 33 19.4 bash
13 no-host configure.tcc 42 25 17 19.3 dash
21 no-host configure.tcc 199 148 55 19.4 osh-cpython
29 no-host configure.tcc 51 29 22 19.4 osh-native
37 no-host configure.tcc 49 30 20 19.1 osh-native-souffle
3 no-host configure.util-linux 14,233 8,908 5,784 30.1 bash
11 no-host configure.util-linux 15,049 9,245 6,295 30.1 dash
19 no-host configure.util-linux 31,558 21,013 11,639 30.1 osh-cpython
27 no-host configure.util-linux 14,880 9,193 5,888 30.3 osh-native
35 no-host configure.util-linux 14,501 8,681 6,018 30.1 osh-native-souffle
6 no-host configure.yash 1,865 1,093 776 24.2 bash
14 no-host configure.yash 1,792 1,034 762 24.2 dash
22 no-host configure.yash 2,526 1,611 959 24.4 osh-cpython
30 no-host configure.yash 1,909 1,101 812 24.2 osh-native
38 no-host configure.yash 1,884 1,079 777 24.2 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 50 29 20 17.6 osh-cpython
24 no-host hello-world 3 3 0 6.2 osh-native
32 no-host hello-world 3 3 0 5.9 osh-native-souffle

More Details

task id host name workload minor faults major faults swaps in block out block signals voluntary ctx involuntary ctx shell label
7 no-host abuild-print-help 2,531 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,114 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,558 0 0 0 8 0 45 12 osh-cpython
31 no-host abuild-print-help 3,186 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,108 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 107,333 0 0 0 8 0 1,994 81 bash
9 no-host bin-true 65,472 0 0 0 8 0 1,984 38 dash
17 no-host bin-true 753,925 0 0 0 8 0 1,992 140 osh-cpython
25 no-host bin-true 125,154 0 0 0 16 0 1,990 146 osh-native
33 no-host bin-true 126,181 0 0 0 16 0 1,982 197 osh-native-souffle
2 no-host configure.cpython 2,225,143 0 0 0 32,928 0 14,512 1,143 bash
10 no-host configure.cpython 2,239,018 0 0 0 32,992 0 14,571 1,023 dash
18 no-host configure.cpython 6,158,812 0 0 0 27,512 0 13,247 1,209 osh-cpython
26 no-host configure.cpython 2,233,786 0 0 0 27,520 0 13,191 1,104 osh-native
34 no-host configure.cpython 2,224,607 0 0 0 27,520 0 13,142 1,018 osh-native-souffle
4 no-host configure.ocaml 410,369 0 0 0 5,120 0 1,949 232 bash
12 no-host configure.ocaml 391,236 0 0 0 5,112 0 1,869 141 dash
20 no-host configure.ocaml 644,249 1 0 0 5,112 0 1,861 192 osh-cpython
28 no-host configure.ocaml 412,818 0 0 0 5,120 0 1,930 158 osh-native
36 no-host configure.ocaml 413,755 0 0 0 5,120 0 1,926 167 osh-native-souffle
5 no-host configure.tcc 6,559 0 0 0 104 0 49 0 bash
13 no-host configure.tcc 5,485 0 0 0 96 0 46 3 dash
21 no-host configure.tcc 23,508 0 0 0 96 0 53 11 osh-cpython
29 no-host configure.tcc 7,018 0 0 0 104 0 47 3 osh-native
37 no-host configure.tcc 6,939 0 0 0 104 0 47 5 osh-native-souffle
3 no-host configure.util-linux 2,104,701 2 0 0 42,400 0 18,552 1,068 bash
11 no-host configure.util-linux 2,258,264 7 0 0 42,584 0 17,353 1,247 dash
19 no-host configure.util-linux 5,328,367 14 0 0 39,112 0 16,978 1,352 osh-cpython
27 no-host configure.util-linux 1,993,700 1 0 0 39,128 0 17,020 998 osh-native
35 no-host configure.util-linux 1,999,565 0 0 0 39,136 0 16,970 1,075 osh-native-souffle
6 no-host configure.yash 255,911 0 0 0 4,120 0 871 75 bash
14 no-host configure.yash 244,046 0 0 0 3,720 0 870 83 dash
22 no-host configure.yash 385,819 0 0 0 3,728 0 853 93 osh-cpython
30 no-host configure.yash 258,493 0 0 0 3,736 0 849 76 osh-native
38 no-host configure.yash 257,592 0 0 0 3,736 0 847 87 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 80 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,731 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 346 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-6b97d439
dash dash-0ebcf347
osh-cpython osh-27c6146f
osh-native osh-38bdef8a
osh-native-souffle osh-3109b7db
host label host id
no-host no-host-556df3ee