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 530 22 20 33.46 1.41
bin-true no-host 632 454 2,480 819 822 3.93 1.30
configure.cpython no-host 14,033 14,010 29,604 14,851 14,843 2.11 1.06
configure.ocaml no-host 3,681 3,642 4,690 3,749 3,744 1.27 1.02
configure.tcc no-host 46 42 222 49 49 4.78 1.06
configure.util-linux no-host 12,712 13,569 32,464 13,829 13,895 2.55 1.09
configure.yash no-host 1,720 1,662 2,458 1,744 1,735 1.43 1.01
hello-world no-host 1 1 60 3 3 44.24 2.14

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,393 1,169 24,708 3,430 3,350 10.33 1.43
bin-true no-host 98,909 49,416 828,549 134,290 136,225 8.38 1.36
configure.cpython no-host 1,630,020 1,642,479 5,942,116 1,807,209 1,803,043 3.65 1.11
configure.ocaml no-host 298,770 281,179 555,370 317,129 315,642 1.86 1.06
configure.tcc no-host 5,221 4,208 23,757 5,960 5,901 4.55 1.14
configure.util-linux no-host 1,533,530 1,698,015 4,958,482 1,723,775 1,712,782 3.23 1.12
configure.yash no-host 173,628 159,493 315,033 179,085 178,622 1.81 1.03
hello-world no-host 155 82 3,881 384 379 25.04 2.48

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.2 4.70 2.03
bin-true no-host 3.1 1.4 18.1 8.8 8.3 5.74 2.79
configure.cpython no-host 34.5 34.5 34.6 34.5 34.6 1.00 1.00
configure.ocaml no-host 28.6 28.7 28.7 28.7 28.8 1.00 1.00
configure.tcc no-host 26.2 26.1 26.1 26.2 26.3 1.00 1.00
configure.util-linux no-host 39.7 39.7 39.9 39.6 39.9 1.00 1.00
configure.yash no-host 33.5 33.1 33.1 33.4 33.4 0.99 1.00
hello-world no-host 3.3 1.4 18.1 6.9 6.6 5.51 2.12

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 819 1 2 2.6 8.8 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,851 1 69 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 13,829 3 62 21.4 39.6 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,749 1 2 2.7 28.7 149,872 12,476 6,519 7,819 70,839 71,214 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.2 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,744 1 2 2.6 33.4 140,016 8,080 6,714 6,526 68,347 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 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.6 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 822 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 14,843 1 64 15.2 34.6 1,782,987 46,087 25,352 91,623 885,111 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,895 3 60 21.4 39.9 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,744 1 2 2.7 28.8 149,872 12,470 6,513 7,821 70,839 71,212 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.3 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,735 1 2 2.6 33.4 140,016 8,069 6,703 6,528 68,347 65,141 2,095 3 50,000 0
abuild-print-help no-host 20 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 16 10 7 4.8 bash
15 no-host abuild-print-help 9 4 6 3.9 dash
23 no-host abuild-print-help 530 474 60 22.8 osh-cpython
31 no-host abuild-print-help 22 13 10 9.8 osh-native
39 no-host abuild-print-help 20 9 12 9.2 osh-native-souffle
1 no-host bin-true 632 307 362 3.1 bash
9 no-host bin-true 454 279 182 1.4 dash
17 no-host bin-true 2,480 902 1,843 18.1 osh-cpython
25 no-host bin-true 819 305 533 8.8 osh-native
33 no-host bin-true 822 307 533 8.3 osh-native-souffle
2 no-host configure.cpython 14,033 7,535 6,888 34.5 bash
10 no-host configure.cpython 14,010 7,468 6,954 34.5 dash
18 no-host configure.cpython 29,604 16,334 15,232 34.6 osh-cpython
26 no-host configure.cpython 14,851 7,469 7,693 34.5 osh-native
34 no-host configure.cpython 14,843 7,344 7,672 34.6 osh-native-souffle
4 no-host configure.ocaml 3,681 1,435 1,286 28.6 bash
12 no-host configure.ocaml 3,642 1,468 1,197 28.7 dash
20 no-host configure.ocaml 4,690 2,140 1,774 28.7 osh-cpython
28 no-host configure.ocaml 3,749 1,484 1,307 28.7 osh-native
36 no-host configure.ocaml 3,744 1,454 1,329 28.8 osh-native-souffle
5 no-host configure.tcc 46 26 21 26.2 bash
13 no-host configure.tcc 42 20 22 26.1 dash
21 no-host configure.tcc 222 157 68 26.1 osh-cpython
29 no-host configure.tcc 49 20 29 26.2 osh-native
37 no-host configure.tcc 49 22 27 26.3 osh-native-souffle
3 no-host configure.util-linux 12,712 6,620 6,561 39.7 bash
11 no-host configure.util-linux 13,569 6,546 7,499 39.7 dash
19 no-host configure.util-linux 32,464 20,343 13,195 39.9 osh-cpython
27 no-host configure.util-linux 13,829 6,210 7,866 39.6 osh-native
35 no-host configure.util-linux 13,895 6,252 7,727 39.9 osh-native-souffle
6 no-host configure.yash 1,720 951 776 33.5 bash
14 no-host configure.yash 1,662 944 720 33.1 dash
22 no-host configure.yash 2,458 1,464 1,036 33.1 osh-cpython
30 no-host configure.yash 1,744 948 799 33.4 osh-native
38 no-host configure.yash 1,735 963 775 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.4 dash
16 no-host hello-world 60 48 12 18.1 osh-cpython
24 no-host hello-world 3 0 3 6.9 osh-native
32 no-host hello-world 3 1 2 6.6 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,393 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,169 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,708 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,430 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,350 0 0 0 16 0 38 1 osh-native-souffle
1 no-host bin-true 98,909 0 0 0 8 0 1,978 115 bash
9 no-host bin-true 49,416 0 0 0 8 0 2,977 55 dash
17 no-host bin-true 828,549 0 0 0 8 0 1,980 399 osh-cpython
25 no-host bin-true 134,290 0 0 0 16 0 1,972 144 osh-native
33 no-host bin-true 136,225 0 0 0 16 0 1,978 120 osh-native-souffle
2 no-host configure.cpython 1,630,020 0 0 0 25,272 0 14,036 1,427 bash
10 no-host configure.cpython 1,642,479 3 0 0 25,272 0 14,067 1,274 dash
18 no-host configure.cpython 5,942,116 2 0 0 25,272 0 12,867 1,172 osh-cpython
26 no-host configure.cpython 1,807,209 0 0 0 25,280 0 12,900 1,163 osh-native
34 no-host configure.cpython 1,803,043 0 0 0 25,280 0 12,862 1,287 osh-native-souffle
4 no-host configure.ocaml 298,770 0 0 0 4,432 0 2,005 205 bash
12 no-host configure.ocaml 281,179 0 0 0 4,432 0 2,097 213 dash
20 no-host configure.ocaml 555,370 0 0 0 4,432 0 1,914 203 osh-cpython
28 no-host configure.ocaml 317,129 0 0 0 4,440 0 1,996 208 osh-native
36 no-host configure.ocaml 315,642 0 0 0 4,440 0 2,001 213 osh-native-souffle
5 no-host configure.tcc 5,221 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,208 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,757 0 0 0 88 0 52 9 osh-cpython
29 no-host configure.tcc 5,960 0 0 0 96 0 47 4 osh-native
37 no-host configure.tcc 5,901 0 0 0 96 0 47 9 osh-native-souffle
3 no-host configure.util-linux 1,533,530 0 0 0 35,944 0 18,928 1,063 bash
11 no-host configure.util-linux 1,698,015 1 0 0 35,936 0 17,014 1,389 dash
19 no-host configure.util-linux 4,958,482 7 0 0 35,944 0 17,543 1,151 osh-cpython
27 no-host configure.util-linux 1,723,775 5 0 0 35,952 0 17,565 1,038 osh-native
35 no-host configure.util-linux 1,712,782 2 0 0 35,952 0 17,537 1,063 osh-native-souffle
6 no-host configure.yash 173,628 0 0 0 3,616 0 870 142 bash
14 no-host configure.yash 159,493 0 0 0 3,616 0 1,004 124 dash
22 no-host configure.yash 315,033 0 0 0 3,616 0 860 179 osh-cpython
30 no-host configure.yash 179,085 0 0 0 3,624 0 856 132 osh-native
38 no-host configure.yash 178,622 0 0 0 3,624 0 854 149 osh-native-souffle
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,881 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 384 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 379 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-aed36ccb
dash dash-cea41b3e
osh-cpython osh-a8040fdc
osh-native osh-8d3c372b
osh-native-souffle osh-4c598781
host label host id
no-host no-host-2411472