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 16 9 559 23 22 35.53 1.44
bin-true no-host 622 446 2,463 807 807 3.96 1.30
configure.cpython no-host 14,279 14,367 30,282 15,212 15,480 2.12 1.07
configure.ocaml no-host 3,745 3,716 4,805 3,911 3,837 1.28 1.04
configure.tcc no-host 46 42 228 52 50 4.93 1.12
configure.util-linux no-host 13,005 13,802 33,660 14,271 14,548 2.59 1.10
configure.yash no-host 1,770 1,699 2,524 1,798 1,803 1.43 1.02
hello-world no-host 1 1 63 3 3 50.64 2.34

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,396 1,199 24,686 3,432 3,356 10.30 1.43
bin-true no-host 99,988 49,406 826,758 137,260 134,306 8.27 1.37
configure.cpython no-host 1,619,930 1,640,786 5,973,969 1,809,519 1,777,719 3.69 1.12
configure.ocaml no-host 299,079 281,030 556,181 317,464 316,583 1.86 1.06
configure.tcc no-host 5,243 4,199 23,796 5,945 5,895 4.54 1.13
configure.util-linux no-host 1,535,734 1,700,610 4,975,830 1,713,033 1,705,984 3.24 1.12
configure.yash no-host 173,730 159,535 315,499 179,473 178,908 1.82 1.03
hello-world no-host 152 86 3,898 386 381 25.64 2.54

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.7 3.9 22.5 9.8 9.3 4.77 2.08
bin-true no-host 3.3 1.6 18.2 9.0 8.3 5.55 2.76
configure.cpython no-host 34.8 34.4 34.6 34.5 34.5 1.00 0.99
configure.ocaml no-host 28.7 28.7 28.8 28.7 28.5 1.00 1.00
configure.tcc no-host 26.0 26.3 26.2 26.2 26.1 1.01 1.01
configure.util-linux no-host 39.5 39.6 39.5 39.7 39.6 1.00 1.01
configure.yash no-host 33.5 33.1 33.4 33.3 33.3 1.00 0.99
hello-world no-host 3.1 1.6 18.1 6.9 6.4 5.74 2.21

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.3 6.9 3,826 3,826 0 703 1,880 1,243 2 0 50,000 0
bin-true no-host 807 1 2 2.6 9.0 156,798 15,428 2,915 8,760 77,347 70,691 3,008 3 50,000 0
configure.cpython no-host 15,212 1 70 15.2 34.5 1,782,989 46,101 25,356 91,621 885,111 806,257 25,789 62 50,000 0
configure.util-linux no-host 14,271 3 65 21.4 39.7 2,707,122 126,354 66,586 113,462 1,294,567 1,299,093 32,539 41 133,172 1
configure.ocaml no-host 3,911 1 2 2.7 28.7 149,873 12,476 6,519 7,818 70,839 71,216 1,693 3 50,000 0
configure.tcc no-host 52 0 0 1.3 26.2 30,628 30,628 0 1,581 14,645 14,402 271 0 50,000 0
configure.yash no-host 1,798 1 2 2.6 33.3 140,017 8,080 6,714 6,525 68,347 65,145 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.8 116,368 64,438 42,639 4,561 54,471 57,336 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.4 3,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 807 1 2 2.6 8.3 156,797 15,423 2,910 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 15,480 1 70 15.2 34.5 1,782,988 46,087 25,352 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 14,548 3 64 21.4 39.6 2,707,122 126,347 66,579 113,464 1,294,567 1,299,091 32,539 41 133,158 1
configure.ocaml no-host 3,837 1 2 2.7 28.5 149,873 12,470 6,513 7,820 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.1 30,628 30,628 0 1,583 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,803 1 2 2.6 33.3 140,017 8,069 6,703 6,527 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.3 116,367 64,433 42,634 4,562 54,471 57,334 277 3 85,268 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 16 8 8 4.7 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 559 495 67 22.5 osh-cpython
31 no-host abuild-print-help 23 13 10 9.8 osh-native
39 no-host abuild-print-help 22 10 13 9.3 osh-native-souffle
1 no-host bin-true 622 307 352 3.3 bash
9 no-host bin-true 446 282 169 1.6 dash
17 no-host bin-true 2,463 879 1,856 18.2 osh-cpython
25 no-host bin-true 807 312 512 9.0 osh-native
33 no-host bin-true 807 311 513 8.3 osh-native-souffle
2 no-host configure.cpython 14,279 7,731 6,928 34.8 bash
10 no-host configure.cpython 14,367 7,745 7,007 34.4 dash
18 no-host configure.cpython 30,282 16,625 15,687 34.6 osh-cpython
26 no-host configure.cpython 15,212 7,610 7,903 34.5 osh-native
34 no-host configure.cpython 15,480 7,604 7,956 34.5 osh-native-souffle
4 no-host configure.ocaml 3,745 1,463 1,320 28.7 bash
12 no-host configure.ocaml 3,716 1,499 1,239 28.7 dash
20 no-host configure.ocaml 4,805 2,193 1,844 28.8 osh-cpython
28 no-host configure.ocaml 3,911 1,561 1,392 28.7 osh-native
36 no-host configure.ocaml 3,837 1,511 1,364 28.5 osh-native-souffle
5 no-host configure.tcc 46 19 28 26.0 bash
13 no-host configure.tcc 42 24 18 26.3 dash
21 no-host configure.tcc 228 162 70 26.2 osh-cpython
29 no-host configure.tcc 52 25 26 26.2 osh-native
37 no-host configure.tcc 50 23 28 26.1 osh-native-souffle
3 no-host configure.util-linux 13,005 6,679 6,789 39.5 bash
11 no-host configure.util-linux 13,802 6,573 7,715 39.6 dash
19 no-host configure.util-linux 33,660 21,010 13,746 39.5 osh-cpython
27 no-host configure.util-linux 14,271 6,511 7,994 39.7 osh-native
35 no-host configure.util-linux 14,548 6,538 8,067 39.6 osh-native-souffle
6 no-host configure.yash 1,770 972 804 33.5 bash
14 no-host configure.yash 1,699 959 739 33.1 dash
22 no-host configure.yash 2,524 1,466 1,102 33.4 osh-cpython
30 no-host configure.yash 1,798 986 814 33.3 osh-native
38 no-host configure.yash 1,803 954 851 33.3 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 63 43 21 18.1 osh-cpython
24 no-host hello-world 3 1 2 6.9 osh-native
32 no-host hello-world 3 1 2 6.4 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,396 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,199 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,686 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,432 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,356 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 99,988 0 0 0 8 0 1,987 77 bash
9 no-host bin-true 49,406 0 0 0 8 0 2,981 43 dash
17 no-host bin-true 826,758 0 0 0 8 0 1,997 127 osh-cpython
25 no-host bin-true 137,260 0 0 0 16 0 1,971 86 osh-native
33 no-host bin-true 134,306 0 0 0 16 0 1,979 88 osh-native-souffle
2 no-host configure.cpython 1,619,930 0 0 0 25,272 0 14,019 1,033 bash
10 no-host configure.cpython 1,640,786 0 0 0 25,272 0 14,060 1,082 dash
18 no-host configure.cpython 5,973,969 0 0 0 25,272 0 12,864 924 osh-cpython
26 no-host configure.cpython 1,809,519 0 0 0 25,280 0 12,840 1,143 osh-native
34 no-host configure.cpython 1,777,719 0 0 0 25,280 0 12,825 1,030 osh-native-souffle
4 no-host configure.ocaml 299,079 0 0 0 4,432 0 2,009 212 bash
12 no-host configure.ocaml 281,030 0 0 0 4,432 0 2,094 195 dash
20 no-host configure.ocaml 556,181 0 0 0 4,432 0 1,910 179 osh-cpython
28 no-host configure.ocaml 317,464 0 0 0 4,440 0 1,994 187 osh-native
36 no-host configure.ocaml 316,583 0 0 0 4,440 0 1,988 208 osh-native-souffle
5 no-host configure.tcc 5,243 0 0 0 80 0 49 1 bash
13 no-host configure.tcc 4,199 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,796 0 0 0 88 0 53 3 osh-cpython
29 no-host configure.tcc 5,945 0 0 0 96 0 46 3 osh-native
37 no-host configure.tcc 5,895 0 0 0 96 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,535,734 1 0 0 35,944 0 18,987 1,114 bash
11 no-host configure.util-linux 1,700,610 0 0 0 35,936 0 17,064 1,260 dash
19 no-host configure.util-linux 4,975,830 2 0 0 35,960 0 17,510 907 osh-cpython
27 no-host configure.util-linux 1,713,033 0 0 0 35,944 0 17,465 1,096 osh-native
35 no-host configure.util-linux 1,705,984 2 0 0 35,944 0 17,479 1,158 osh-native-souffle
6 no-host configure.yash 173,730 0 0 0 3,616 0 882 105 bash
14 no-host configure.yash 159,535 0 0 0 3,616 0 990 103 dash
22 no-host configure.yash 315,499 0 0 0 3,616 0 859 107 osh-cpython
30 no-host configure.yash 179,473 0 0 0 3,624 0 853 107 osh-native
38 no-host configure.yash 178,908 0 0 0 3,624 0 858 104 osh-native-souffle
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 0 0 dash
16 no-host hello-world 3,898 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 386 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 381 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-8304dec2
dash dash-cea41b3e
osh-cpython osh-461b70e4
osh-native osh-06041c39
osh-native-souffle osh-4082de0b
host label host id
no-host no-host-31404de8