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 9 536 22 20 32.00 1.29
bin-true no-host 618 437 2,468 785 799 3.99 1.27
configure.cpython no-host 13,650 13,726 29,206 14,536 14,592 2.14 1.06
configure.ocaml no-host 3,639 3,576 4,597 3,694 3,692 1.26 1.02
configure.tcc no-host 46 41 223 49 48 4.86 1.07
configure.util-linux no-host 12,406 13,202 32,114 13,473 13,608 2.59 1.09
configure.yash no-host 1,671 1,619 2,404 1,727 1,702 1.44 1.03
hello-world no-host 1 1 60 3 3 49.42 2.37

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,409 1,171 24,690 3,460 3,338 10.25 1.44
bin-true no-host 102,927 49,412 843,141 133,258 135,284 8.19 1.29
configure.cpython no-host 1,620,774 1,638,412 5,982,102 1,819,486 1,793,683 3.69 1.12
configure.ocaml no-host 298,898 280,699 558,463 317,529 315,201 1.87 1.06
configure.tcc no-host 5,222 4,210 23,927 5,970 5,892 4.58 1.14
configure.util-linux no-host 1,532,307 1,700,395 4,983,078 1,719,283 1,705,858 3.25 1.12
configure.yash no-host 173,487 159,533 316,241 179,105 178,962 1.82 1.03
hello-world no-host 154 86 3,869 387 379 25.12 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.8 3.8 22.7 9.8 9.3 4.67 2.03
bin-true no-host 3.3 1.4 18.3 8.7 8.3 5.59 2.64
configure.cpython no-host 34.8 34.3 34.6 34.5 34.5 1.00 0.99
configure.ocaml no-host 28.7 28.6 28.6 28.7 28.6 1.00 1.00
configure.tcc no-host 26.3 26.1 26.3 26.3 26.3 1.00 1.00
configure.util-linux no-host 39.7 40.0 39.7 39.6 39.9 1.00 1.00
configure.yash no-host 33.4 33.4 33.3 33.3 33.4 1.00 1.00
hello-world no-host 3.3 1.6 18.2 6.9 6.6 5.56 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,827 3,827 0 704 1,881 1,242 2 0 50,000 0
bin-true no-host 785 1 2 2.6 8.7 156,799 15,429 2,916 8,761 77,348 70,690 3,008 3 50,000 0
configure.cpython no-host 14,536 1 64 15.2 34.5 1,782,990 46,102 25,357 91,622 885,112 806,256 25,789 62 50,000 0
configure.util-linux no-host 13,473 3 58 21.4 39.6 2,707,123 126,355 66,587 113,463 1,294,568 1,299,092 32,539 41 133,174 1
configure.ocaml no-host 3,694 1 2 2.7 28.7 149,874 12,477 6,520 7,819 70,840 71,215 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.3 30,629 30,629 0 1,582 14,646 14,401 271 0 50,000 0
configure.yash no-host 1,727 1 2 2.6 33.3 140,018 8,081 6,715 6,526 68,348 65,144 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.8 116,369 64,439 42,640 4,562 54,472 57,335 277 3 85,280 1
hello-world no-host 3 0 0 0.3 6.6 3,826 3,826 0 705 1,881 1,240 2 0 50,000 0
bin-true no-host 799 1 2 2.6 8.3 156,798 15,424 2,911 8,762 77,348 70,688 3,008 3 50,000 0
configure.cpython no-host 14,592 2 64 15.2 34.5 1,782,989 46,088 25,353 91,623 885,112 806,254 25,789 62 50,000 0
configure.util-linux no-host 13,608 3 59 21.4 39.9 2,707,123 126,348 66,580 113,465 1,294,568 1,299,090 32,539 41 133,160 1
configure.ocaml no-host 3,692 1 2 2.7 28.6 149,874 12,471 6,514 7,821 70,840 71,213 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.3 26.3 30,629 30,629 0 1,584 14,646 14,399 271 0 50,000 0
configure.yash no-host 1,702 1 2 2.6 33.4 140,018 8,070 6,704 6,528 68,348 65,142 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 9.3 116,368 64,434 42,635 4,563 54,472 57,333 277 3 85,270 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 8 9 4.8 bash
15 no-host abuild-print-help 9 3 6 3.8 dash
23 no-host abuild-print-help 536 475 65 22.7 osh-cpython
31 no-host abuild-print-help 22 13 9 9.8 osh-native
39 no-host abuild-print-help 20 10 11 9.3 osh-native-souffle
1 no-host bin-true 618 312 345 3.3 bash
9 no-host bin-true 437 276 162 1.4 dash
17 no-host bin-true 2,468 871 1,866 18.3 osh-cpython
25 no-host bin-true 785 323 481 8.7 osh-native
33 no-host bin-true 799 309 503 8.3 osh-native-souffle
2 no-host configure.cpython 13,650 7,534 6,483 34.8 bash
10 no-host configure.cpython 13,726 7,541 6,570 34.3 dash
18 no-host configure.cpython 29,206 15,937 15,204 34.6 osh-cpython
26 no-host configure.cpython 14,536 7,261 7,533 34.5 osh-native
34 no-host configure.cpython 14,592 7,206 7,498 34.5 osh-native-souffle
4 no-host configure.ocaml 3,639 1,453 1,225 28.7 bash
12 no-host configure.ocaml 3,576 1,459 1,140 28.6 dash
20 no-host configure.ocaml 4,597 2,074 1,743 28.6 osh-cpython
28 no-host configure.ocaml 3,694 1,450 1,286 28.7 osh-native
36 no-host configure.ocaml 3,692 1,471 1,259 28.6 osh-native-souffle
5 no-host configure.tcc 46 23 24 26.3 bash
13 no-host configure.tcc 41 18 23 26.1 dash
21 no-host configure.tcc 223 161 65 26.3 osh-cpython
29 no-host configure.tcc 49 21 28 26.3 osh-native
37 no-host configure.tcc 48 25 24 26.3 osh-native-souffle
3 no-host configure.util-linux 12,406 6,468 6,381 39.7 bash
11 no-host configure.util-linux 13,202 6,377 7,300 40.0 dash
19 no-host configure.util-linux 32,114 20,291 12,874 39.7 osh-cpython
27 no-host configure.util-linux 13,473 6,284 7,413 39.6 osh-native
35 no-host configure.util-linux 13,608 6,190 7,486 39.9 osh-native-souffle
6 no-host configure.yash 1,671 934 746 33.4 bash
14 no-host configure.yash 1,619 923 697 33.4 dash
22 no-host configure.yash 2,404 1,449 997 33.3 osh-cpython
30 no-host configure.yash 1,727 972 758 33.3 osh-native
38 no-host configure.yash 1,702 951 754 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 60 44 17 18.2 osh-cpython
24 no-host hello-world 3 1 2 6.9 osh-native
32 no-host hello-world 3 2 1 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,409 0 0 0 8 0 41 1 bash
15 no-host abuild-print-help 1,171 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,690 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,460 0 0 0 16 0 39 1 osh-native
39 no-host abuild-print-help 3,338 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 102,927 0 0 0 8 0 1,991 60 bash
9 no-host bin-true 49,412 0 0 0 8 0 2,955 83 dash
17 no-host bin-true 843,141 0 0 0 8 0 1,999 128 osh-cpython
25 no-host bin-true 133,258 0 0 0 16 0 1,984 91 osh-native
33 no-host bin-true 135,284 0 0 0 16 0 1,974 109 osh-native-souffle
2 no-host configure.cpython 1,620,774 0 0 0 25,272 0 14,057 1,035 bash
10 no-host configure.cpython 1,638,412 0 0 0 25,272 0 14,092 1,037 dash
18 no-host configure.cpython 5,982,102 0 0 0 25,272 0 12,870 901 osh-cpython
26 no-host configure.cpython 1,819,486 0 0 0 25,280 0 12,900 1,093 osh-native
34 no-host configure.cpython 1,793,683 0 0 0 25,280 0 12,850 1,006 osh-native-souffle
4 no-host configure.ocaml 298,898 0 0 0 4,432 0 2,012 189 bash
12 no-host configure.ocaml 280,699 0 0 0 4,432 0 2,105 201 dash
20 no-host configure.ocaml 558,463 0 0 0 4,432 0 1,916 186 osh-cpython
28 no-host configure.ocaml 317,529 0 0 0 4,440 0 1,995 188 osh-native
36 no-host configure.ocaml 315,201 0 0 0 4,440 0 2,002 206 osh-native-souffle
5 no-host configure.tcc 5,222 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,210 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,927 0 0 0 88 0 53 7 osh-cpython
29 no-host configure.tcc 5,970 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,892 0 0 0 96 0 47 4 osh-native-souffle
3 no-host configure.util-linux 1,532,307 0 0 0 35,944 0 18,948 1,068 bash
11 no-host configure.util-linux 1,700,395 1 0 0 35,936 0 17,039 1,222 dash
19 no-host configure.util-linux 4,983,078 0 0 0 35,944 0 17,494 883 osh-cpython
27 no-host configure.util-linux 1,719,283 0 0 0 35,944 0 17,482 1,119 osh-native
35 no-host configure.util-linux 1,705,858 3 0 0 35,952 0 17,476 1,039 osh-native-souffle
6 no-host configure.yash 173,487 0 0 0 3,616 0 879 91 bash
14 no-host configure.yash 159,533 0 0 0 3,616 0 996 114 dash
22 no-host configure.yash 316,241 0 0 0 3,616 0 860 104 osh-cpython
30 no-host configure.yash 179,105 0 0 0 3,624 0 857 103 osh-native
38 no-host configure.yash 178,962 0 0 0 3,624 0 856 104 osh-native-souffle
0 no-host hello-world 154 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,869 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 387 0 0 0 16 0 1 1 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-030dd550
dash dash-cea41b3e
osh-cpython osh-e2c457a3
osh-native osh-91ff38f7
osh-native-souffle osh-9727230c
host label host id
no-host no-host-31404de8