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 456 22 21 24.23 1.18
bin-true no-host 670 538 2,247 812 799 3.35 1.21
configure.cpython no-host 14,899 14,980 28,683 15,199 15,181 1.93 1.02
configure.ocaml no-host 3,771 3,720 4,619 3,866 3,804 1.22 1.03
configure.tcc no-host 47 42 197 49 49 4.18 1.04
configure.util-linux no-host 13,983 14,803 31,125 14,320 14,246 2.23 1.02
configure.yash no-host 1,811 1,755 2,445 1,851 1,815 1.35 1.02
hello-world no-host 1 1 49 3 3 33.08 1.88

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,539 1,097 23,363 3,167 3,058 9.20 1.25
bin-true no-host 103,362 65,441 775,037 124,818 122,926 7.50 1.21
configure.cpython no-host 2,223,102 2,234,622 6,236,089 2,227,990 2,201,926 2.81 1.00
configure.ocaml no-host 410,724 391,641 645,808 413,316 412,457 1.57 1.01
configure.tcc no-host 6,565 5,469 23,738 6,945 6,963 3.62 1.06
configure.util-linux no-host 2,109,224 2,263,235 5,361,518 2,009,226 1,994,649 2.54 0.95
configure.yash no-host 256,099 244,727 386,807 258,062 258,282 1.51 1.01
hello-world no-host 151 84 3,748 348 346 24.82 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.3 3.4 21.9 8.9 8.5 5.06 2.06
bin-true no-host 3.0 1.4 17.6 8.1 7.7 5.83 2.70
configure.cpython no-host 27.4 27.4 27.3 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.4 19.3 19.4 19.3 19.3 1.00 0.99
configure.util-linux no-host 30.1 30.3 30.3 30.1 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 24.2 1.00 1.00
hello-world no-host 2.9 1.4 17.7 6.3 5.9 6.14 2.18

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.3 3,780 3,780 0 695 1,856 1,229 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.1 154,745 13,282 2,884 9,745 78,325 66,675 3,008 3 50,000 0
configure.cpython no-host 15,199 1 62 15.0 27.4 1,772,727 49,861 28,594 86,398 908,077 778,252 22,694 60 50,000 0
configure.util-linux no-host 14,320 3 60 21.3 30.1 2,703,495 29,153 65,897 109,676 1,320,583 1,273,236 27,391 41 131,794 1
configure.ocaml no-host 3,866 1 2 2.6 20.6 150,101 11,058 5,228 7,532 71,610 70,959 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,521 14,780 14,285 226 0 50,000 0
configure.yash no-host 1,851 1 2 2.6 24.4 139,754 8,027 6,686 6,337 70,285 63,132 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,329 64,537 42,747 4,572 54,525 57,232 270 3 85,494 1
hello-world no-host 3 0 0 0.2 5.9 3,779 3,779 0 696 1,856 1,227 2 0 50,000 0
bin-true no-host 799 1 2 2.6 7.7 154,744 13,070 2,822 9,746 78,325 66,673 3,008 3 50,000 0
configure.cpython no-host 15,181 1 59 14.9 27.4 1,772,726 49,112 28,532 86,399 908,077 778,250 22,694 60 50,000 0
configure.util-linux no-host 14,246 3 59 21.3 30.1 2,703,495 42,748 65,835 109,678 1,320,583 1,273,234 27,391 41 131,670 1
configure.ocaml no-host 3,804 1 2 2.6 20.6 150,101 10,996 5,166 7,534 71,610 70,957 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,586 30,586 0 1,523 14,780 14,283 226 0 50,000 0
configure.yash no-host 1,815 1 2 2.6 24.2 139,754 7,965 6,624 6,339 70,285 63,130 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,328 64,475 42,685 4,573 54,525 57,230 270 3 85,370 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 16 3 4.3 bash
15 no-host abuild-print-help 10 8 2 3.4 dash
23 no-host abuild-print-help 456 420 40 21.9 osh-cpython
31 no-host abuild-print-help 22 16 7 8.9 osh-native
39 no-host abuild-print-help 21 14 8 8.5 osh-native-souffle
1 no-host bin-true 670 520 182 3.0 bash
9 no-host bin-true 538 414 133 1.4 dash
17 no-host bin-true 2,247 1,474 1,032 17.6 osh-cpython
25 no-host bin-true 812 562 263 8.1 osh-native
33 no-host bin-true 799 564 250 7.7 osh-native-souffle
2 no-host configure.cpython 14,899 8,764 6,538 27.4 bash
10 no-host configure.cpython 14,980 9,024 6,376 27.4 dash
18 no-host configure.cpython 28,683 17,590 12,971 27.3 osh-cpython
26 no-host configure.cpython 15,199 9,052 6,413 27.4 osh-native
34 no-host configure.cpython 15,181 8,941 6,419 27.4 osh-native-souffle
4 no-host configure.ocaml 3,771 1,710 1,097 20.6 bash
12 no-host configure.ocaml 3,720 1,619 1,121 20.6 dash
20 no-host configure.ocaml 4,619 2,247 1,575 20.6 osh-cpython
28 no-host configure.ocaml 3,866 1,620 1,283 20.6 osh-native
36 no-host configure.ocaml 3,804 1,591 1,250 20.6 osh-native-souffle
5 no-host configure.tcc 47 28 20 19.4 bash
13 no-host configure.tcc 42 28 14 19.3 dash
21 no-host configure.tcc 197 139 61 19.4 osh-cpython
29 no-host configure.tcc 49 41 9 19.3 osh-native
37 no-host configure.tcc 49 25 24 19.3 osh-native-souffle
3 no-host configure.util-linux 13,983 8,746 5,715 30.1 bash
11 no-host configure.util-linux 14,803 9,189 6,103 30.3 dash
19 no-host configure.util-linux 31,125 20,596 11,616 30.3 osh-cpython
27 no-host configure.util-linux 14,320 8,497 6,022 30.1 osh-native
35 no-host configure.util-linux 14,246 8,626 5,816 30.1 osh-native-souffle
6 no-host configure.yash 1,811 1,091 728 24.4 bash
14 no-host configure.yash 1,755 993 765 24.4 dash
22 no-host configure.yash 2,445 1,530 959 24.4 osh-cpython
30 no-host configure.yash 1,851 1,090 764 24.4 osh-native
38 no-host configure.yash 1,815 1,023 795 24.2 osh-native-souffle
0 no-host hello-world 1 0 2 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 49 29 20 17.7 osh-cpython
24 no-host hello-world 3 3 0 6.3 osh-native
32 no-host hello-world 3 0 3 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,539 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,097 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,363 0 0 0 8 0 45 9 osh-cpython
31 no-host abuild-print-help 3,167 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,058 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 103,362 0 0 0 8 0 1,989 52 bash
9 no-host bin-true 65,441 0 0 0 8 0 1,985 48 dash
17 no-host bin-true 775,037 0 0 0 8 0 1,998 131 osh-cpython
25 no-host bin-true 124,818 0 0 0 16 0 1,990 88 osh-native
33 no-host bin-true 122,926 0 0 0 16 0 1,985 50 osh-native-souffle
2 no-host configure.cpython 2,223,102 0 0 0 32,928 0 14,450 904 bash
10 no-host configure.cpython 2,234,622 0 0 0 32,992 0 14,587 1,012 dash
18 no-host configure.cpython 6,236,089 2 0 0 27,512 0 13,210 1,161 osh-cpython
26 no-host configure.cpython 2,227,990 0 0 0 27,520 0 13,297 1,094 osh-native
34 no-host configure.cpython 2,201,926 1 0 0 27,520 0 13,292 1,023 osh-native-souffle
4 no-host configure.ocaml 410,724 0 0 0 5,120 0 1,955 174 bash
12 no-host configure.ocaml 391,641 0 0 0 5,112 0 1,944 141 dash
20 no-host configure.ocaml 645,808 0 0 0 5,112 0 1,856 200 osh-cpython
28 no-host configure.ocaml 413,316 0 0 0 5,120 0 1,929 168 osh-native
36 no-host configure.ocaml 412,457 0 0 0 5,120 0 1,929 154 osh-native-souffle
5 no-host configure.tcc 6,565 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 46 3 dash
21 no-host configure.tcc 23,738 0 0 0 96 0 53 12 osh-cpython
29 no-host configure.tcc 6,945 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,963 0 0 0 104 0 47 6 osh-native-souffle
3 no-host configure.util-linux 2,109,224 1 0 0 42,408 0 18,567 978 bash
11 no-host configure.util-linux 2,263,235 0 0 0 42,592 0 17,434 1,061 dash
19 no-host configure.util-linux 5,361,518 15 0 0 39,112 0 17,089 1,252 osh-cpython
27 no-host configure.util-linux 2,009,226 0 0 0 39,128 0 16,990 1,129 osh-native
35 no-host configure.util-linux 1,994,649 0 0 0 39,136 0 17,087 988 osh-native-souffle
6 no-host configure.yash 256,099 0 0 0 4,120 0 873 72 bash
14 no-host configure.yash 244,727 0 0 0 3,720 0 865 82 dash
22 no-host configure.yash 386,807 0 0 0 3,728 0 851 88 osh-cpython
30 no-host configure.yash 258,062 0 0 0 3,736 0 849 80 osh-native
38 no-host configure.yash 258,282 0 0 0 3,736 0 845 78 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,748 0 0 0 8 0 7 4 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 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-5466aa31
dash dash-0ebcf347
osh-cpython osh-29b41f14
osh-native osh-a9bbeac3
osh-native-souffle osh-4ba00506
host label host id
no-host no-host-556df3ee