Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added test_scripts/fprof-pure.escript for sfmt_pure analysis

  • Loading branch information...
commit 99236e387400daee3245c547ab49c843a2e3f77a 1 parent dea084e
@jj1bdx authored
Showing with 29 additions and 0 deletions.
  1. +29 −0 test_scripts/fprof-pure.escript
View
29 test_scripts/fprof-pure.escript
@@ -0,0 +1,29 @@
+#!/usr/bin/env escript
+%% -*- erlang -*-
+%%! -pa ./ebin
+
+%% Note: execute from the root path
+
+main(_) ->
+
+ code:load_file(fprof),
+ code:load_file(sfmt),
+ code:load_file(sfmt_pure),
+ code:load_file(sfmt_tests),
+
+ fprof:trace(start),
+ sfmt_tests:test_short_speed(),
+ fprof:trace(stop),
+ fprof:profile(),
+ fprof:analyse({dest, "short_nif.txt"}),
+
+ fprof:trace(start),
+ sfmt_pure_tests:test_short_speed(),
+ fprof:trace(stop),
+ fprof:profile(),
+ fprof:analyse({dest, "short_pure.txt"}),
+
+ io:format("end of fprof.escript~n"),
+ ok.
+
+
Please sign in to comment.
Something went wrong with that request. Please try again.