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 9 447 22 21 23.65 1.16
bin-true no-host 674 540 2,222 815 811 3.30 1.21
configure.cpython no-host 14,736 14,771 28,033 14,992 14,976 1.90 1.02
configure.ocaml no-host 3,740 3,674 4,563 3,771 3,767 1.22 1.01
configure.tcc no-host 47 41 192 48 48 4.06 1.02
configure.util-linux no-host 13,762 14,611 30,613 14,076 14,008 2.22 1.02
configure.yash no-host 1,817 1,727 2,409 1,792 1,787 1.33 0.99
hello-world no-host 1 1 49 3 3 32.65 1.99

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,529 1,102 23,532 3,204 3,085 9.30 1.27
bin-true no-host 106,422 67,420 752,986 127,163 127,141 7.08 1.19
configure.cpython no-host 2,222,681 2,239,873 6,164,249 2,244,591 2,226,771 2.77 1.01
configure.ocaml no-host 410,148 390,831 643,802 413,247 413,077 1.57 1.01
configure.tcc no-host 6,551 5,464 23,517 6,950 6,910 3.59 1.06
configure.util-linux no-host 2,099,944 2,263,722 5,318,126 1,998,857 1,997,630 2.53 0.95
configure.yash no-host 255,647 245,144 385,644 257,975 257,080 1.51 1.01
hello-world no-host 153 83 3,731 349 342 24.39 2.28

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.3 3.4 22.0 9.0 8.5 5.09 2.09
bin-true no-host 2.9 1.6 17.7 7.9 7.6 6.14 2.73
configure.cpython no-host 27.4 27.1 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.3 19.3 19.3 19.3 19.4 1.00 1.00
configure.util-linux no-host 30.3 30.0 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.2 24.5 24.4 24.4 24.4 1.01 1.01
hello-world no-host 2.9 1.4 17.6 6.2 6.0 6.09 2.14

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 815 1 2 2.6 7.9 154,679 13,063 2,815 9,741 78,304 66,634 3,008 3 50,000 0
configure.cpython no-host 14,992 1 60 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,076 3 59 21.3 30.1 2,703,397 42,742 65,829 109,656 1,320,554 1,273,187 27,391 41 131,658 1
configure.ocaml no-host 3,771 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 48 0 0 1.3 19.3 30,520 30,520 0 1,517 14,759 14,244 226 0 50,000 0
configure.yash no-host 1,792 1 2 2.6 24.4 139,688 7,958 6,617 6,333 70,264 63,091 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 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 6.0 3,713 3,713 0 692 1,835 1,186 2 0 50,000 0
bin-true no-host 811 1 2 2.6 7.6 154,678 12,928 2,753 9,742 78,304 66,632 3,008 3 50,000 0
configure.cpython no-host 14,976 1 56 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,008 3 56 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,767 0 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 48 0 0 1.3 19.4 30,520 30,520 0 1,519 14,759 14,242 226 0 50,000 0
configure.yash no-host 1,787 1 2 2.6 24.4 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.5 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 17 3 4.3 bash
15 no-host abuild-print-help 9 8 2 3.4 dash
23 no-host abuild-print-help 447 404 47 22.0 osh-cpython
31 no-host abuild-print-help 22 7 15 9.0 osh-native
39 no-host abuild-print-help 21 18 4 8.5 osh-native-souffle
1 no-host bin-true 674 488 215 2.9 bash
9 no-host bin-true 540 411 140 1.6 dash
17 no-host bin-true 2,222 1,445 1,033 17.7 osh-cpython
25 no-host bin-true 815 609 222 7.9 osh-native
33 no-host bin-true 811 583 238 7.6 osh-native-souffle
2 no-host configure.cpython 14,736 8,976 6,157 27.4 bash
10 no-host configure.cpython 14,771 8,821 6,369 27.1 dash
18 no-host configure.cpython 28,033 16,975 12,858 27.4 osh-cpython
26 no-host configure.cpython 14,992 8,945 6,319 27.4 osh-native
34 no-host configure.cpython 14,976 8,846 6,320 27.4 osh-native-souffle
4 no-host configure.ocaml 3,740 1,547 1,235 20.6 bash
12 no-host configure.ocaml 3,674 1,586 1,106 20.6 dash
20 no-host configure.ocaml 4,563 2,229 1,543 20.6 osh-cpython
28 no-host configure.ocaml 3,771 1,583 1,228 20.6 osh-native
36 no-host configure.ocaml 3,767 1,613 1,192 20.4 osh-native-souffle
5 no-host configure.tcc 47 27 21 19.3 bash
13 no-host configure.tcc 41 27 14 19.3 dash
21 no-host configure.tcc 192 147 48 19.3 osh-cpython
29 no-host configure.tcc 48 29 20 19.3 osh-native
37 no-host configure.tcc 48 28 20 19.4 osh-native-souffle
3 no-host configure.util-linux 13,762 8,798 5,434 30.3 bash
11 no-host configure.util-linux 14,611 9,143 5,966 30.0 dash
19 no-host configure.util-linux 30,613 20,656 11,031 30.3 osh-cpython
27 no-host configure.util-linux 14,076 8,703 5,564 30.1 osh-native
35 no-host configure.util-linux 14,008 8,567 5,646 30.1 osh-native-souffle
6 no-host configure.yash 1,817 1,062 752 24.2 bash
14 no-host configure.yash 1,727 1,006 724 24.5 dash
22 no-host configure.yash 2,409 1,462 989 24.4 osh-cpython
30 no-host configure.yash 1,792 962 834 24.4 osh-native
38 no-host configure.yash 1,787 1,057 734 24.4 osh-native-souffle
0 no-host hello-world 1 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 26 22 17.6 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native
32 no-host hello-world 3 3 0 6.0 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,529 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,102 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,532 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,204 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,085 0 0 0 16 0 39 3 osh-native-souffle
1 no-host bin-true 106,422 0 0 0 8 0 1,989 206 bash
9 no-host bin-true 67,420 0 0 0 8 0 1,981 47 dash
17 no-host bin-true 752,986 0 0 0 8 0 1,992 88 osh-cpython
25 no-host bin-true 127,163 0 0 0 16 0 1,994 129 osh-native
33 no-host bin-true 127,141 0 0 0 16 0 1,985 53 osh-native-souffle
2 no-host configure.cpython 2,222,681 0 0 0 32,928 0 14,526 1,038 bash
10 no-host configure.cpython 2,239,873 0 0 0 32,992 0 14,540 1,083 dash
18 no-host configure.cpython 6,164,249 0 0 0 27,512 0 13,241 1,240 osh-cpython
26 no-host configure.cpython 2,244,591 1 0 0 27,520 0 13,219 971 osh-native
34 no-host configure.cpython 2,226,771 0 0 0 27,520 0 13,209 1,086 osh-native-souffle
4 no-host configure.ocaml 410,148 0 0 0 5,120 0 1,950 150 bash
12 no-host configure.ocaml 390,831 0 0 0 5,112 0 1,884 161 dash
20 no-host configure.ocaml 643,802 0 0 0 5,112 0 1,864 177 osh-cpython
28 no-host configure.ocaml 413,247 0 0 0 5,120 0 1,931 161 osh-native
36 no-host configure.ocaml 413,077 0 0 0 5,120 0 1,929 154 osh-native-souffle
5 no-host configure.tcc 6,551 0 0 0 104 0 49 11 bash
13 no-host configure.tcc 5,464 0 0 0 96 0 47 4 dash
21 no-host configure.tcc 23,517 0 0 0 96 0 53 5 osh-cpython
29 no-host configure.tcc 6,950 0 0 0 104 0 46 1 osh-native
37 no-host configure.tcc 6,910 0 0 0 104 0 47 2 osh-native-souffle
3 no-host configure.util-linux 2,099,944 0 0 0 42,400 0 18,533 1,171 bash
11 no-host configure.util-linux 2,263,722 0 0 0 42,584 0 17,465 1,000 dash
19 no-host configure.util-linux 5,318,126 6 0 0 39,112 0 17,038 1,153 osh-cpython
27 no-host configure.util-linux 1,998,857 0 0 0 39,128 0 16,951 1,114 osh-native
35 no-host configure.util-linux 1,997,630 1 0 0 39,136 0 16,972 1,066 osh-native-souffle
6 no-host configure.yash 255,647 0 0 0 4,120 0 881 127 bash
14 no-host configure.yash 245,144 0 0 0 3,720 0 871 78 dash
22 no-host configure.yash 385,644 0 0 0 3,728 0 853 100 osh-cpython
30 no-host configure.yash 257,975 0 0 0 3,736 0 851 56 osh-native
38 no-host configure.yash 257,080 0 0 0 3,736 0 847 85 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 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 349 0 0 0 16 0 0 1 osh-native
32 no-host hello-world 342 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-b82fa203
dash dash-0ebcf347
osh-cpython osh-538deee0
osh-native osh-72774ef0
osh-native-souffle osh-ef8eb916
host label host id
no-host no-host-556df3ee