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 475 21 20 25.38 1.15
bin-true no-host 646 524 2,239 773 802 3.47 1.20
configure.cpython no-host 14,513 14,463 28,838 14,993 15,189 1.99 1.03
configure.ocaml no-host 3,811 3,610 4,732 3,832 3,775 1.24 1.01
configure.tcc no-host 46 40 209 48 47 4.54 1.05
configure.util-linux no-host 13,703 14,185 31,985 14,126 13,714 2.33 1.03
configure.yash no-host 1,802 1,699 2,484 1,856 1,792 1.38 1.03
hello-world no-host 1 1 56 3 3 41.93 2.09

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,535 1,100 24,328 3,181 3,086 9.60 1.25
bin-true no-host 107,411 65,456 794,228 126,256 126,253 7.39 1.18
configure.cpython no-host 1,996,348 2,021,648 6,121,095 2,011,623 2,000,461 3.07 1.01
configure.ocaml no-host 372,642 354,122 618,236 377,259 376,674 1.66 1.01
configure.tcc no-host 6,085 4,990 24,009 6,524 6,427 3.95 1.07
configure.util-linux no-host 1,912,546 2,072,571 5,342,243 1,822,891 1,811,312 2.79 0.95
configure.yash no-host 232,990 221,562 368,923 234,667 235,096 1.58 1.01
hello-world no-host 149 79 3,983 349 342 26.73 2.34

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 22.9 9.0 8.7 5.13 2.03
bin-true no-host 3.0 1.4 18.4 8.1 7.7 6.11 2.70
configure.cpython no-host 29.2 29.1 29.3 29.2 29.2 1.00 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.7 19.7 19.5 19.4 19.5 0.99 0.99
configure.util-linux no-host 30.5 30.2 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 26.3 26.4 26.4 26.4 26.3 1.00 1.00
hello-world no-host 2.9 1.6 18.4 6.4 6.0 6.39 2.23

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.4 3,810 3,810 0 702 1,870 1,238 2 0 50,000 0
bin-true no-host 773 1 2 2.6 8.1 156,777 15,416 2,903 8,754 77,337 70,686 3,008 3 50,000 0
configure.cpython no-host 14,993 1 70 15.2 29.2 1,785,027 49,179 25,898 91,515 886,574 806,938 25,736 62 50,000 0
configure.util-linux no-host 14,126 3 69 21.6 30.3 2,709,227 56,216 66,561 114,377 1,295,038 1,299,812 32,241 42 133,122 1
configure.ocaml no-host 3,832 1 2 2.6 22.6 149,879 12,467 6,510 7,749 70,874 71,256 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,580 30,580 0 1,544 14,636 14,400 271 0 50,000 0
configure.yash no-host 1,856 1 2 2.6 26.4 139,886 8,047 6,702 6,399 68,339 65,148 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.0 116,340 64,422 42,627 4,546 54,461 57,333 277 3 85,254 1
hello-world no-host 3 0 0 0.3 6.0 3,809 3,809 0 703 1,870 1,236 2 0 50,000 0
bin-true no-host 802 1 2 2.6 7.7 156,776 15,411 2,898 8,755 77,337 70,684 3,008 3 50,000 0
configure.cpython no-host 15,189 1 71 15.2 29.2 1,785,026 49,166 25,885 91,516 886,574 806,936 25,736 62 50,000 0
configure.util-linux no-host 13,714 3 66 21.6 30.3 2,709,227 56,191 66,554 114,379 1,295,038 1,299,810 32,241 42 133,108 1
configure.ocaml no-host 3,775 1 2 2.6 22.6 149,879 12,461 6,504 7,751 70,874 71,254 1,695 3 50,000 0
configure.tcc no-host 47 0 0 1.3 19.5 30,580 30,580 0 1,546 14,636 14,398 271 0 50,000 0
configure.yash no-host 1,792 1 2 2.6 26.3 139,886 8,036 6,691 6,401 68,339 65,146 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 8.7 116,339 64,417 42,622 4,547 54,461 57,331 277 3 85,244 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 8 4.5 bash
15 no-host abuild-print-help 9 3 6 3.4 dash
23 no-host abuild-print-help 475 405 74 22.9 osh-cpython
31 no-host abuild-print-help 21 10 12 9.0 osh-native
39 no-host abuild-print-help 20 10 11 8.7 osh-native-souffle
1 no-host bin-true 646 303 377 3.0 bash
9 no-host bin-true 524 277 258 1.4 dash
17 no-host bin-true 2,239 778 1,719 18.4 osh-cpython
25 no-host bin-true 773 303 490 8.1 osh-native
33 no-host bin-true 802 290 527 7.7 osh-native-souffle
2 no-host configure.cpython 14,513 6,613 8,301 29.2 bash
10 no-host configure.cpython 14,463 6,549 8,331 29.1 dash
18 no-host configure.cpython 28,838 14,511 16,246 29.3 osh-cpython
26 no-host configure.cpython 14,993 6,744 8,532 29.2 osh-native
34 no-host configure.cpython 15,189 6,732 8,516 29.2 osh-native-souffle
4 no-host configure.ocaml 3,811 1,368 1,485 22.6 bash
12 no-host configure.ocaml 3,610 1,262 1,368 22.6 dash
20 no-host configure.ocaml 4,732 1,903 2,052 22.6 osh-cpython
28 no-host configure.ocaml 3,832 1,330 1,540 22.6 osh-native
36 no-host configure.ocaml 3,775 1,293 1,520 22.6 osh-native-souffle
5 no-host configure.tcc 46 20 27 19.7 bash
13 no-host configure.tcc 40 15 25 19.7 dash
21 no-host configure.tcc 209 144 68 19.5 osh-cpython
29 no-host configure.tcc 48 22 27 19.4 osh-native
37 no-host configure.tcc 47 28 20 19.5 osh-native-souffle
3 no-host configure.util-linux 13,703 5,875 8,312 30.5 bash
11 no-host configure.util-linux 14,185 5,825 8,865 30.2 dash
19 no-host configure.util-linux 31,985 18,300 14,810 30.3 osh-cpython
27 no-host configure.util-linux 14,126 5,817 8,536 30.3 osh-native
35 no-host configure.util-linux 13,714 5,617 8,324 30.3 osh-native-souffle
6 no-host configure.yash 1,802 886 926 26.3 bash
14 no-host configure.yash 1,699 861 841 26.4 dash
22 no-host configure.yash 2,484 1,364 1,166 26.4 osh-cpython
30 no-host configure.yash 1,856 936 925 26.4 osh-native
38 no-host configure.yash 1,792 927 870 26.3 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 56 33 23 18.4 osh-cpython
24 no-host hello-world 3 0 3 6.4 osh-native
32 no-host hello-world 3 1 1 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,535 0 0 0 16 0 41 5 bash
15 no-host abuild-print-help 1,100 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,328 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,181 0 0 0 16 0 40 0 osh-native
39 no-host abuild-print-help 3,086 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 107,411 0 0 0 8 0 1,979 154 bash
9 no-host bin-true 65,456 0 0 0 8 0 1,974 109 dash
17 no-host bin-true 794,228 0 0 0 8 0 1,988 177 osh-cpython
25 no-host bin-true 126,256 0 0 0 16 0 1,982 118 osh-native
33 no-host bin-true 126,253 0 0 0 16 0 1,967 159 osh-native-souffle
2 no-host configure.cpython 1,996,348 0 0 0 32,928 0 14,212 1,290 bash
10 no-host configure.cpython 2,021,648 0 0 0 32,992 0 14,479 1,277 dash
18 no-host configure.cpython 6,121,095 2 0 0 27,512 0 13,043 1,155 osh-cpython
26 no-host configure.cpython 2,011,623 0 0 0 27,520 0 13,100 1,109 osh-native
34 no-host configure.cpython 2,000,461 1 0 0 27,520 0 13,021 982 osh-native-souffle
4 no-host configure.ocaml 372,642 0 0 0 5,120 0 1,942 205 bash
12 no-host configure.ocaml 354,122 0 0 0 5,112 0 1,928 188 dash
20 no-host configure.ocaml 618,236 0 0 0 5,112 0 1,843 213 osh-cpython
28 no-host configure.ocaml 377,259 0 0 0 5,120 0 1,923 283 osh-native
36 no-host configure.ocaml 376,674 0 0 0 5,120 0 1,919 215 osh-native-souffle
5 no-host configure.tcc 6,085 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 4,990 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 24,009 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,524 0 0 0 104 0 47 6 osh-native
37 no-host configure.tcc 6,427 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,912,546 0 0 0 42,400 0 18,478 1,522 bash
11 no-host configure.util-linux 2,072,571 0 0 0 42,584 0 17,320 1,486 dash
19 no-host configure.util-linux 5,342,243 9 0 0 39,120 0 17,017 1,343 osh-cpython
27 no-host configure.util-linux 1,822,891 2 0 0 39,120 0 17,003 1,237 osh-native
35 no-host configure.util-linux 1,811,312 0 0 0 39,136 0 16,896 1,113 osh-native-souffle
6 no-host configure.yash 232,990 0 0 0 4,120 0 870 80 bash
14 no-host configure.yash 221,562 0 0 0 3,728 0 873 123 dash
22 no-host configure.yash 368,923 0 0 0 3,728 0 855 94 osh-cpython
30 no-host configure.yash 234,667 0 0 0 3,736 0 847 88 osh-native
38 no-host configure.yash 235,096 0 0 0 3,736 0 849 95 osh-native-souffle
0 no-host hello-world 149 0 0 0 8 0 1 0 bash
8 no-host hello-world 79 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,983 0 0 0 8 0 6 2 osh-cpython
24 no-host hello-world 349 0 0 0 16 0 1 0 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-eb11688b
dash dash-0ebcf347
osh-cpython osh-825ef2f6
osh-native osh-ea7d8be1
osh-native-souffle osh-295ec95d
host label host id
no-host no-host-20fc69f9