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 15 9 528 21 20 34.09 1.37
bin-true no-host 612 432 2,445 783 796 4.00 1.28
configure.cpython no-host 13,715 13,810 29,173 14,400 14,439 2.13 1.05
configure.ocaml no-host 3,625 3,627 4,605 3,700 3,669 1.27 1.02
configure.tcc no-host 45 41 218 49 48 4.85 1.09
configure.util-linux no-host 12,481 13,502 32,033 13,419 13,501 2.57 1.08
configure.yash no-host 1,667 1,661 2,389 1,697 1,685 1.43 1.02
hello-world no-host 1 1 62 3 3 53.38 2.48

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,421 1,176 24,878 3,448 3,332 10.28 1.42
bin-true no-host 99,898 49,400 832,713 134,230 136,258 8.34 1.34
configure.cpython no-host 1,628,975 1,633,949 6,007,827 1,800,696 1,799,746 3.69 1.11
configure.ocaml no-host 298,449 281,125 557,792 316,672 316,335 1.87 1.06
configure.tcc no-host 5,245 4,216 23,864 5,928 5,871 4.55 1.13
configure.util-linux no-host 1,535,362 1,694,620 5,007,520 1,727,290 1,698,886 3.26 1.13
configure.yash no-host 173,577 159,521 316,276 179,155 178,779 1.82 1.03
hello-world no-host 154 87 3,887 383 377 25.24 2.49

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.8 3.9 22.7 9.8 9.3 4.67 2.03
bin-true no-host 3.1 1.7 18.2 8.8 8.3 5.79 2.79
configure.cpython no-host 34.7 34.5 34.6 34.6 34.3 1.00 1.00
configure.ocaml no-host 28.7 28.6 28.7 28.7 28.5 1.00 1.00
configure.tcc no-host 26.0 26.2 26.2 26.3 26.1 1.01 1.01
configure.util-linux no-host 39.6 39.6 39.6 39.5 39.5 1.00 1.00
configure.yash no-host 33.1 33.3 33.4 33.4 33.4 1.01 1.01
hello-world no-host 3.3 1.6 18.1 6.8 6.4 5.51 2.08

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.8 3,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 783 1 2 2.6 8.8 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,400 1 63 15.2 34.6 1,782,989 46,101 25,356 91,622 885,112 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,419 3 57 21.4 39.5 2,707,122 126,354 66,586 113,463 1,294,568 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,700 1 2 2.7 28.7 149,873 12,476 6,519 7,819 70,840 71,214 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.3 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,697 1 2 2.6 33.4 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.8 116,368 64,438 42,639 4,562 54,472 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.4 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 796 1 2 2.6 8.3 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 14,439 1 61 15.2 34.3 1,782,988 46,087 25,352 91,623 885,112 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,501 3 59 21.4 39.5 2,707,122 126,347 66,579 113,465 1,294,568 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,669 1 2 2.7 28.5 149,873 12,470 6,513 7,821 70,840 71,212 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.3 26.1 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,685 1 2 2.6 33.4 140,017 8,069 6,703 6,528 68,348 65,141 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 9.3 116,367 64,433 42,634 4,563 54,472 57,332 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 15 11 5 4.8 bash
15 no-host abuild-print-help 9 2 8 3.9 dash
23 no-host abuild-print-help 528 471 60 22.7 osh-cpython
31 no-host abuild-print-help 21 11 10 9.8 osh-native
39 no-host abuild-print-help 20 12 9 9.3 osh-native-souffle
1 no-host bin-true 612 312 337 3.1 bash
9 no-host bin-true 432 271 168 1.7 dash
17 no-host bin-true 2,445 875 1,843 18.2 osh-cpython
25 no-host bin-true 783 317 483 8.8 osh-native
33 no-host bin-true 796 309 504 8.3 osh-native-souffle
2 no-host configure.cpython 13,715 7,456 6,631 34.7 bash
10 no-host configure.cpython 13,810 7,526 6,678 34.5 dash
18 no-host configure.cpython 29,173 15,948 15,188 34.6 osh-cpython
26 no-host configure.cpython 14,400 7,279 7,419 34.6 osh-native
34 no-host configure.cpython 14,439 7,195 7,411 34.3 osh-native-souffle
4 no-host configure.ocaml 3,625 1,452 1,210 28.7 bash
12 no-host configure.ocaml 3,627 1,441 1,209 28.6 dash
20 no-host configure.ocaml 4,605 2,070 1,755 28.7 osh-cpython
28 no-host configure.ocaml 3,700 1,504 1,238 28.7 osh-native
36 no-host configure.ocaml 3,669 1,431 1,277 28.5 osh-native-souffle
5 no-host configure.tcc 45 28 18 26.0 bash
13 no-host configure.tcc 41 19 22 26.2 dash
21 no-host configure.tcc 218 162 60 26.2 osh-cpython
29 no-host configure.tcc 49 25 25 26.3 osh-native
37 no-host configure.tcc 48 25 23 26.1 osh-native-souffle
3 no-host configure.util-linux 12,481 6,503 6,431 39.6 bash
11 no-host configure.util-linux 13,502 6,554 7,433 39.6 dash
19 no-host configure.util-linux 32,033 20,107 13,008 39.6 osh-cpython
27 no-host configure.util-linux 13,419 6,150 7,497 39.5 osh-native
35 no-host configure.util-linux 13,501 6,270 7,303 39.5 osh-native-souffle
6 no-host configure.yash 1,667 958 717 33.1 bash
14 no-host configure.yash 1,661 927 735 33.3 dash
22 no-host configure.yash 2,389 1,436 995 33.4 osh-cpython
30 no-host configure.yash 1,697 917 783 33.4 osh-native
38 no-host configure.yash 1,685 947 741 33.4 osh-native-souffle
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 62 41 21 18.1 osh-cpython
24 no-host hello-world 3 1 2 6.8 osh-native
32 no-host hello-world 3 1 1 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,421 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,176 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,878 0 0 0 8 0 45 3 osh-cpython
31 no-host abuild-print-help 3,448 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,332 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 99,898 0 0 0 8 0 1,974 76 bash
9 no-host bin-true 49,400 0 0 0 8 0 2,987 49 dash
17 no-host bin-true 832,713 0 0 0 8 0 1,979 154 osh-cpython
25 no-host bin-true 134,230 0 0 0 16 0 1,977 85 osh-native
33 no-host bin-true 136,258 0 0 0 16 0 1,975 76 osh-native-souffle
2 no-host configure.cpython 1,628,975 0 0 0 25,272 0 14,014 1,164 bash
10 no-host configure.cpython 1,633,949 0 0 0 25,272 0 14,064 1,061 dash
18 no-host configure.cpython 6,007,827 0 0 0 25,272 0 12,859 869 osh-cpython
26 no-host configure.cpython 1,800,696 0 0 0 25,280 0 12,831 1,120 osh-native
34 no-host configure.cpython 1,799,746 0 0 0 25,280 0 12,820 1,040 osh-native-souffle
4 no-host configure.ocaml 298,449 0 0 0 4,432 0 2,008 213 bash
12 no-host configure.ocaml 281,125 0 0 0 4,432 0 2,097 208 dash
20 no-host configure.ocaml 557,792 0 0 0 4,432 0 1,906 191 osh-cpython
28 no-host configure.ocaml 316,672 0 0 0 4,440 0 2,004 201 osh-native
36 no-host configure.ocaml 316,335 0 0 0 4,440 0 1,996 194 osh-native-souffle
5 no-host configure.tcc 5,245 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,216 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,864 0 0 0 88 0 53 5 osh-cpython
29 no-host configure.tcc 5,928 0 0 0 96 0 47 5 osh-native
37 no-host configure.tcc 5,871 0 0 0 96 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,535,362 0 0 0 35,944 0 18,932 1,047 bash
11 no-host configure.util-linux 1,694,620 1 0 0 35,936 0 17,087 1,197 dash
19 no-host configure.util-linux 5,007,520 1 0 0 35,944 0 17,520 877 osh-cpython
27 no-host configure.util-linux 1,727,290 3 0 0 35,944 0 17,498 1,111 osh-native
35 no-host configure.util-linux 1,698,886 0 0 0 35,944 0 17,485 1,179 osh-native-souffle
6 no-host configure.yash 173,577 0 0 0 3,616 0 875 107 bash
14 no-host configure.yash 159,521 0 0 0 3,624 0 996 99 dash
22 no-host configure.yash 316,276 0 0 0 3,616 0 853 109 osh-cpython
30 no-host configure.yash 179,155 0 0 0 3,624 0 853 114 osh-native
38 no-host configure.yash 178,779 0 0 0 3,624 0 857 102 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 87 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,887 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 383 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 377 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-85719bec
dash dash-cea41b3e
osh-cpython osh-c0b29b59
osh-native osh-e151821d
osh-native-souffle osh-944ff9d8
host label host id
no-host no-host-2411472