Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add compiled/cached MachineCode #10

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Commits on May 11, 2021

  1. Configuration menu
    Copy the full SHA
    ce83b5a View commit details
    Browse the repository at this point in the history
  2. Allow compiling MachineCode and reusing it.

    - Added some benchmarks
    
    ```sh
    goos: linux
    goarch: amd64
    pkg: github.com/bspaans/jit-compiler/ir
    cpu: AMD Ryzen Threadripper 2950X 16-Core Processor
    Benchmark_Parse/No-SSA/No-Cache-32         	       4	 315428400 ns/op	188349976 B/op	 6094850 allocs/op
    Benchmark_Parse/SSA/Cache-32               	   80162	     15728 ns/op	       0 B/op	       0 allocs/op
    Benchmark_Parse/SSA/No-Cache-32            	       4	 321301980 ns/op	188934464 B/op	 6107397 allocs/op
    Benchmark_Parse/No-SSA/Cache-32            	   76292	     15752 ns/op	       0 B/op	       0 allocs/op
    PASS
    ok  	github.com/bspaans/jit-compiler/ir	10.452s
    ```
    OneOfOne committed May 11, 2021
    Configuration menu
    Copy the full SHA
    915b6ff View commit details
    Browse the repository at this point in the history