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 17 10 560 23 21 33.89 1.40
bin-true no-host 647 466 2,565 848 837 3.96 1.31
configure.cpython no-host 14,947 14,822 31,966 15,633 15,747 2.14 1.05
configure.ocaml no-host 3,856 3,806 4,919 3,926 3,935 1.28 1.02
configure.tcc no-host 49 44 236 52 51 4.86 1.07
configure.util-linux no-host 13,430 14,249 34,778 14,608 14,679 2.59 1.09
configure.yash no-host 1,837 1,751 2,628 1,837 1,839 1.43 1.00
hello-world no-host 1 1 65 3 3 47.38 2.18

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,405 1,196 24,669 3,477 3,321 10.26 1.45
bin-true no-host 102,002 49,418 830,084 136,237 133,261 8.14 1.34
configure.cpython no-host 1,622,503 1,650,373 5,959,566 1,811,180 1,802,267 3.67 1.12
configure.ocaml no-host 298,569 280,616 555,307 317,347 316,555 1.86 1.06
configure.tcc no-host 5,215 4,211 23,793 5,975 5,880 4.56 1.15
configure.util-linux no-host 1,533,472 1,688,431 4,951,716 1,731,747 1,708,554 3.23 1.13
configure.yash no-host 173,615 159,490 315,280 179,059 179,378 1.82 1.03
hello-world no-host 153 87 3,874 384 377 25.32 2.51

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.7 4.1 22.7 9.8 9.2 4.80 2.08
bin-true no-host 3.1 1.6 18.2 8.7 8.3 5.79 2.75
configure.cpython no-host 34.5 34.3 34.4 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.5 28.8 28.7 1.00 1.01
configure.tcc no-host 26.3 26.1 26.2 26.0 26.0 1.00 0.99
configure.util-linux no-host 39.6 39.9 39.7 39.7 39.7 1.00 1.00
configure.yash no-host 33.1 33.4 33.5 33.5 33.3 1.01 1.01
hello-world no-host 3.1 1.4 18.2 6.9 6.4 5.78 2.21

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.9 3,825 3,825 0 704 1,880 1,241 2 0 50,000 0
bin-true no-host 848 1 2 2.6 8.7 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 15,633 2 73 15.2 34.5 1,782,988 46,101 25,356 91,622 885,111 806,255 25,789 62 50,000 0
configure.util-linux no-host 14,608 3 68 21.4 39.7 2,707,121 126,354 66,586 113,463 1,294,567 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,926 1 2 2.7 28.8 149,872 12,476 6,519 7,819 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 52 0 0 1.3 26.0 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,837 1 2 2.6 33.5 140,016 8,080 6,714 6,526 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 23 1 2 2.8 9.8 116,367 64,438 42,639 4,562 54,471 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.4 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 837 1 2 2.6 8.3 156,796 15,423 2,910 8,762 77,347 70,687 3,008 3 50,000 0
configure.cpython no-host 15,747 1 70 15.2 34.4 1,782,987 46,087 25,352 91,623 885,111 806,253 25,789 62 50,000 0
configure.util-linux no-host 14,679 3 67 21.4 39.7 2,707,121 126,347 66,579 113,465 1,294,567 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,935 1 2 2.7 28.7 149,872 12,470 6,513 7,821 70,839 71,212 1,693 3 50,000 0
configure.tcc no-host 51 0 0 1.3 26.0 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,839 1 2 2.6 33.3 140,016 8,069 6,703 6,528 68,347 65,141 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.2 116,366 64,433 42,634 4,563 54,471 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 17 11 6 4.7 bash
15 no-host abuild-print-help 10 5 5 4.1 dash
23 no-host abuild-print-help 560 483 80 22.7 osh-cpython
31 no-host abuild-print-help 23 13 11 9.8 osh-native
39 no-host abuild-print-help 21 13 9 9.2 osh-native-souffle
1 no-host bin-true 647 313 373 3.1 bash
9 no-host bin-true 466 291 182 1.6 dash
17 no-host bin-true 2,565 932 1,916 18.2 osh-cpython
25 no-host bin-true 848 304 563 8.7 osh-native
33 no-host bin-true 837 294 561 8.3 osh-native-souffle
2 no-host configure.cpython 14,947 7,874 7,449 34.5 bash
10 no-host configure.cpython 14,822 7,841 7,412 34.3 dash
18 no-host configure.cpython 31,966 17,371 16,739 34.4 osh-cpython
26 no-host configure.cpython 15,633 7,732 8,230 34.5 osh-native
34 no-host configure.cpython 15,747 7,628 8,289 34.4 osh-native-souffle
4 no-host configure.ocaml 3,856 1,522 1,376 28.6 bash
12 no-host configure.ocaml 3,806 1,477 1,351 28.7 dash
20 no-host configure.ocaml 4,919 2,187 1,970 28.5 osh-cpython
28 no-host configure.ocaml 3,926 1,581 1,389 28.8 osh-native
36 no-host configure.ocaml 3,935 1,492 1,481 28.7 osh-native-souffle
5 no-host configure.tcc 49 21 28 26.3 bash
13 no-host configure.tcc 44 26 18 26.1 dash
21 no-host configure.tcc 236 169 71 26.2 osh-cpython
29 no-host configure.tcc 52 22 30 26.0 osh-native
37 no-host configure.tcc 51 20 31 26.0 osh-native-souffle
3 no-host configure.util-linux 13,430 6,752 7,177 39.6 bash
11 no-host configure.util-linux 14,249 6,703 8,065 39.9 dash
19 no-host configure.util-linux 34,778 21,580 14,375 39.7 osh-cpython
27 no-host configure.util-linux 14,608 6,644 8,223 39.7 osh-native
35 no-host configure.util-linux 14,679 6,538 8,243 39.7 osh-native-souffle
6 no-host configure.yash 1,837 1,026 816 33.1 bash
14 no-host configure.yash 1,751 992 760 33.4 dash
22 no-host configure.yash 2,628 1,514 1,160 33.5 osh-cpython
30 no-host configure.yash 1,837 935 906 33.5 osh-native
38 no-host configure.yash 1,839 964 877 33.3 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 65 46 19 18.2 osh-cpython
24 no-host hello-world 3 2 1 6.9 osh-native
32 no-host hello-world 3 0 3 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,405 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,196 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,669 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,477 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,321 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 102,002 0 0 0 8 0 1,977 58 bash
9 no-host bin-true 49,418 0 0 0 8 0 2,966 66 dash
17 no-host bin-true 830,084 0 0 0 8 0 1,968 174 osh-cpython
25 no-host bin-true 136,237 0 0 0 16 0 1,974 110 osh-native
33 no-host bin-true 133,261 0 0 0 16 0 1,970 193 osh-native-souffle
2 no-host configure.cpython 1,622,503 0 0 0 25,272 0 14,023 1,152 bash
10 no-host configure.cpython 1,650,373 0 0 0 25,272 0 14,086 1,172 dash
18 no-host configure.cpython 5,959,566 0 0 0 25,272 0 12,854 1,103 osh-cpython
26 no-host configure.cpython 1,811,180 0 0 0 25,280 0 12,853 1,018 osh-native
34 no-host configure.cpython 1,802,267 0 0 0 25,280 0 12,861 1,029 osh-native-souffle
4 no-host configure.ocaml 298,569 0 0 0 4,432 0 2,008 201 bash
12 no-host configure.ocaml 280,616 0 0 0 4,432 0 2,099 195 dash
20 no-host configure.ocaml 555,307 0 0 0 4,432 0 1,911 215 osh-cpython
28 no-host configure.ocaml 317,347 0 0 0 4,440 0 1,999 227 osh-native
36 no-host configure.ocaml 316,555 0 0 0 4,440 0 1,999 207 osh-native-souffle
5 no-host configure.tcc 5,215 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,211 0 0 0 88 0 51 11 dash
21 no-host configure.tcc 23,793 0 0 0 88 0 53 10 osh-cpython
29 no-host configure.tcc 5,975 0 0 0 96 0 47 2 osh-native
37 no-host configure.tcc 5,880 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,533,472 1 0 0 35,944 0 18,956 1,101 bash
11 no-host configure.util-linux 1,688,431 1 0 0 35,944 0 17,059 1,272 dash
19 no-host configure.util-linux 4,951,716 1 0 0 35,952 0 17,486 1,098 osh-cpython
27 no-host configure.util-linux 1,731,747 0 0 0 35,952 0 17,539 993 osh-native
35 no-host configure.util-linux 1,708,554 1 0 0 35,952 0 17,497 1,016 osh-native-souffle
6 no-host configure.yash 173,615 0 0 0 3,616 0 886 148 bash
14 no-host configure.yash 159,490 0 0 0 3,616 0 999 128 dash
22 no-host configure.yash 315,280 0 0 0 3,616 0 859 131 osh-cpython
30 no-host configure.yash 179,059 0 0 0 3,624 0 856 122 osh-native
38 no-host configure.yash 179,378 0 0 0 3,624 0 857 126 osh-native-souffle
0 no-host hello-world 153 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,874 0 0 0 8 0 7 0 osh-cpython
24 no-host hello-world 384 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-43a4e950
dash dash-cea41b3e
osh-cpython osh-ca529fe6
osh-native osh-2feba101
osh-native-souffle osh-5aa3ef16
host label host id
no-host no-host-2411472