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 521 22 20 33.03 1.43
bin-true no-host 633 454 2,448 821 818 3.87 1.30
configure.cpython no-host 13,621 13,651 28,800 14,348 14,513 2.11 1.05
configure.ocaml no-host 3,663 3,585 4,581 3,688 3,693 1.25 1.01
configure.tcc no-host 46 41 217 49 48 4.77 1.07
configure.util-linux no-host 12,435 13,241 31,698 13,452 13,559 2.55 1.08
configure.yash no-host 1,674 1,626 2,372 1,709 1,693 1.42 1.02
hello-world no-host 1 1 67 3 3 49.23 2.10

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,398 1,156 24,717 3,514 3,352 10.31 1.47
bin-true no-host 100,921 49,406 829,564 135,206 137,280 8.22 1.34
configure.cpython no-host 1,618,960 1,636,352 5,948,647 1,792,150 1,800,145 3.67 1.11
configure.ocaml no-host 298,428 280,677 554,749 316,160 315,783 1.86 1.06
configure.tcc no-host 5,228 4,217 23,712 5,956 5,872 4.54 1.14
configure.util-linux no-host 1,533,931 1,699,104 4,963,231 1,719,584 1,706,979 3.24 1.12
configure.yash no-host 173,459 159,519 314,810 179,400 178,803 1.81 1.03
hello-world no-host 154 83 3,878 388 378 25.18 2.52

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.5 9.8 9.3 4.77 2.08
bin-true no-host 3.1 1.6 18.2 8.9 8.4 5.78 2.83
configure.cpython no-host 34.8 34.5 34.7 34.4 34.4 1.00 0.99
configure.ocaml no-host 28.7 28.6 28.5 28.7 28.7 0.99 1.00
configure.tcc no-host 26.3 26.3 26.2 26.3 26.4 1.00 1.00
configure.util-linux no-host 39.5 39.5 39.7 39.7 39.6 1.01 1.01
configure.yash no-host 33.4 33.4 33.3 33.4 33.5 1.00 1.00
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 821 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,348 1 64 15.2 34.4 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,452 3 58 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,688 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.3 30,627 30,627 0 1,582 14,645 14,400 271 0 50,000 0
configure.yash no-host 1,709 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.4 3,824 3,824 0 705 1,880 1,239 2 0 50,000 0
bin-true no-host 818 1 2 2.6 8.4 156,796 15,423 2,910 8,762 77,347 70,687 3,008 3 50,000 0
configure.cpython no-host 14,513 1 60 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 13,559 3 56 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,693 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 48 0 0 1.3 26.4 30,627 30,627 0 1,584 14,645 14,398 271 0 50,000 0
configure.yash no-host 1,693 1 2 2.6 33.5 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 8 9 4.7 bash
15 no-host abuild-print-help 9 4 5 3.9 dash
23 no-host abuild-print-help 521 469 55 22.5 osh-cpython
31 no-host abuild-print-help 22 14 9 9.8 osh-native
39 no-host abuild-print-help 20 10 11 9.3 osh-native-souffle
1 no-host bin-true 633 305 366 3.1 bash
9 no-host bin-true 454 280 180 1.6 dash
17 no-host bin-true 2,448 894 1,816 18.2 osh-cpython
25 no-host bin-true 821 306 531 8.9 osh-native
33 no-host bin-true 818 306 530 8.4 osh-native-souffle
2 no-host configure.cpython 13,621 7,336 6,664 34.8 bash
10 no-host configure.cpython 13,651 7,351 6,704 34.5 dash
18 no-host configure.cpython 28,800 15,708 14,997 34.7 osh-cpython
26 no-host configure.cpython 14,348 7,093 7,559 34.4 osh-native
34 no-host configure.cpython 14,513 7,172 7,523 34.4 osh-native-souffle
4 no-host configure.ocaml 3,663 1,422 1,277 28.7 bash
12 no-host configure.ocaml 3,585 1,381 1,227 28.6 dash
20 no-host configure.ocaml 4,581 2,081 1,719 28.5 osh-cpython
28 no-host configure.ocaml 3,688 1,459 1,269 28.7 osh-native
36 no-host configure.ocaml 3,693 1,412 1,321 28.7 osh-native-souffle
5 no-host configure.tcc 46 26 21 26.3 bash
13 no-host configure.tcc 41 25 16 26.3 dash
21 no-host configure.tcc 217 150 71 26.2 osh-cpython
29 no-host configure.tcc 49 24 25 26.3 osh-native
37 no-host configure.tcc 48 25 24 26.4 osh-native-souffle
3 no-host configure.util-linux 12,435 6,439 6,465 39.5 bash
11 no-host configure.util-linux 13,241 6,299 7,437 39.5 dash
19 no-host configure.util-linux 31,698 19,755 12,998 39.7 osh-cpython
27 no-host configure.util-linux 13,452 6,064 7,625 39.7 osh-native
35 no-host configure.util-linux 13,559 6,139 7,509 39.6 osh-native-souffle
6 no-host configure.yash 1,674 918 763 33.4 bash
14 no-host configure.yash 1,626 887 741 33.4 dash
22 no-host configure.yash 2,372 1,404 1,010 33.3 osh-cpython
30 no-host configure.yash 1,709 944 769 33.4 osh-native
38 no-host configure.yash 1,693 912 784 33.5 osh-native-souffle
0 no-host hello-world 1 0 1 3.1 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 67 46 21 18.2 osh-cpython
24 no-host hello-world 3 1 2 6.9 osh-native
32 no-host hello-world 3 1 1 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,398 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,156 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,717 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,514 0 0 0 16 0 39 4 osh-native
39 no-host abuild-print-help 3,352 0 0 0 16 0 39 4 osh-native-souffle
1 no-host bin-true 100,921 0 0 0 8 0 1,967 116 bash
9 no-host bin-true 49,406 0 0 0 8 0 2,982 58 dash
17 no-host bin-true 829,564 0 0 0 8 0 1,969 164 osh-cpython
25 no-host bin-true 135,206 0 0 0 16 0 1,972 172 osh-native
33 no-host bin-true 137,280 0 0 0 16 0 1,969 101 osh-native-souffle
2 no-host configure.cpython 1,618,960 0 0 0 25,272 0 14,023 1,381 bash
10 no-host configure.cpython 1,636,352 0 0 0 25,272 0 14,049 1,187 dash
18 no-host configure.cpython 5,948,647 2 0 0 25,272 0 12,884 1,292 osh-cpython
26 no-host configure.cpython 1,792,150 0 0 0 25,280 0 12,857 1,242 osh-native
34 no-host configure.cpython 1,800,145 0 0 0 25,288 0 12,887 1,276 osh-native-souffle
4 no-host configure.ocaml 298,428 0 0 0 4,432 0 2,028 234 bash
12 no-host configure.ocaml 280,677 0 0 0 4,432 0 2,105 209 dash
20 no-host configure.ocaml 554,749 0 0 0 4,432 0 1,918 212 osh-cpython
28 no-host configure.ocaml 316,160 0 0 0 4,440 0 1,991 236 osh-native
36 no-host configure.ocaml 315,783 0 0 0 4,440 0 2,001 225 osh-native-souffle
5 no-host configure.tcc 5,228 0 0 0 80 0 49 3 bash
13 no-host configure.tcc 4,217 0 0 0 88 0 52 3 dash
21 no-host configure.tcc 23,712 0 0 0 88 0 51 7 osh-cpython
29 no-host configure.tcc 5,956 0 0 0 96 0 46 4 osh-native
37 no-host configure.tcc 5,872 0 0 0 96 0 47 1 osh-native-souffle
3 no-host configure.util-linux 1,533,931 1 0 0 35,944 0 18,888 1,251 bash
11 no-host configure.util-linux 1,699,104 0 0 0 35,936 0 16,939 1,314 dash
19 no-host configure.util-linux 4,963,231 4 0 0 35,952 0 17,551 1,276 osh-cpython
27 no-host configure.util-linux 1,719,584 1 0 0 35,944 0 17,568 1,116 osh-native
35 no-host configure.util-linux 1,706,979 3 0 0 35,944 0 17,563 1,056 osh-native-souffle
6 no-host configure.yash 173,459 0 0 0 3,616 0 877 128 bash
14 no-host configure.yash 159,519 0 0 0 3,616 0 997 154 dash
22 no-host configure.yash 314,810 0 0 0 3,616 0 861 119 osh-cpython
30 no-host configure.yash 179,400 0 0 0 3,624 0 855 132 osh-native
38 no-host configure.yash 178,803 0 0 0 3,624 0 858 124 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,878 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 388 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 378 0 0 0 16 0 1 1 osh-native-souffle

Shell and Host

shell label shell id
bash bash-cd1b8704
dash dash-cea41b3e
osh-cpython osh-828a8ac0
osh-native osh-0b15a7e2
osh-native-souffle osh-36331244
host label host id
no-host no-host-2411472