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

eval vs lambda #1

Open
eddyz87 opened this issue Aug 10, 2013 · 0 comments
Open

eval vs lambda #1

eddyz87 opened this issue Aug 10, 2013 · 0 comments

Comments

@eddyz87
Copy link
Owner

eddyz87 commented Aug 10, 2013

Внезапно, компиляция имеет смысл только когда редко компилишь, но часто запускашь:

* (bench1 1000 64)
--- eval version ---
Evaluation took:
  1.748 seconds of real time
  1.744000 seconds of total run time (1.716000 user, 0.028000 system)
  [ Run times consist of 0.068 seconds GC time, and 1.676 seconds non-GC time. ]
  99.77% CPU
  2,002 forms interpreted
  6,006 lambdas converted
  5,578,554,877 processor cycles
  519,626,752 bytes consed

--- lambda version ---
Evaluation took:
  0.497 seconds of real time
  0.492000 seconds of total run time (0.492000 user, 0.000000 system)
  [ Run times consist of 0.020 seconds GC time, and 0.472 seconds non-GC time. ]
  98.99% CPU
  1,584,502,412 processor cycles
  295,534,624 bytes consed

NIL
* (bench1 100 640)
--- eval version ---
Evaluation took:
  0.326 seconds of real time
  0.324000 seconds of total run time (0.324000 user, 0.000000 system)
  [ Run times consist of 0.020 seconds GC time, and 0.304 seconds non-GC time. ]
  99.39% CPU
  202 forms interpreted
  606 lambdas converted
  1,039,037,354 processor cycles
  180,870,912 bytes consed

--- lambda version ---
Evaluation took:
  0.495 seconds of real time
  0.492000 seconds of total run time (0.492000 user, 0.000000 system)
  [ Run times consist of 0.020 seconds GC time, and 0.472 seconds non-GC time. ]
  99.39% CPU
  1,580,441,751 processor cycles
  293,238,368 bytes consed

NIL
* (bench1 10 6400)
--- eval version ---
Evaluation took:
  0.202 seconds of real time
  0.200000 seconds of total run time (0.196000 user, 0.004000 system)
  [ Run times consist of 0.012 seconds GC time, and 0.188 seconds non-GC time. ]
  99.01% CPU
  22 forms interpreted
  66 lambdas converted
  643,543,515 processor cycles
  159,611,792 bytes consed

--- lambda version ---
Evaluation took:
  0.541 seconds of real time
  0.536000 seconds of total run time (0.536000 user, 0.000000 system)
  [ Run times consist of 0.028 seconds GC time, and 0.508 seconds non-GC time. ]
  99.08% CPU
  1,726,394,295 processor cycles
  318,832,512 bytes consed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant