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 524 22 21 33.91 1.39
bin-true no-host 601 433 2,433 797 791 4.05 1.33
configure.cpython no-host 13,653 13,646 28,904 14,425 14,569 2.12 1.06
configure.ocaml no-host 3,626 3,573 4,608 3,729 3,685 1.27 1.03
configure.tcc no-host 46 41 219 49 48 4.80 1.07
configure.util-linux no-host 12,397 13,148 31,652 13,403 13,512 2.55 1.08
configure.yash no-host 1,679 1,617 2,394 1,697 1,690 1.43 1.01
hello-world no-host 1 1 59 3 3 50.76 2.46

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,392 1,145 24,818 3,436 3,326 10.38 1.44
bin-true no-host 98,917 49,358 835,014 137,273 135,296 8.44 1.39
configure.cpython no-host 1,622,151 1,640,796 5,956,324 1,809,603 1,796,714 3.67 1.12
configure.ocaml no-host 298,793 280,843 556,093 317,024 315,407 1.86 1.06
configure.tcc no-host 5,207 4,214 23,793 5,922 5,841 4.57 1.14
configure.util-linux no-host 1,534,427 1,696,189 4,968,698 1,723,945 1,711,454 3.24 1.12
configure.yash no-host 173,718 159,461 315,248 179,825 179,068 1.81 1.04
hello-world no-host 153 86 3,873 384 376 25.31 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 3.9 22.8 9.8 9.3 4.83 2.08
bin-true no-host 3.3 1.6 18.1 8.5 8.1 5.51 2.60
configure.cpython no-host 34.8 34.6 34.4 34.4 34.6 0.99 0.99
configure.ocaml no-host 28.7 28.7 28.8 28.6 28.8 1.01 1.00
configure.tcc no-host 26.2 26.0 26.2 26.1 26.3 1.00 1.00
configure.util-linux no-host 39.6 39.5 39.7 39.9 39.7 1.00 1.01
configure.yash no-host 33.4 33.3 33.5 33.3 33.2 1.00 1.00
hello-world no-host 3.1 1.6 18.2 6.9 6.4 5.79 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,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 797 1 2 2.6 8.5 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,425 1 63 15.2 34.4 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,403 3 58 21.4 39.9 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,729 1 2 2.7 28.6 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.1 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.3 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 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 791 1 2 2.6 8.1 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 14,569 1 62 15.2 34.6 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,512 3 58 21.4 39.7 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,685 1 2 2.7 28.8 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.3 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,690 1 2 2.6 33.2 140,017 8,069 6,703 6,528 68,348 65,141 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,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 7 9 4.7 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 524 457 69 22.8 osh-cpython
31 no-host abuild-print-help 22 10 12 9.8 osh-native
39 no-host abuild-print-help 21 13 8 9.3 osh-native-souffle
1 no-host bin-true 601 308 331 3.3 bash
9 no-host bin-true 433 274 164 1.6 dash
17 no-host bin-true 2,433 889 1,809 18.1 osh-cpython
25 no-host bin-true 797 309 505 8.5 osh-native
33 no-host bin-true 791 307 500 8.1 osh-native-souffle
2 no-host configure.cpython 13,653 7,530 6,493 34.8 bash
10 no-host configure.cpython 13,646 7,505 6,525 34.6 dash
18 no-host configure.cpython 28,904 15,922 14,908 34.4 osh-cpython
26 no-host configure.cpython 14,425 7,196 7,529 34.4 osh-native
34 no-host configure.cpython 14,569 7,208 7,459 34.6 osh-native-souffle
4 no-host configure.ocaml 3,626 1,438 1,226 28.7 bash
12 no-host configure.ocaml 3,573 1,443 1,152 28.7 dash
20 no-host configure.ocaml 4,608 2,062 1,765 28.8 osh-cpython
28 no-host configure.ocaml 3,729 1,455 1,316 28.6 osh-native
36 no-host configure.ocaml 3,685 1,446 1,277 28.8 osh-native-souffle
5 no-host configure.tcc 46 19 27 26.2 bash
13 no-host configure.tcc 41 17 24 26.0 dash
21 no-host configure.tcc 219 161 61 26.2 osh-cpython
29 no-host configure.tcc 49 23 26 26.1 osh-native
37 no-host configure.tcc 48 23 25 26.3 osh-native-souffle
3 no-host configure.util-linux 12,397 6,443 6,407 39.6 bash
11 no-host configure.util-linux 13,148 6,422 7,205 39.5 dash
19 no-host configure.util-linux 31,652 19,777 12,936 39.7 osh-cpython
27 no-host configure.util-linux 13,403 6,265 7,369 39.9 osh-native
35 no-host configure.util-linux 13,512 6,220 7,363 39.7 osh-native-souffle
6 no-host configure.yash 1,679 936 751 33.4 bash
14 no-host configure.yash 1,617 938 679 33.3 dash
22 no-host configure.yash 2,394 1,410 1,026 33.5 osh-cpython
30 no-host configure.yash 1,697 932 769 33.3 osh-native
38 no-host configure.yash 1,690 939 754 33.2 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 0 1 1.6 dash
16 no-host hello-world 59 45 15 18.2 osh-cpython
24 no-host hello-world 3 1 2 6.9 osh-native
32 no-host hello-world 3 1 2 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,392 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,145 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,818 0 0 0 8 0 47 8 osh-cpython
31 no-host abuild-print-help 3,436 0 0 0 16 0 39 0 osh-native
39 no-host abuild-print-help 3,326 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 98,917 0 0 0 8 0 1,993 62 bash
9 no-host bin-true 49,358 0 0 0 8 0 2,973 59 dash
17 no-host bin-true 835,014 0 0 0 8 0 1,981 121 osh-cpython
25 no-host bin-true 137,273 0 0 0 16 0 1,986 110 osh-native
33 no-host bin-true 135,296 0 0 0 16 0 1,966 106 osh-native-souffle
2 no-host configure.cpython 1,622,151 0 0 0 25,272 0 14,016 1,040 bash
10 no-host configure.cpython 1,640,796 0 0 0 25,272 0 14,081 1,065 dash
18 no-host configure.cpython 5,956,324 0 0 0 25,272 0 12,866 871 osh-cpython
26 no-host configure.cpython 1,809,603 0 0 0 25,280 0 12,846 1,019 osh-native
34 no-host configure.cpython 1,796,714 0 0 0 25,280 0 12,810 1,152 osh-native-souffle
4 no-host configure.ocaml 298,793 0 0 0 4,432 0 2,006 185 bash
12 no-host configure.ocaml 280,843 0 0 0 4,432 0 2,072 185 dash
20 no-host configure.ocaml 556,093 0 0 0 4,432 0 1,914 179 osh-cpython
28 no-host configure.ocaml 317,024 0 0 0 4,440 0 1,994 197 osh-native
36 no-host configure.ocaml 315,407 0 0 0 4,440 0 1,990 197 osh-native-souffle
5 no-host configure.tcc 5,207 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,214 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 23,793 0 0 0 88 0 53 6 osh-cpython
29 no-host configure.tcc 5,922 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,841 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,534,427 0 0 0 35,944 0 18,941 1,046 bash
11 no-host configure.util-linux 1,696,189 0 0 0 35,936 0 17,075 1,253 dash
19 no-host configure.util-linux 4,968,698 0 0 0 35,952 0 17,529 881 osh-cpython
27 no-host configure.util-linux 1,723,945 1 0 0 35,944 0 17,529 1,029 osh-native
35 no-host configure.util-linux 1,711,454 1 0 0 35,944 0 17,460 1,115 osh-native-souffle
6 no-host configure.yash 173,718 0 0 0 3,616 0 877 108 bash
14 no-host configure.yash 159,461 0 0 0 3,616 0 1,000 100 dash
22 no-host configure.yash 315,248 0 0 0 3,616 0 864 109 osh-cpython
30 no-host configure.yash 179,825 0 0 0 3,624 0 853 108 osh-native
38 no-host configure.yash 179,068 0 0 0 3,624 0 854 101 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,873 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 384 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 376 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-21a30b63
dash dash-cea41b3e
osh-cpython osh-53aa59d4
osh-native osh-3351c6e3
osh-native-souffle osh-894b8a2c
host label host id
no-host no-host-2411472