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 20 9 447 22 21 22.71 1.14
bin-true no-host 677 547 2,237 810 810 3.30 1.20
configure.cpython no-host 15,076 15,114 28,441 15,159 15,373 1.89 1.01
configure.ocaml no-host 3,799 3,722 4,607 3,809 3,819 1.21 1.00
configure.tcc no-host 56 42 195 49 48 3.45 0.87
configure.util-linux no-host 13,965 14,801 30,978 14,355 14,446 2.22 1.03
configure.yash no-host 1,885 1,767 2,424 1,827 1,815 1.29 0.97
hello-world no-host 1 1 48 3 3 32.60 1.93

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,581 1,111 23,288 3,190 3,073 9.02 1.24
bin-true no-host 106,348 65,408 762,246 125,188 128,121 7.17 1.18
configure.cpython no-host 2,226,392 2,239,392 6,218,462 2,224,738 2,216,438 2.79 1.00
configure.ocaml no-host 410,978 391,316 646,299 413,590 412,723 1.57 1.01
configure.tcc no-host 6,554 5,471 23,555 7,006 6,962 3.59 1.07
configure.util-linux no-host 2,104,006 2,261,033 5,365,745 2,009,911 1,996,015 2.55 0.96
configure.yash no-host 255,690 244,931 387,873 258,227 257,836 1.52 1.01
hello-world no-host 151 81 3,739 351 345 24.76 2.32

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.5 21.9 9.0 8.7 4.91 2.03
bin-true no-host 2.9 1.3 17.7 8.0 7.6 6.14 2.77
configure.cpython no-host 27.4 27.4 27.4 27.5 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.0 30.0 30.1 30.3 30.3 1.00 1.01
configure.yash no-host 24.2 24.5 24.2 24.2 24.4 1.00 1.00
hello-world no-host 2.8 1.4 17.7 6.3 5.8 6.43 2.29

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,788 3,788 0 694 1,858 1,236 2 0 50,000 0
bin-true no-host 810 1 2 2.6 8.0 154,753 13,365 2,890 9,744 78,327 66,682 3,008 3 50,000 0
configure.cpython no-host 15,159 1 62 15.0 27.5 1,772,735 49,867 28,600 86,397 908,079 778,259 22,694 60 50,000 0
configure.util-linux no-host 14,355 3 61 21.3 30.3 2,703,503 29,159 65,903 109,675 1,320,585 1,273,243 27,391 41 131,806 1
configure.ocaml no-host 3,809 1 2 2.6 20.6 150,109 11,064 5,234 7,531 71,612 70,966 1,448 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,594 30,594 0 1,520 14,782 14,292 226 0 50,000 0
configure.yash no-host 1,827 1 2 2.6 24.2 139,762 8,033 6,692 6,336 70,287 63,139 1,803 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,337 64,543 42,753 4,571 54,527 57,239 270 3 85,506 1
hello-world no-host 3 0 0 0.2 5.8 3,787 3,787 0 695 1,858 1,234 2 0 50,000 0
bin-true no-host 810 1 2 2.6 7.6 154,752 13,226 2,828 9,745 78,327 66,680 3,008 3 50,000 0
configure.cpython no-host 15,373 2 61 15.0 27.4 1,772,734 49,118 28,538 86,398 908,079 778,257 22,694 60 50,000 0
configure.util-linux no-host 14,446 3 62 21.3 30.3 2,703,503 42,754 65,841 109,677 1,320,585 1,273,241 27,391 41 131,682 1
configure.ocaml no-host 3,819 0 2 2.6 20.6 150,109 11,002 5,172 7,533 71,612 70,964 1,448 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.3 30,594 30,594 0 1,522 14,782 14,290 226 0 50,000 0
configure.yash no-host 1,815 1 2 2.6 24.4 139,762 7,971 6,630 6,338 70,287 63,137 1,803 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,336 64,481 42,691 4,572 54,527 57,237 270 3 85,382 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 20 12 8 4.5 bash
15 no-host abuild-print-help 9 10 0 3.5 dash
23 no-host abuild-print-help 447 381 69 21.9 osh-cpython
31 no-host abuild-print-help 22 21 2 9.0 osh-native
39 no-host abuild-print-help 21 10 12 8.7 osh-native-souffle
1 no-host bin-true 677 510 197 2.9 bash
9 no-host bin-true 547 420 137 1.3 dash
17 no-host bin-true 2,237 1,502 996 17.7 osh-cpython
25 no-host bin-true 810 571 256 8.0 osh-native
33 no-host bin-true 810 578 247 7.6 osh-native-souffle
2 no-host configure.cpython 15,076 9,065 6,406 27.4 bash
10 no-host configure.cpython 15,114 9,010 6,527 27.4 dash
18 no-host configure.cpython 28,441 17,233 13,064 27.4 osh-cpython
26 no-host configure.cpython 15,159 9,101 6,330 27.5 osh-native
34 no-host configure.cpython 15,373 8,998 6,490 27.4 osh-native-souffle
4 no-host configure.ocaml 3,799 1,601 1,237 20.6 bash
12 no-host configure.ocaml 3,722 1,527 1,217 20.6 dash
20 no-host configure.ocaml 4,607 2,101 1,714 20.6 osh-cpython
28 no-host configure.ocaml 3,809 1,572 1,276 20.6 osh-native
36 no-host configure.ocaml 3,819 1,666 1,189 20.6 osh-native-souffle
5 no-host configure.tcc 56 32 25 19.4 bash
13 no-host configure.tcc 42 21 22 19.3 dash
21 no-host configure.tcc 195 162 36 19.4 osh-cpython
29 no-host configure.tcc 49 31 19 19.3 osh-native
37 no-host configure.tcc 48 20 29 19.3 osh-native-souffle
3 no-host configure.util-linux 13,965 8,903 5,526 30.0 bash
11 no-host configure.util-linux 14,801 9,148 6,150 30.0 dash
19 no-host configure.util-linux 30,978 20,578 11,488 30.1 osh-cpython
27 no-host configure.util-linux 14,355 8,779 5,774 30.3 osh-native
35 no-host configure.util-linux 14,446 8,740 5,897 30.3 osh-native-souffle
6 no-host configure.yash 1,885 1,123 769 24.2 bash
14 no-host configure.yash 1,767 1,033 737 24.5 dash
22 no-host configure.yash 2,424 1,421 1,045 24.2 osh-cpython
30 no-host configure.yash 1,827 1,040 792 24.2 osh-native
38 no-host configure.yash 1,815 1,072 746 24.4 osh-native-souffle
0 no-host hello-world 1 1 0 2.8 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 48 24 23 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.8 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,581 0 0 0 16 0 41 1 bash
15 no-host abuild-print-help 1,111 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,288 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,190 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,073 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,348 0 0 0 8 0 1,995 237 bash
9 no-host bin-true 65,408 0 0 0 8 0 1,991 196 dash
17 no-host bin-true 762,246 0 0 0 8 0 2,000 93 osh-cpython
25 no-host bin-true 125,188 0 0 0 16 0 1,988 211 osh-native
33 no-host bin-true 128,121 0 0 0 16 0 1,988 60 osh-native-souffle
2 no-host configure.cpython 2,226,392 0 0 0 32,928 0 14,580 1,121 bash
10 no-host configure.cpython 2,239,392 0 0 0 32,992 0 14,565 982 dash
18 no-host configure.cpython 6,218,462 0 0 0 27,512 0 13,340 1,160 osh-cpython
26 no-host configure.cpython 2,224,738 0 0 0 27,520 0 13,274 955 osh-native
34 no-host configure.cpython 2,216,438 1 0 0 27,520 0 13,268 1,167 osh-native-souffle
4 no-host configure.ocaml 410,978 0 0 0 5,120 0 1,927 206 bash
12 no-host configure.ocaml 391,316 0 0 0 5,112 0 1,947 132 dash
20 no-host configure.ocaml 646,299 0 0 0 5,112 0 1,856 184 osh-cpython
28 no-host configure.ocaml 413,590 0 0 0 5,120 0 1,931 184 osh-native
36 no-host configure.ocaml 412,723 0 0 0 5,120 0 1,927 160 osh-native-souffle
5 no-host configure.tcc 6,554 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,471 0 0 0 96 0 47 1 dash
21 no-host configure.tcc 23,555 0 0 0 96 0 53 16 osh-cpython
29 no-host configure.tcc 7,006 0 0 0 104 0 47 4 osh-native
37 no-host configure.tcc 6,962 0 0 0 104 0 47 3 osh-native-souffle
3 no-host configure.util-linux 2,104,006 4 0 0 42,400 0 18,565 1,043 bash
11 no-host configure.util-linux 2,261,033 0 0 0 42,584 0 17,434 1,190 dash
19 no-host configure.util-linux 5,365,745 13 0 0 39,112 0 16,940 1,256 osh-cpython
27 no-host configure.util-linux 2,009,911 0 0 0 39,120 0 16,964 965 osh-native
35 no-host configure.util-linux 1,996,015 1 0 0 39,136 0 16,944 965 osh-native-souffle
6 no-host configure.yash 255,690 0 0 0 4,120 0 878 87 bash
14 no-host configure.yash 244,931 0 0 0 3,720 0 870 77 dash
22 no-host configure.yash 387,873 0 0 0 3,728 0 853 80 osh-cpython
30 no-host configure.yash 258,227 0 0 0 3,736 0 850 71 osh-native
38 no-host configure.yash 257,836 0 0 0 3,736 0 852 77 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,739 0 0 0 8 0 7 5 osh-cpython
24 no-host hello-world 351 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 345 0 0 0 16 0 0 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-8fcf8dd2
dash dash-0ebcf347
osh-cpython osh-ee69370c
osh-native osh-8d209051
osh-native-souffle osh-4244d926
host label host id
no-host no-host-556df3ee