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 522 22 20 32.51 1.38
bin-true no-host 642 456 2,495 827 817 3.89 1.29
configure.cpython no-host 13,811 13,824 29,327 14,644 14,728 2.12 1.06
configure.ocaml no-host 3,658 3,634 4,611 3,735 3,715 1.26 1.02
configure.tcc no-host 48 41 218 49 48 4.57 1.02
configure.util-linux no-host 12,581 13,353 31,833 13,661 13,722 2.53 1.09
configure.yash no-host 1,713 1,647 2,433 1,715 1,715 1.42 1.00
hello-world no-host 1 1 60 3 3 48.26 2.32

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,401 1,169 24,691 3,505 3,342 10.28 1.46
bin-true no-host 101,974 49,358 831,585 137,271 135,273 8.15 1.35
configure.cpython no-host 1,618,772 1,643,930 5,956,406 1,813,656 1,794,337 3.68 1.12
configure.ocaml no-host 299,104 280,917 554,252 316,285 315,108 1.85 1.06
configure.tcc no-host 5,264 4,214 23,736 5,927 5,885 4.51 1.13
configure.util-linux no-host 1,538,665 1,691,743 4,966,373 1,715,118 1,704,789 3.23 1.11
configure.yash no-host 173,785 159,571 314,728 179,539 178,683 1.81 1.03
hello-world no-host 154 84 3,875 385 377 25.16 2.50

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.7 9.8 9.3 4.67 2.03
bin-true no-host 3.3 1.6 18.2 8.9 8.3 5.55 2.72
configure.cpython no-host 34.5 34.5 34.8 34.5 34.5 1.01 1.00
configure.ocaml no-host 28.7 28.7 28.5 28.6 28.6 0.99 1.00
configure.tcc no-host 26.2 26.2 26.2 26.1 26.2 1.00 1.00
configure.util-linux no-host 40.0 39.5 39.6 39.6 39.6 0.99 0.99
configure.yash no-host 33.5 33.3 33.4 33.2 33.1 1.00 0.99
hello-world no-host 3.3 1.4 18.1 6.9 6.4 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 827 1 2 2.6 8.9 156,797 15,428 2,915 8,761 77,347 70,689 3,008 3 50,000 0
configure.cpython no-host 14,644 1 66 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,661 3 60 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,735 1 2 2.7 28.6 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.1 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,715 1 2 2.6 33.2 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.4 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 817 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,728 1 62 15.2 34.5 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,722 3 58 21.4 39.6 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,715 1 2 2.7 28.6 149,872 12,470 6,513 7,821 70,839 71,212 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.3 26.2 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,715 1 2 2.6 33.1 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.3 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 6 10 4.8 bash
15 no-host abuild-print-help 9 5 4 3.9 dash
23 no-host abuild-print-help 522 472 53 22.7 osh-cpython
31 no-host abuild-print-help 22 12 11 9.8 osh-native
39 no-host abuild-print-help 20 12 9 9.3 osh-native-souffle
1 no-host bin-true 642 315 367 3.3 bash
9 no-host bin-true 456 288 175 1.6 dash
17 no-host bin-true 2,495 916 1,839 18.2 osh-cpython
25 no-host bin-true 827 297 547 8.9 osh-native
33 no-host bin-true 817 302 531 8.3 osh-native-souffle
2 no-host configure.cpython 13,811 7,513 6,678 34.5 bash
10 no-host configure.cpython 13,824 7,361 6,863 34.5 dash
18 no-host configure.cpython 29,327 16,028 15,245 34.8 osh-cpython
26 no-host configure.cpython 14,644 7,180 7,764 34.5 osh-native
34 no-host configure.cpython 14,728 7,098 7,743 34.5 osh-native-souffle
4 no-host configure.ocaml 3,658 1,449 1,250 28.7 bash
12 no-host configure.ocaml 3,634 1,444 1,214 28.7 dash
20 no-host configure.ocaml 4,611 2,085 1,746 28.5 osh-cpython
28 no-host configure.ocaml 3,735 1,467 1,308 28.6 osh-native
36 no-host configure.ocaml 3,715 1,469 1,284 28.6 osh-native-souffle
5 no-host configure.tcc 48 28 20 26.2 bash
13 no-host configure.tcc 41 20 22 26.2 dash
21 no-host configure.tcc 218 149 73 26.2 osh-cpython
29 no-host configure.tcc 49 23 27 26.1 osh-native
37 no-host configure.tcc 48 26 23 26.2 osh-native-souffle
3 no-host configure.util-linux 12,581 6,479 6,563 40.0 bash
11 no-host configure.util-linux 13,353 6,393 7,454 39.5 dash
19 no-host configure.util-linux 31,833 19,831 13,059 39.6 osh-cpython
27 no-host configure.util-linux 13,661 6,284 7,619 39.6 osh-native
35 no-host configure.util-linux 13,722 6,147 7,660 39.6 osh-native-souffle
6 no-host configure.yash 1,713 950 770 33.5 bash
14 no-host configure.yash 1,647 923 725 33.3 dash
22 no-host configure.yash 2,433 1,440 1,035 33.4 osh-cpython
30 no-host configure.yash 1,715 920 798 33.2 osh-native
38 no-host configure.yash 1,715 938 781 33.1 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 43 17 18.1 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,401 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,169 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 24,691 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,505 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,342 0 0 0 16 0 39 2 osh-native-souffle
1 no-host bin-true 101,974 0 0 0 8 0 1,992 74 bash
9 no-host bin-true 49,358 0 0 0 8 0 2,970 65 dash
17 no-host bin-true 831,585 0 0 0 8 0 1,990 471 osh-cpython
25 no-host bin-true 137,271 0 0 0 16 0 1,985 180 osh-native
33 no-host bin-true 135,273 0 0 0 16 0 1,969 137 osh-native-souffle
2 no-host configure.cpython 1,618,772 0 0 0 25,272 0 14,039 1,220 bash
10 no-host configure.cpython 1,643,930 1 0 0 25,272 0 14,059 1,237 dash
18 no-host configure.cpython 5,956,406 0 0 0 25,272 0 12,869 1,149 osh-cpython
26 no-host configure.cpython 1,813,656 0 0 0 25,280 0 12,890 1,159 osh-native
34 no-host configure.cpython 1,794,337 0 0 0 25,280 0 12,847 1,219 osh-native-souffle
4 no-host configure.ocaml 299,104 0 0 0 4,432 0 2,013 218 bash
12 no-host configure.ocaml 280,917 0 0 0 4,432 0 2,103 226 dash
20 no-host configure.ocaml 554,252 0 0 0 4,432 0 1,919 218 osh-cpython
28 no-host configure.ocaml 316,285 0 0 0 4,440 0 1,996 214 osh-native
36 no-host configure.ocaml 315,108 0 0 0 4,440 0 1,994 223 osh-native-souffle
5 no-host configure.tcc 5,264 0 0 0 80 0 49 8 bash
13 no-host configure.tcc 4,214 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,736 0 0 0 88 0 53 10 osh-cpython
29 no-host configure.tcc 5,927 0 0 0 96 0 47 3 osh-native
37 no-host configure.tcc 5,885 0 0 0 96 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,538,665 2 0 0 35,944 0 18,981 1,378 bash
11 no-host configure.util-linux 1,691,743 0 0 0 35,936 0 16,945 1,533 dash
19 no-host configure.util-linux 4,966,373 10 0 0 35,944 0 17,554 1,121 osh-cpython
27 no-host configure.util-linux 1,715,118 5 0 0 35,952 0 17,545 1,031 osh-native
35 no-host configure.util-linux 1,704,789 0 0 0 35,952 0 17,439 1,036 osh-native-souffle
6 no-host configure.yash 173,785 0 0 0 3,616 0 888 150 bash
14 no-host configure.yash 159,571 0 0 0 3,616 0 996 131 dash
22 no-host configure.yash 314,728 0 0 0 3,616 0 861 163 osh-cpython
30 no-host configure.yash 179,539 0 0 0 3,624 0 855 136 osh-native
38 no-host configure.yash 178,683 0 0 0 3,624 0 859 127 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,875 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 385 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-3230ab87
dash dash-cea41b3e
osh-cpython osh-97b994da
osh-native osh-b6c349c1
osh-native-souffle osh-671aa534
host label host id
no-host no-host-2411472