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 552 23 21 34.91 1.43
bin-true no-host 622 445 2,542 822 808 4.09 1.32
configure.cpython no-host 14,470 14,502 31,592 15,401 15,418 2.18 1.06
configure.ocaml no-host 3,799 3,756 4,864 3,854 3,872 1.28 1.01
configure.tcc no-host 47 43 239 50 50 5.11 1.07
configure.util-linux no-host 13,119 14,027 34,314 14,261 14,427 2.62 1.09
configure.yash no-host 1,786 1,749 2,574 1,811 1,797 1.44 1.01
hello-world no-host 1 1 66 3 3 51.57 2.41

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,370 1,158 24,554 3,417 3,390 10.36 1.44
bin-true no-host 97,935 49,427 830,309 137,273 134,304 8.48 1.40
configure.cpython no-host 1,615,306 1,647,360 5,966,207 1,815,690 1,777,636 3.69 1.12
configure.ocaml no-host 298,536 281,139 556,116 317,249 315,471 1.86 1.06
configure.tcc no-host 5,186 4,209 23,794 5,918 5,925 4.59 1.14
configure.util-linux no-host 1,536,546 1,693,057 4,985,177 1,716,115 1,699,567 3.24 1.12
configure.yash no-host 173,561 159,600 315,435 179,358 179,366 1.82 1.03
hello-world no-host 153 85 3,891 388 377 25.43 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.8 3.9 22.8 9.8 9.3 4.70 2.03
bin-true no-host 3.1 1.6 18.1 8.8 8.1 5.74 2.79
configure.cpython no-host 34.4 34.5 34.6 34.4 34.5 1.01 1.00
configure.ocaml no-host 28.6 28.8 28.6 28.6 28.6 1.00 1.00
configure.tcc no-host 26.2 26.0 26.2 26.1 26.1 1.00 1.00
configure.util-linux no-host 39.7 39.3 39.5 39.8 39.9 0.99 1.00
configure.yash no-host 33.4 33.4 33.2 33.3 33.1 0.99 1.00
hello-world no-host 3.1 1.6 18.1 7.1 6.4 5.74 2.25

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 7.1 3,826 3,826 0 703 1,880 1,243 2 0 50,000 0
bin-true no-host 822 1 2 2.6 8.8 156,798 15,428 2,915 8,760 77,347 70,691 3,008 3 50,000 0
configure.cpython no-host 15,401 1 69 15.2 34.4 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,261 3 65 21.4 39.8 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,854 1 2 2.7 28.6 149,873 12,476 6,519 7,818 70,839 71,216 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.1 30,628 30,628 0 1,581 14,645 14,402 271 0 50,000 0
configure.yash no-host 1,811 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 808 1 2 2.6 8.1 156,797 15,423 2,910 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 15,418 2 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,427 3 66 21.4 39.9 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,872 1 2 2.7 28.6 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,797 1 2 2.6 33.1 140,017 8,069 6,703 6,527 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 21 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 10 6 4.8 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 552 487 68 22.8 osh-cpython
31 no-host abuild-print-help 23 14 9 9.8 osh-native
39 no-host abuild-print-help 21 10 12 9.3 osh-native-souffle
1 no-host bin-true 622 324 337 3.1 bash
9 no-host bin-true 445 278 172 1.6 dash
17 no-host bin-true 2,542 951 1,878 18.1 osh-cpython
25 no-host bin-true 822 311 525 8.8 osh-native
33 no-host bin-true 808 302 524 8.1 osh-native-souffle
2 no-host configure.cpython 14,470 7,777 7,069 34.4 bash
10 no-host configure.cpython 14,502 7,747 7,161 34.5 dash
18 no-host configure.cpython 31,592 17,437 16,324 34.6 osh-cpython
26 no-host configure.cpython 15,401 7,726 7,980 34.4 osh-native
34 no-host configure.cpython 15,418 7,572 7,959 34.5 osh-native-souffle
4 no-host configure.ocaml 3,799 1,481 1,357 28.6 bash
12 no-host configure.ocaml 3,756 1,468 1,309 28.8 dash
20 no-host configure.ocaml 4,864 2,202 1,899 28.6 osh-cpython
28 no-host configure.ocaml 3,854 1,487 1,408 28.6 osh-native
36 no-host configure.ocaml 3,872 1,471 1,441 28.6 osh-native-souffle
5 no-host configure.tcc 47 23 25 26.2 bash
13 no-host configure.tcc 43 24 20 26.0 dash
21 no-host configure.tcc 239 161 82 26.2 osh-cpython
29 no-host configure.tcc 50 23 27 26.1 osh-native
37 no-host configure.tcc 50 22 29 26.1 osh-native-souffle
3 no-host configure.util-linux 13,119 6,740 6,839 39.7 bash
11 no-host configure.util-linux 14,027 6,770 7,765 39.3 dash
19 no-host configure.util-linux 34,314 21,277 14,201 39.5 osh-cpython
27 no-host configure.util-linux 14,261 6,487 8,011 39.8 osh-native
35 no-host configure.util-linux 14,427 6,485 8,019 39.9 osh-native-souffle
6 no-host configure.yash 1,786 961 832 33.4 bash
14 no-host configure.yash 1,749 974 769 33.4 dash
22 no-host configure.yash 2,574 1,524 1,096 33.2 osh-cpython
30 no-host configure.yash 1,811 979 833 33.3 osh-native
38 no-host configure.yash 1,797 977 822 33.1 osh-native-souffle
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 66 43 23 18.1 osh-cpython
24 no-host hello-world 3 1 2 7.1 osh-native
32 no-host hello-world 3 2 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,370 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,158 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,554 0 0 0 8 0 45 7 osh-cpython
31 no-host abuild-print-help 3,417 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,390 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 97,935 0 0 0 8 0 1,984 66 bash
9 no-host bin-true 49,427 0 0 0 8 0 2,947 53 dash
17 no-host bin-true 830,309 0 0 0 8 0 1,975 118 osh-cpython
25 no-host bin-true 137,273 0 0 0 16 0 1,954 116 osh-native
33 no-host bin-true 134,304 0 0 0 16 0 1,976 70 osh-native-souffle
2 no-host configure.cpython 1,615,306 0 0 0 25,272 0 14,035 1,031 bash
10 no-host configure.cpython 1,647,360 0 0 0 25,272 0 14,077 1,051 dash
18 no-host configure.cpython 5,966,207 0 0 0 25,272 0 12,864 881 osh-cpython
26 no-host configure.cpython 1,815,690 0 0 0 25,280 0 12,795 1,097 osh-native
34 no-host configure.cpython 1,777,636 0 0 0 25,280 0 12,793 1,119 osh-native-souffle
4 no-host configure.ocaml 298,536 0 0 0 4,432 0 2,010 192 bash
12 no-host configure.ocaml 281,139 0 0 0 4,432 0 2,093 214 dash
20 no-host configure.ocaml 556,116 0 0 0 4,432 0 1,914 190 osh-cpython
28 no-host configure.ocaml 317,249 0 0 0 4,440 0 1,989 228 osh-native
36 no-host configure.ocaml 315,471 0 0 0 4,440 0 1,991 198 osh-native-souffle
5 no-host configure.tcc 5,186 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,209 0 0 0 88 0 51 2 dash
21 no-host configure.tcc 23,794 0 0 0 88 0 52 5 osh-cpython
29 no-host configure.tcc 5,918 0 0 0 96 0 47 1 osh-native
37 no-host configure.tcc 5,925 0 0 0 96 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,536,546 1 0 0 35,944 0 18,896 1,194 bash
11 no-host configure.util-linux 1,693,057 0 0 0 35,936 0 16,874 1,361 dash
19 no-host configure.util-linux 4,985,177 1 0 0 35,960 0 17,512 890 osh-cpython
27 no-host configure.util-linux 1,716,115 2 0 0 35,952 0 17,498 1,115 osh-native
35 no-host configure.util-linux 1,699,567 0 0 0 35,952 0 17,253 1,145 osh-native-souffle
6 no-host configure.yash 173,561 0 0 0 3,616 0 873 95 bash
14 no-host configure.yash 159,600 0 0 0 3,616 0 995 112 dash
22 no-host configure.yash 315,435 0 0 0 3,616 0 861 101 osh-cpython
30 no-host configure.yash 179,358 0 0 0 3,624 0 856 109 osh-native
38 no-host configure.yash 179,366 0 0 0 3,624 0 856 108 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 85 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,891 0 0 0 8 0 7 1 osh-cpython
24 no-host hello-world 388 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-fb084481
dash dash-cea41b3e
osh-cpython osh-1340284d
osh-native osh-5c21b5d5
osh-native-souffle osh-f5314b20
host label host id
no-host no-host-2411472