Skip to content

Changed HashMap and HashSet for Fx versions - #368

Merged
Razican merged 4 commits into
masterfrom
fx_hash
May 7, 2020
Merged

Razican merged 4 commits into
masterfrom
fx_hash

Conversation

@Razican

@Razican Razican commented May 2, 2020

Copy link
Copy Markdown
Member

This fixes #356. Note that this requires the git version of rust-gc until Manishearth/rust-gc#92 gets done. An upgrade to rust-gc would also include new types implementing Trace OOB and a very reduced dependency tree without having to depend on many syn and quote versions.

@Razican Razican added A-Performance Performance related changes and issues Blocked Waiting for another code change labels May 2, 2020
@github-actions

github-actions Bot commented May 2, 2020

Copy link
Copy Markdown

Benchmark for 18c3ef9

Click to view benchmark
Test PR Benchmark Master Benchmark %
Create Realm 320.8±12.38µs 353.5±17.96µs 89.99999999999999%
Expression (Lexer) 1889.7±70.41ns 1775.4±92.77ns 106%
Expression (Parser) 4.6±0.22µs 4.6±0.29µs 101%
Fibonacci (Execution) 3.0±0.11ms 3.3±0.12ms 87.00000000000001%
For loop (Execution) 329.5±20.27µs 356.0±16.25µs 92%
For loop (Lexer) 4.9±0.25µs 4.8±0.27µs 101%
For loop (Parser) 13.4±0.76µs 12.8±0.64µs 105%
Hello World (Lexer) 856.7±48.66ns 847.6±41.83ns 101%
Hello World (Parser) 2.1±0.11µs 2.1±0.08µs 102%
Symbols (Execution) 340.2±17.04µs 375.5±19.65µs 89.99999999999999%
undefined undefined 100%

@jasonwilliams

Copy link
Copy Markdown
Member

So you know when Manish plans to release a version?

@Razican

Razican commented May 3, 2020

Copy link
Copy Markdown
Member Author

So you know when Manish plans to release a version?

Nope, I will try to contact him during next week to see his plans.

@github-actions

github-actions Bot commented May 3, 2020

Copy link
Copy Markdown

Benchmark for 2c50c93

Click to view benchmark
Test PR Benchmark Master Benchmark %
Create Realm 453.9±12.55µs 504.6±15.85µs 88.99999999999999%
Expression (Lexer) 1873.2±69.97ns 1870.9±79.41ns 100%
Expression (Parser) 4.9±0.17µs 4.6±0.17µs 106%
Fibonacci (Execution) 3.1±0.08ms 3.5±0.12ms 87.99999999999999%
For loop (Lexer) 5.0±0.18µs 4.9±0.22µs 101%
For loop (Parser) 13.8±0.36µs 12.9±0.87µs 107%
Hello World (Lexer) 893.9±30.47ns 887.4±41.07ns 101%
Hello World (Parser) 2.2±0.07µs 2.2±0.11µs 101%
Symbols (Execution) 499.8±14.21µs 529.3±35.53µs 94%
undefined undefined 100%

@Razican
Razican marked this pull request as draft May 5, 2020 16:57
@github-actions

github-actions Bot commented May 5, 2020

Copy link
Copy Markdown

Benchmark for 3a5b8b9

Click to view benchmark
Test PR Benchmark Master Benchmark %
Create Realm 487.9±32.44µs 530.0±32.95µs 90.99999999999999%
Expression (Lexer) 2.1±0.12µs 2.1±0.16µs 102%
Expression (Parser) 5.2±0.39µs 5.2±0.20µs 99%
Fibonacci (Execution) 3.6±0.13ms 4.2±0.12ms 84.00000000000001%
For loop (Lexer) 5.3±0.31µs 5.6±0.25µs 95%
For loop (Parser) 15.2±0.65µs 15.6±0.60µs 98%
Hello World (Lexer) 981.4±49.90ns 1004.2±53.67ns 98%
Hello World (Parser) 2.5±0.10µs 2.4±0.14µs 102%
Symbols (Execution) 528.3±27.33µs 596.5±25.54µs 87.00000000000001%
undefined undefined 100%

@github-actions

github-actions Bot commented May 5, 2020

Copy link
Copy Markdown

Benchmark for 5f4febe

Click to view benchmark
Test PR Benchmark Master Benchmark %
Create Realm 479.0±19.48µs 548.2±31.84µs 86.00000000000001%
Expression (Lexer) 2.2±0.15µs 2.1±0.09µs 103%
Expression (Parser) 4.9±0.20µs 5.0±0.22µs 98%
Fibonacci (Execution) 3.6±0.19ms 4.1±0.16ms 84.00000000000001%
For loop (Lexer) 5.3±0.25µs 5.5±0.34µs 96%
For loop (Parser) 15.1±0.78µs 15.4±1.41µs 98%
Hello World (Lexer) 993.8±68.91ns 1000.3±67.32ns 99%
Hello World (Parser) 2.4±0.21µs 2.5±0.17µs 98%
Symbols (Execution) 516.4±33.16µs 596.0±44.02µs 85.00000000000001%
undefined undefined 100%

@Razican
Razican marked this pull request as ready for review May 7, 2020 14:28
@Razican

Razican commented May 7, 2020

Copy link
Copy Markdown
Member Author

This is now ready for review and merge!

@Razican
Razican requested review from HalidOdat and jasonwilliams May 7, 2020 14:28
@Razican Razican added this to the v0.8.0 milestone May 7, 2020
@Razican Razican removed the Blocked Waiting for another code change label May 7, 2020
@github-actions

github-actions Bot commented May 7, 2020

Copy link
Copy Markdown

Benchmark for 899e746

Click to view benchmark
Test PR Benchmark Master Benchmark %
Create Realm 452.5±10.73µs 515.8±21.70µs 86.00000000000001%
Expression (Lexer) 1903.8±57.13ns 1947.7±71.03ns 98%
Expression (Parser) 5.0±0.15µs 4.9±0.21µs 102%
Fibonacci (Execution) 3.1±0.07ms 3.7±0.09ms 83%
For loop (Execution) 492.9±38.00µs 535.6±9.84µs 90.99999999999999%
For loop (Lexer) 5.2±0.14µs 5.2±0.16µs 99%
For loop (Parser) 13.8±0.56µs 14.0±0.52µs 99%
Hello World (Lexer) 909.8±24.10ns 935.2±60.85ns 97%
Hello World (Parser) 2.2±0.04µs 2.3±0.05µs 98%
Symbols (Execution) 488.6±11.03µs 541.6±12.92µs 88.99999999999999%
undefined undefined 100%

@HalidOdat

Copy link
Copy Markdown
Member

Everything looks perfect to me!

@Razican
Razican merged commit fb47031 into master May 7, 2020
@Razican
Razican deleted the fx_hash branch May 7, 2020 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-Performance Performance related changes and issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use Fx Hash to speed up hash maps in the compiler

3 participants